Commit 8f078bd9 authored by Junling Bu's avatar Junling Bu
Browse files

update[litemall-db]: 更新mybatis generator插件到1.2.3。

1. 设置逻辑删除插件
2. 设置乐观锁插件
parent d006f89f
...@@ -4,6 +4,44 @@ import java.time.LocalDateTime; ...@@ -4,6 +4,44 @@ import java.time.LocalDateTime;
import java.util.Arrays; import java.util.Arrays;
public class LitemallComment { public class LitemallComment {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -413,6 +451,17 @@ public class LitemallComment { ...@@ -413,6 +451,17 @@ public class LitemallComment {
return result; return result;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/** /**
* This enum was generated by MyBatis Generator. * This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_comment * This enum corresponds to the database table litemall_comment
...@@ -421,16 +470,16 @@ public class LitemallComment { ...@@ -421,16 +470,16 @@ public class LitemallComment {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
typeId("type_id"), typeId("type_id", "typeId", "TINYINT"),
valueId("value_id"), valueId("value_id", "valueId", "INTEGER"),
content("content"), content("content", "content", "VARCHAR"),
userId("user_id"), userId("user_id", "userId", "INTEGER"),
hasPicture("has_picture"), hasPicture("has_picture", "hasPicture", "BIT"),
picUrls("pic_urls"), picUrls("pic_urls", "picUrls", "CHAR"),
star("star"), star("star", "star", "SMALLINT"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -441,6 +490,24 @@ public class LitemallComment { ...@@ -441,6 +490,24 @@ public class LitemallComment {
*/ */
private final String column; private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment * This method corresponds to the database table litemall_comment
...@@ -470,8 +537,32 @@ public class LitemallComment { ...@@ -470,8 +537,32 @@ public class LitemallComment {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column; this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallCommentExample { ...@@ -116,13 +116,11 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment * This method corresponds to the database table litemall_comment
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallCommentExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallCommentExample { ...@@ -130,10 +128,18 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment * This method corresponds to the database table litemall_comment
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallCommentExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallCommentExample { ...@@ -142,10 +148,12 @@ public class LitemallCommentExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallCommentExample { ...@@ -153,11 +161,10 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment * This method corresponds to the database table litemall_comment
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCommentExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallCommentExample { ...@@ -165,18 +172,11 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment * This method corresponds to the database table litemall_comment
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCommentExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -934,6 +934,29 @@ public class LitemallCommentExample { ...@@ -934,6 +934,29 @@ public class LitemallCommentExample {
return this; return this;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED);
}
/** /**
* This interface was generated by MyBatis Generator. * This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_comment * This interface corresponds to the database table litemall_comment
......
...@@ -4,6 +4,44 @@ import java.math.BigDecimal; ...@@ -4,6 +4,44 @@ import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallCoupon { public class LitemallCoupon {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -521,6 +559,17 @@ public class LitemallCoupon { ...@@ -521,6 +559,17 @@ public class LitemallCoupon {
return result; return result;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/** /**
* This enum was generated by MyBatis Generator. * This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_coupon * This enum corresponds to the database table litemall_coupon
...@@ -529,19 +578,19 @@ public class LitemallCoupon { ...@@ -529,19 +578,19 @@ public class LitemallCoupon {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
name("name"), name("name", "name", "VARCHAR"),
typeMoney("type_money"), typeMoney("type_money", "typeMoney", "DECIMAL"),
sendType("send_type"), sendType("send_type", "sendType", "TINYINT"),
minAmount("min_amount"), minAmount("min_amount", "minAmount", "DECIMAL"),
maxAmount("max_amount"), maxAmount("max_amount", "maxAmount", "DECIMAL"),
minGoodsAmount("min_goods_amount"), minGoodsAmount("min_goods_amount", "minGoodsAmount", "DECIMAL"),
sendStart("send_start"), sendStart("send_start", "sendStart", "TIMESTAMP"),
sendEnd("send_end"), sendEnd("send_end", "sendEnd", "TIMESTAMP"),
useStart("use_start"), useStart("use_start", "useStart", "TIMESTAMP"),
useEnd("use_end"), useEnd("use_end", "useEnd", "TIMESTAMP"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -552,6 +601,24 @@ public class LitemallCoupon { ...@@ -552,6 +601,24 @@ public class LitemallCoupon {
*/ */
private final String column; private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon * This method corresponds to the database table litemall_coupon
...@@ -581,8 +648,32 @@ public class LitemallCoupon { ...@@ -581,8 +648,32 @@ public class LitemallCoupon {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column; this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -117,13 +117,11 @@ public class LitemallCouponExample { ...@@ -117,13 +117,11 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon * This method corresponds to the database table litemall_coupon
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallCouponExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -131,10 +129,18 @@ public class LitemallCouponExample { ...@@ -131,10 +129,18 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon * This method corresponds to the database table litemall_coupon
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallCouponExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -143,10 +149,12 @@ public class LitemallCouponExample { ...@@ -143,10 +149,12 @@ public class LitemallCouponExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -154,11 +162,10 @@ public class LitemallCouponExample { ...@@ -154,11 +162,10 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon * This method corresponds to the database table litemall_coupon
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCouponExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -166,18 +173,11 @@ public class LitemallCouponExample { ...@@ -166,18 +173,11 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon * This method corresponds to the database table litemall_coupon
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCouponExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -1071,6 +1071,29 @@ public class LitemallCouponExample { ...@@ -1071,6 +1071,29 @@ public class LitemallCouponExample {
return this; return this;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED);
}
/** /**
* This interface was generated by MyBatis Generator. * This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_coupon * This interface corresponds to the database table litemall_coupon
......
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallFootprint { public class LitemallFootprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -232,6 +270,17 @@ public class LitemallFootprint { ...@@ -232,6 +270,17 @@ public class LitemallFootprint {
return result; return result;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/** /**
* This enum was generated by MyBatis Generator. * This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_footprint * This enum corresponds to the database table litemall_footprint
...@@ -240,11 +289,11 @@ public class LitemallFootprint { ...@@ -240,11 +289,11 @@ public class LitemallFootprint {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
userId("user_id"), userId("user_id", "userId", "INTEGER"),
goodsId("goods_id"), goodsId("goods_id", "goodsId", "INTEGER"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -255,6 +304,24 @@ public class LitemallFootprint { ...@@ -255,6 +304,24 @@ public class LitemallFootprint {
*/ */
private final String column; private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint * This method corresponds to the database table litemall_footprint
...@@ -284,8 +351,32 @@ public class LitemallFootprint { ...@@ -284,8 +351,32 @@ public class LitemallFootprint {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column; this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallFootprintExample { ...@@ -116,13 +116,11 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint * This method corresponds to the database table litemall_footprint
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallFootprintExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallFootprintExample { ...@@ -130,10 +128,18 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint * This method corresponds to the database table litemall_footprint
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallFootprintExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallFootprintExample { ...@@ -142,10 +148,12 @@ public class LitemallFootprintExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallFootprintExample { ...@@ -153,11 +161,10 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint * This method corresponds to the database table litemall_footprint
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallFootprintExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallFootprintExample { ...@@ -165,18 +172,11 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint * This method corresponds to the database table litemall_footprint
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallFootprintExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -580,6 +580,29 @@ public class LitemallFootprintExample { ...@@ -580,6 +580,29 @@ public class LitemallFootprintExample {
return this; return this;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED);
}
/** /**
* This interface was generated by MyBatis Generator. * This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_footprint * This interface corresponds to the database table litemall_footprint
......
...@@ -5,6 +5,44 @@ import java.time.LocalDateTime; ...@@ -5,6 +5,44 @@ import java.time.LocalDateTime;
import java.util.Arrays; import java.util.Arrays;
public class LitemallGoods { public class LitemallGoods {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -774,6 +812,17 @@ public class LitemallGoods { ...@@ -774,6 +812,17 @@ public class LitemallGoods {
return result; return result;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/** /**
* This enum was generated by MyBatis Generator. * This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_goods * This enum corresponds to the database table litemall_goods
...@@ -782,26 +831,26 @@ public class LitemallGoods { ...@@ -782,26 +831,26 @@ public class LitemallGoods {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
goodsSn("goods_sn"), goodsSn("goods_sn", "goodsSn", "VARCHAR"),
name("name"), name("name", "name", "VARCHAR"),
categoryId("category_id"), categoryId("category_id", "categoryId", "INTEGER"),
brandId("brand_id"), brandId("brand_id", "brandId", "INTEGER"),
gallery("gallery"), gallery("gallery", "gallery", "CHAR"),
keywords("keywords"), keywords("keywords", "keywords", "VARCHAR"),
goodsBrief("goods_brief"), goodsBrief("goods_brief", "goodsBrief", "VARCHAR"),
isOnSale("is_on_sale"), isOnSale("is_on_sale", "isOnSale", "BIT"),
sortOrder("sort_order"), sortOrder("sort_order", "sortOrder", "SMALLINT"),
counterPrice("counter_price"), counterPrice("counter_price", "counterPrice", "DECIMAL"),
isNew("is_new"), isNew("is_new", "isNew", "BIT"),
primaryPicUrl("primary_pic_url"), primaryPicUrl("primary_pic_url", "primaryPicUrl", "VARCHAR"),
listPicUrl("list_pic_url"), listPicUrl("list_pic_url", "listPicUrl", "VARCHAR"),
isHot("is_hot"), isHot("is_hot", "isHot", "BIT"),
goodsUnit("goods_unit"), goodsUnit("goods_unit", "goodsUnit", "VARCHAR"),
retailPrice("retail_price"), retailPrice("retail_price", "retailPrice", "DECIMAL"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"), deleted("deleted", "deleted", "BIT"),
goodsDesc("goods_desc"); goodsDesc("goods_desc", "goodsDesc", "LONGVARCHAR");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -812,6 +861,24 @@ public class LitemallGoods { ...@@ -812,6 +861,24 @@ public class LitemallGoods {
*/ */
private final String column; private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods * This method corresponds to the database table litemall_goods
...@@ -841,8 +908,32 @@ public class LitemallGoods { ...@@ -841,8 +908,32 @@ public class LitemallGoods {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column; this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallGoodsAttribute { public class LitemallGoodsAttribute {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -268,6 +306,17 @@ public class LitemallGoodsAttribute { ...@@ -268,6 +306,17 @@ public class LitemallGoodsAttribute {
return result; return result;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/** /**
* This enum was generated by MyBatis Generator. * This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_goods_attribute * This enum corresponds to the database table litemall_goods_attribute
...@@ -276,12 +325,12 @@ public class LitemallGoodsAttribute { ...@@ -276,12 +325,12 @@ public class LitemallGoodsAttribute {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
goodsId("goods_id"), goodsId("goods_id", "goodsId", "INTEGER"),
value("value"), value("value", "value", "VARCHAR"),
attribute("attribute"), attribute("attribute", "attribute", "VARCHAR"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -292,6 +341,24 @@ public class LitemallGoodsAttribute { ...@@ -292,6 +341,24 @@ public class LitemallGoodsAttribute {
*/ */
private final String column; private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute * This method corresponds to the database table litemall_goods_attribute
...@@ -321,8 +388,32 @@ public class LitemallGoodsAttribute { ...@@ -321,8 +388,32 @@ public class LitemallGoodsAttribute {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column; this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallGoodsAttributeExample { ...@@ -116,13 +116,11 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute * This method corresponds to the database table litemall_goods_attribute
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallGoodsAttributeExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallGoodsAttributeExample { ...@@ -130,10 +128,18 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute * This method corresponds to the database table litemall_goods_attribute
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallGoodsAttributeExample { ...@@ -142,10 +148,12 @@ public class LitemallGoodsAttributeExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallGoodsAttributeExample { ...@@ -153,11 +161,10 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute * This method corresponds to the database table litemall_goods_attribute
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallGoodsAttributeExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallGoodsAttributeExample { ...@@ -165,18 +172,11 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute * This method corresponds to the database table litemall_goods_attribute
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -660,6 +660,29 @@ public class LitemallGoodsAttributeExample { ...@@ -660,6 +660,29 @@ public class LitemallGoodsAttributeExample {
return this; return this;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED);
}
/** /**
* This interface was generated by MyBatis Generator. * This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_goods_attribute * This interface corresponds to the database table litemall_goods_attribute
......
...@@ -117,13 +117,11 @@ public class LitemallGoodsExample { ...@@ -117,13 +117,11 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods * This method corresponds to the database table litemall_goods
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallGoodsExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -131,10 +129,18 @@ public class LitemallGoodsExample { ...@@ -131,10 +129,18 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods * This method corresponds to the database table litemall_goods
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallGoodsExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -143,10 +149,12 @@ public class LitemallGoodsExample { ...@@ -143,10 +149,12 @@ public class LitemallGoodsExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -154,11 +162,10 @@ public class LitemallGoodsExample { ...@@ -154,11 +162,10 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods * This method corresponds to the database table litemall_goods
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallGoodsExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -166,18 +173,11 @@ public class LitemallGoodsExample { ...@@ -166,18 +173,11 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods * This method corresponds to the database table litemall_goods
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallGoodsExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -1535,6 +1535,29 @@ public class LitemallGoodsExample { ...@@ -1535,6 +1535,29 @@ public class LitemallGoodsExample {
return this; return this;
} }
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED);
}
/** /**
* This interface was generated by MyBatis Generator. * This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_goods * This interface corresponds to the database table litemall_goods
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment