diff --git a/litemall-db/mybatis-generator/generatorConfig.xml b/litemall-db/mybatis-generator/generatorConfig.xml
index 6b22a417..cc1405df 100644
--- a/litemall-db/mybatis-generator/generatorConfig.xml
+++ b/litemall-db/mybatis-generator/generatorConfig.xml
@@ -35,8 +35,6 @@
-
-
@@ -49,6 +47,9 @@
userId="litemall"
password="litemall123456"/>
+
+
+
@@ -56,165 +57,106 @@
targetProject="src/main/java"/>
+
-
\ No newline at end of file
diff --git a/litemall-db/pom.xml b/litemall-db/pom.xml
index 896dd4cc..77d0e7c7 100644
--- a/litemall-db/pom.xml
+++ b/litemall-db/pom.xml
@@ -45,7 +45,7 @@
org.mybatis.generator
mybatis-generator-maven-plugin
- 1.3.6
+ 1.3.7
mybatis-generator/generatorConfig.xml
@@ -62,7 +62,7 @@
com.itfsw
mybatis-generator-plugin
- 1.2.10
+ 1.2.12
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdMapper.java
index b23c4b89..184f60b3 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdMapper.java
@@ -14,15 +14,6 @@ public interface LitemallAdMapper {
*/
long countByExample(LitemallAdExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallAdExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
@@ -31,15 +22,6 @@ public interface LitemallAdMapper {
*/
int deleteByExample(LitemallAdExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
@@ -125,24 +107,6 @@ public interface LitemallAdMapper {
*/
LitemallAd selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallAd record, @Param("example") LitemallAdExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallAd record, @Param("example") LitemallAdExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
@@ -159,24 +123,6 @@ public interface LitemallAdMapper {
*/
int updateByExample(@Param("record") LitemallAd record, @Param("example") LitemallAdExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallAd record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallAd record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java
index dd9a7ea1..0c89add9 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java
@@ -14,15 +14,6 @@ public interface LitemallAddressMapper {
*/
long countByExample(LitemallAddressExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallAddressExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
@@ -31,15 +22,6 @@ public interface LitemallAddressMapper {
*/
int deleteByExample(LitemallAddressExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
@@ -125,24 +107,6 @@ public interface LitemallAddressMapper {
*/
LitemallAddress selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallAddress record, @Param("example") LitemallAddressExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallAddress record, @Param("example") LitemallAddressExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
@@ -159,24 +123,6 @@ public interface LitemallAddressMapper {
*/
int updateByExample(@Param("record") LitemallAddress record, @Param("example") LitemallAddressExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallAddress record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallAddress record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java
index 34cabeed..296be640 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java
@@ -14,15 +14,6 @@ public interface LitemallAdminMapper {
*/
long countByExample(LitemallAdminExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallAdminExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
@@ -31,15 +22,6 @@ public interface LitemallAdminMapper {
*/
int deleteByExample(LitemallAdminExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
@@ -125,24 +107,6 @@ public interface LitemallAdminMapper {
*/
LitemallAdmin selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallAdmin record, @Param("example") LitemallAdminExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallAdmin record, @Param("example") LitemallAdminExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
@@ -159,24 +123,6 @@ public interface LitemallAdminMapper {
*/
int updateByExample(@Param("record") LitemallAdmin record, @Param("example") LitemallAdminExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallAdmin record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallAdmin record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java
index df70c88d..b21ddd4f 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java
@@ -14,15 +14,6 @@ public interface LitemallBrandMapper {
*/
long countByExample(LitemallBrandExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallBrandExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
@@ -31,15 +22,6 @@ public interface LitemallBrandMapper {
*/
int deleteByExample(LitemallBrandExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
@@ -125,24 +107,6 @@ public interface LitemallBrandMapper {
*/
LitemallBrand selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallBrand record, @Param("example") LitemallBrandExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallBrand record, @Param("example") LitemallBrandExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
@@ -159,24 +123,6 @@ public interface LitemallBrandMapper {
*/
int updateByExample(@Param("record") LitemallBrand record, @Param("example") LitemallBrandExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallBrand record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallBrand record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java
index 361103c2..451d20fa 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java
@@ -14,15 +14,6 @@ public interface LitemallCartMapper {
*/
long countByExample(LitemallCartExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallCartExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
@@ -31,15 +22,6 @@ public interface LitemallCartMapper {
*/
int deleteByExample(LitemallCartExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
@@ -125,24 +107,6 @@ public interface LitemallCartMapper {
*/
LitemallCart selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallCart record, @Param("example") LitemallCartExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallCart record, @Param("example") LitemallCartExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
@@ -159,24 +123,6 @@ public interface LitemallCartMapper {
*/
int updateByExample(@Param("record") LitemallCart record, @Param("example") LitemallCartExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallCart record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallCart record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java
index b3f4a1f6..0c2c15f6 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java
@@ -14,15 +14,6 @@ public interface LitemallCategoryMapper {
*/
long countByExample(LitemallCategoryExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallCategoryExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
@@ -31,15 +22,6 @@ public interface LitemallCategoryMapper {
*/
int deleteByExample(LitemallCategoryExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
@@ -125,24 +107,6 @@ public interface LitemallCategoryMapper {
*/
LitemallCategory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallCategory record, @Param("example") LitemallCategoryExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallCategory record, @Param("example") LitemallCategoryExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
@@ -159,24 +123,6 @@ public interface LitemallCategoryMapper {
*/
int updateByExample(@Param("record") LitemallCategory record, @Param("example") LitemallCategoryExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallCategory record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallCategory record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java
index 8dbfba3b..1056e055 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java
@@ -14,15 +14,6 @@ public interface LitemallCollectMapper {
*/
long countByExample(LitemallCollectExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallCollectExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
@@ -31,15 +22,6 @@ public interface LitemallCollectMapper {
*/
int deleteByExample(LitemallCollectExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
@@ -125,24 +107,6 @@ public interface LitemallCollectMapper {
*/
LitemallCollect selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallCollect record, @Param("example") LitemallCollectExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallCollect record, @Param("example") LitemallCollectExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
@@ -159,24 +123,6 @@ public interface LitemallCollectMapper {
*/
int updateByExample(@Param("record") LitemallCollect record, @Param("example") LitemallCollectExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallCollect record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallCollect record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java
index 454a5c96..3bdafcd1 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java
@@ -14,15 +14,6 @@ public interface LitemallCommentMapper {
*/
long countByExample(LitemallCommentExample example);
- /**
- * 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
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallCommentExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
@@ -31,15 +22,6 @@ public interface LitemallCommentMapper {
*/
int deleteByExample(LitemallCommentExample example);
- /**
- * 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
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
@@ -125,24 +107,6 @@ public interface LitemallCommentMapper {
*/
LitemallComment selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * 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
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallComment record, @Param("example") LitemallCommentExample example);
-
- /**
- * 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
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallComment record, @Param("example") LitemallCommentExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
@@ -159,24 +123,6 @@ public interface LitemallCommentMapper {
*/
int updateByExample(@Param("record") LitemallComment record, @Param("example") LitemallCommentExample example);
- /**
- * 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
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallComment record);
-
- /**
- * 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
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallComment record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFeedbackMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFeedbackMapper.java
index f1c973ba..1599293d 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFeedbackMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFeedbackMapper.java
@@ -1,11 +1,10 @@
package org.linlinjava.litemall.db.dao;
+import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallFeedback;
import org.linlinjava.litemall.db.domain.LitemallFeedbackExample;
-import java.util.List;
-
public interface LitemallFeedbackMapper {
/**
* This method was generated by MyBatis Generator.
@@ -15,15 +14,6 @@ public interface LitemallFeedbackMapper {
*/
long countByExample(LitemallFeedbackExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallFeedbackExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_feedback
@@ -32,15 +22,6 @@ public interface LitemallFeedbackMapper {
*/
int deleteByExample(LitemallFeedbackExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_feedback
@@ -81,7 +62,7 @@ public interface LitemallFeedbackMapper {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- LitemallFeedback selectOneByExampleSelective(@Param("example") LitemallFeedbackExample example, @Param("selective") LitemallFeedback.Column... selective);
+ LitemallFeedback selectOneByExampleSelective(@Param("example") LitemallFeedbackExample example, @Param("selective") LitemallFeedback.Column ... selective);
/**
* This method was generated by MyBatis Generator.
@@ -90,7 +71,7 @@ public interface LitemallFeedbackMapper {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- List selectByExampleSelective(@Param("example") LitemallFeedbackExample example, @Param("selective") LitemallFeedback.Column... selective);
+ List selectByExampleSelective(@Param("example") LitemallFeedbackExample example, @Param("selective") LitemallFeedback.Column ... selective);
/**
* This method was generated by MyBatis Generator.
@@ -107,7 +88,7 @@ public interface LitemallFeedbackMapper {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- LitemallFeedback selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallFeedback.Column... selective);
+ LitemallFeedback selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallFeedback.Column ... selective);
/**
* This method was generated by MyBatis Generator.
@@ -126,24 +107,6 @@ public interface LitemallFeedbackMapper {
*/
LitemallFeedback selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallFeedback record, @Param("example") LitemallFeedbackExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallFeedback record, @Param("example") LitemallFeedbackExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_feedback
@@ -160,24 +123,6 @@ public interface LitemallFeedbackMapper {
*/
int updateByExample(@Param("record") LitemallFeedback record, @Param("example") LitemallFeedbackExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallFeedback record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallFeedback record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_feedback
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java
index a0f95721..98464094 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java
@@ -14,15 +14,6 @@ public interface LitemallFootprintMapper {
*/
long countByExample(LitemallFootprintExample example);
- /**
- * 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
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallFootprintExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
@@ -31,15 +22,6 @@ public interface LitemallFootprintMapper {
*/
int deleteByExample(LitemallFootprintExample example);
- /**
- * 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
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
@@ -125,24 +107,6 @@ public interface LitemallFootprintMapper {
*/
LitemallFootprint selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * 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
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallFootprint record, @Param("example") LitemallFootprintExample example);
-
- /**
- * 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
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallFootprint record, @Param("example") LitemallFootprintExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
@@ -159,24 +123,6 @@ public interface LitemallFootprintMapper {
*/
int updateByExample(@Param("record") LitemallFootprint record, @Param("example") LitemallFootprintExample example);
- /**
- * 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
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallFootprint record);
-
- /**
- * 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
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallFootprint record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java
index d9cfb5d7..a6b5d2ed 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java
@@ -14,15 +14,6 @@ public interface LitemallGoodsAttributeMapper {
*/
long countByExample(LitemallGoodsAttributeExample example);
- /**
- * 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
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallGoodsAttributeExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
@@ -31,15 +22,6 @@ public interface LitemallGoodsAttributeMapper {
*/
int deleteByExample(LitemallGoodsAttributeExample example);
- /**
- * 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
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
@@ -125,24 +107,6 @@ public interface LitemallGoodsAttributeMapper {
*/
LitemallGoodsAttribute selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * 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
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallGoodsAttribute record, @Param("example") LitemallGoodsAttributeExample example);
-
- /**
- * 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
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallGoodsAttribute record, @Param("example") LitemallGoodsAttributeExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
@@ -159,24 +123,6 @@ public interface LitemallGoodsAttributeMapper {
*/
int updateByExample(@Param("record") LitemallGoodsAttribute record, @Param("example") LitemallGoodsAttributeExample example);
- /**
- * 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
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallGoodsAttribute record);
-
- /**
- * 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
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallGoodsAttribute record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java
index cc0c75a9..3e4194d5 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java
@@ -14,15 +14,6 @@ public interface LitemallGoodsMapper {
*/
long countByExample(LitemallGoodsExample example);
- /**
- * 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
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallGoodsExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
@@ -31,15 +22,6 @@ public interface LitemallGoodsMapper {
*/
int deleteByExample(LitemallGoodsExample example);
- /**
- * 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
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
@@ -142,24 +124,6 @@ public interface LitemallGoodsMapper {
*/
LitemallGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * 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
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);
-
- /**
- * 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
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
@@ -168,15 +132,6 @@ public interface LitemallGoodsMapper {
*/
int updateByExampleSelective(@Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);
- /**
- * 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
- */
- int updateWithVersionByExampleWithBLOBs(@Param("version") Integer version, @Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
@@ -193,24 +148,6 @@ public interface LitemallGoodsMapper {
*/
int updateByExample(@Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);
- /**
- * 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
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallGoods record);
-
- /**
- * 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
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallGoods record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
@@ -219,15 +156,6 @@ public interface LitemallGoodsMapper {
*/
int updateByPrimaryKeySelective(LitemallGoods record);
- /**
- * 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
- */
- int updateWithVersionByPrimaryKeyWithBLOBs(@Param("version") Integer version, @Param("record") LitemallGoods record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsProductMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsProductMapper.java
new file mode 100644
index 00000000..e05616d8
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsProductMapper.java
@@ -0,0 +1,159 @@
+package org.linlinjava.litemall.db.dao;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+import org.linlinjava.litemall.db.domain.LitemallGoodsProduct;
+import org.linlinjava.litemall.db.domain.LitemallGoodsProductExample;
+
+public interface LitemallGoodsProductMapper {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ long countByExample(LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int deleteByExample(LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int insert(LitemallGoodsProduct record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int insertSelective(LitemallGoodsProduct record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGoodsProduct selectOneByExample(LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGoodsProduct selectOneByExampleSelective(@Param("example") LitemallGoodsProductExample example, @Param("selective") LitemallGoodsProduct.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ List selectByExampleSelective(@Param("example") LitemallGoodsProductExample example, @Param("selective") LitemallGoodsProduct.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ List selectByExample(LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGoodsProduct selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoodsProduct.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ LitemallGoodsProduct selectByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGoodsProduct selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int updateByExampleSelective(@Param("record") LitemallGoodsProduct record, @Param("example") LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int updateByExample(@Param("record") LitemallGoodsProduct record, @Param("example") LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKeySelective(LitemallGoodsProduct record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKey(LitemallGoodsProduct record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByExample(@Param("example") LitemallGoodsProductExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByPrimaryKey(Integer id);
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.java
index 8310b522..fc459271 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.java
@@ -14,15 +14,6 @@ public interface LitemallGoodsSpecificationMapper {
*/
long countByExample(LitemallGoodsSpecificationExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallGoodsSpecificationExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_specification
@@ -31,15 +22,6 @@ public interface LitemallGoodsSpecificationMapper {
*/
int deleteByExample(LitemallGoodsSpecificationExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_specification
@@ -125,24 +107,6 @@ public interface LitemallGoodsSpecificationMapper {
*/
LitemallGoodsSpecification selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallGoodsSpecification record, @Param("example") LitemallGoodsSpecificationExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallGoodsSpecification record, @Param("example") LitemallGoodsSpecificationExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_specification
@@ -159,24 +123,6 @@ public interface LitemallGoodsSpecificationMapper {
*/
int updateByExample(@Param("record") LitemallGoodsSpecification record, @Param("example") LitemallGoodsSpecificationExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallGoodsSpecification record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallGoodsSpecification record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_specification
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java
index 83d558ab..51c1bd2e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java
@@ -14,15 +14,6 @@ public interface LitemallGrouponMapper {
*/
long countByExample(LitemallGrouponExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallGrouponExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon
@@ -31,15 +22,6 @@ public interface LitemallGrouponMapper {
*/
int deleteByExample(LitemallGrouponExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon
@@ -125,24 +107,6 @@ public interface LitemallGrouponMapper {
*/
LitemallGroupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallGroupon record, @Param("example") LitemallGrouponExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallGroupon record, @Param("example") LitemallGrouponExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon
@@ -159,24 +123,6 @@ public interface LitemallGrouponMapper {
*/
int updateByExample(@Param("record") LitemallGroupon record, @Param("example") LitemallGrouponExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallGroupon record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallGroupon record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java
index e4c6d364..3fcb2928 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java
@@ -14,15 +14,6 @@ public interface LitemallGrouponRulesMapper {
*/
long countByExample(LitemallGrouponRulesExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallGrouponRulesExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon_rules
@@ -31,15 +22,6 @@ public interface LitemallGrouponRulesMapper {
*/
int deleteByExample(LitemallGrouponRulesExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon_rules
@@ -125,24 +107,6 @@ public interface LitemallGrouponRulesMapper {
*/
LitemallGrouponRules selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallGrouponRules record, @Param("example") LitemallGrouponRulesExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallGrouponRules record, @Param("example") LitemallGrouponRulesExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon_rules
@@ -159,24 +123,6 @@ public interface LitemallGrouponRulesMapper {
*/
int updateByExample(@Param("record") LitemallGrouponRules record, @Param("example") LitemallGrouponRulesExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallGrouponRules record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallGrouponRules record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon_rules
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java
index bb4aae56..4052fc3e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java
@@ -14,15 +14,6 @@ public interface LitemallIssueMapper {
*/
long countByExample(LitemallIssueExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallIssueExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_issue
@@ -31,15 +22,6 @@ public interface LitemallIssueMapper {
*/
int deleteByExample(LitemallIssueExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_issue
@@ -125,24 +107,6 @@ public interface LitemallIssueMapper {
*/
LitemallIssue selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallIssue record, @Param("example") LitemallIssueExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallIssue record, @Param("example") LitemallIssueExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_issue
@@ -159,24 +123,6 @@ public interface LitemallIssueMapper {
*/
int updateByExample(@Param("record") LitemallIssue record, @Param("example") LitemallIssueExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallIssue record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallIssue record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_issue
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java
index 3e4aaa52..bb7e8dd6 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java
@@ -14,15 +14,6 @@ public interface LitemallKeywordMapper {
*/
long countByExample(LitemallKeywordExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallKeywordExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_keyword
@@ -31,15 +22,6 @@ public interface LitemallKeywordMapper {
*/
int deleteByExample(LitemallKeywordExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_keyword
@@ -125,24 +107,6 @@ public interface LitemallKeywordMapper {
*/
LitemallKeyword selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallKeyword record, @Param("example") LitemallKeywordExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallKeyword record, @Param("example") LitemallKeywordExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_keyword
@@ -159,24 +123,6 @@ public interface LitemallKeywordMapper {
*/
int updateByExample(@Param("record") LitemallKeyword record, @Param("example") LitemallKeywordExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallKeyword record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallKeyword record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_keyword
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java
index 749fae2b..515549b4 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java
@@ -14,15 +14,6 @@ public interface LitemallOrderGoodsMapper {
*/
long countByExample(LitemallOrderGoodsExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallOrderGoodsExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order_goods
@@ -31,15 +22,6 @@ public interface LitemallOrderGoodsMapper {
*/
int deleteByExample(LitemallOrderGoodsExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order_goods
@@ -125,24 +107,6 @@ public interface LitemallOrderGoodsMapper {
*/
LitemallOrderGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallOrderGoods record, @Param("example") LitemallOrderGoodsExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallOrderGoods record, @Param("example") LitemallOrderGoodsExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order_goods
@@ -159,24 +123,6 @@ public interface LitemallOrderGoodsMapper {
*/
int updateByExample(@Param("record") LitemallOrderGoods record, @Param("example") LitemallOrderGoodsExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallOrderGoods record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallOrderGoods record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order_goods
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java
index 4d6e9ab0..02a65ed2 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java
@@ -14,15 +14,6 @@ public interface LitemallOrderMapper {
*/
long countByExample(LitemallOrderExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallOrderExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order
@@ -31,15 +22,6 @@ public interface LitemallOrderMapper {
*/
int deleteByExample(LitemallOrderExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order
@@ -125,24 +107,6 @@ public interface LitemallOrderMapper {
*/
LitemallOrder selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallOrder record, @Param("example") LitemallOrderExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallOrder record, @Param("example") LitemallOrderExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order
@@ -159,24 +123,6 @@ public interface LitemallOrderMapper {
*/
int updateByExample(@Param("record") LitemallOrder record, @Param("example") LitemallOrderExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallOrder record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallOrder record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java
deleted file mode 100644
index 8f529ff2..00000000
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java
+++ /dev/null
@@ -1,213 +0,0 @@
-package org.linlinjava.litemall.db.dao;
-
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
-import org.linlinjava.litemall.db.domain.LitemallProduct;
-import org.linlinjava.litemall.db.domain.LitemallProductExample;
-
-public interface LitemallProductMapper {
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- long countByExample(LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int deleteByExample(LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int deleteByPrimaryKey(Integer id);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int insert(LitemallProduct record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int insertSelective(LitemallProduct record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- LitemallProduct selectOneByExample(LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- LitemallProduct selectOneByExampleSelective(@Param("example") LitemallProductExample example, @Param("selective") LitemallProduct.Column ... selective);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- List selectByExampleSelective(@Param("example") LitemallProductExample example, @Param("selective") LitemallProduct.Column ... selective);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- List selectByExample(LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- LitemallProduct selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallProduct.Column ... selective);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- LitemallProduct selectByPrimaryKey(Integer id);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- LitemallProduct selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int updateByExampleSelective(@Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int updateByExample(@Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallProduct record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallProduct record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int updateByPrimaryKeySelective(LitemallProduct record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- */
- int updateByPrimaryKey(LitemallProduct record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int logicalDeleteByExample(@Param("example") LitemallProductExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int logicalDeleteByPrimaryKey(Integer id);
-}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.java
index d6208913..b4413d71 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.java
@@ -14,15 +14,6 @@ public interface LitemallSearchHistoryMapper {
*/
long countByExample(LitemallSearchHistoryExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallSearchHistoryExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
@@ -31,15 +22,6 @@ public interface LitemallSearchHistoryMapper {
*/
int deleteByExample(LitemallSearchHistoryExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
@@ -125,24 +107,6 @@ public interface LitemallSearchHistoryMapper {
*/
LitemallSearchHistory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallSearchHistory record, @Param("example") LitemallSearchHistoryExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallSearchHistory record, @Param("example") LitemallSearchHistoryExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
@@ -159,24 +123,6 @@ public interface LitemallSearchHistoryMapper {
*/
int updateByExample(@Param("record") LitemallSearchHistory record, @Param("example") LitemallSearchHistoryExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallSearchHistory record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallSearchHistory record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java
index ad571c1c..668be6f2 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java
@@ -14,15 +14,6 @@ public interface LitemallStorageMapper {
*/
long countByExample(LitemallStorageExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallStorageExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
@@ -31,15 +22,6 @@ public interface LitemallStorageMapper {
*/
int deleteByExample(LitemallStorageExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
@@ -125,24 +107,6 @@ public interface LitemallStorageMapper {
*/
LitemallStorage selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallStorage record, @Param("example") LitemallStorageExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallStorage record, @Param("example") LitemallStorageExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
@@ -159,24 +123,6 @@ public interface LitemallStorageMapper {
*/
int updateByExample(@Param("record") LitemallStorage record, @Param("example") LitemallStorageExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallStorage record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallStorage record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSystemMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSystemMapper.java
index 46277258..2ac31cd8 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSystemMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSystemMapper.java
@@ -14,15 +14,6 @@ public interface LitemallSystemMapper {
*/
long countByExample(LitemallSystemExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallSystemExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
@@ -31,15 +22,6 @@ public interface LitemallSystemMapper {
*/
int deleteByExample(LitemallSystemExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
@@ -125,24 +107,6 @@ public interface LitemallSystemMapper {
*/
LitemallSystem selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallSystem record, @Param("example") LitemallSystemExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallSystem record, @Param("example") LitemallSystemExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
@@ -159,24 +123,6 @@ public interface LitemallSystemMapper {
*/
int updateByExample(@Param("record") LitemallSystem record, @Param("example") LitemallSystemExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallSystem record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallSystem record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java
index 4ce6d595..79b8def2 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java
@@ -14,15 +14,6 @@ public interface LitemallTopicMapper {
*/
long countByExample(LitemallTopicExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallTopicExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
@@ -31,15 +22,6 @@ public interface LitemallTopicMapper {
*/
int deleteByExample(LitemallTopicExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
@@ -142,24 +124,6 @@ public interface LitemallTopicMapper {
*/
LitemallTopic selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
@@ -168,15 +132,6 @@ public interface LitemallTopicMapper {
*/
int updateByExampleSelective(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleWithBLOBs(@Param("version") Integer version, @Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
@@ -193,24 +148,6 @@ public interface LitemallTopicMapper {
*/
int updateByExample(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallTopic record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallTopic record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
@@ -219,15 +156,6 @@ public interface LitemallTopicMapper {
*/
int updateByPrimaryKeySelective(LitemallTopic record);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeyWithBLOBs(@Param("version") Integer version, @Param("record") LitemallTopic record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserFormidMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserFormidMapper.java
index 3ec4269f..cbf72a82 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserFormidMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserFormidMapper.java
@@ -14,15 +14,6 @@ public interface LitemallUserFormidMapper {
*/
long countByExample(LitemallUserFormidExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user_formid
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallUserFormidExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
@@ -31,15 +22,6 @@ public interface LitemallUserFormidMapper {
*/
int deleteByExample(LitemallUserFormidExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user_formid
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
@@ -123,16 +105,7 @@ public interface LitemallUserFormidMapper {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallUserFormid record, @Param("example") LitemallUserFormidExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user_formid
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallUserFormid record, @Param("example") LitemallUserFormidExample example);
+ LitemallUserFormid selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
@@ -150,24 +123,6 @@ public interface LitemallUserFormidMapper {
*/
int updateByExample(@Param("record") LitemallUserFormid record, @Param("example") LitemallUserFormidExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user_formid
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallUserFormid record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user_formid
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallUserFormid record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
@@ -183,4 +138,22 @@ public interface LitemallUserFormidMapper {
* @mbg.generated
*/
int updateByPrimaryKey(LitemallUserFormid record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByExample(@Param("example") LitemallUserFormidExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByPrimaryKey(Integer id);
}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserMapper.java
index 59f47682..9b311679 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserMapper.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserMapper.java
@@ -14,15 +14,6 @@ public interface LitemallUserMapper {
*/
long countByExample(LitemallUserExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallUserExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
@@ -31,15 +22,6 @@ public interface LitemallUserMapper {
*/
int deleteByExample(LitemallUserExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
@@ -125,24 +107,6 @@ public interface LitemallUserMapper {
*/
LitemallUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallUser record, @Param("example") LitemallUserExample example);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallUser record, @Param("example") LitemallUserExample example);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
@@ -159,24 +123,6 @@ public interface LitemallUserMapper {
*/
int updateByExample(@Param("record") LitemallUser record, @Param("example") LitemallUserExample example);
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallUser record);
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallUser record);
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/OrderMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/OrderMapper.java
new file mode 100644
index 00000000..333fe8c9
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/OrderMapper.java
@@ -0,0 +1,12 @@
+package org.linlinjava.litemall.db.dao;
+
+import org.apache.ibatis.annotations.Param;
+import org.linlinjava.litemall.db.domain.LitemallOrder;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import java.util.Map;
+
+public interface OrderMapper {
+ int updateWithOptimisticLocker(@Param("lastUpdateTime") LocalDateTime lastUpdateTime, @Param("order") LitemallOrder order);
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAd.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAd.java
index 443a6932..b527d53b 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAd.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAd.java
@@ -113,6 +113,15 @@ public class LitemallAd {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_ad.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -122,15 +131,6 @@ public class LitemallAd {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_ad.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_ad.id
@@ -371,6 +371,30 @@ public class LitemallAd {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_ad.update_time
+ *
+ * @return the value of litemall_ad.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_ad.update_time
+ *
+ * @param updateTime the value for litemall_ad.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_ad.deleted
@@ -395,30 +419,6 @@ public class LitemallAd {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_ad.version
- *
- * @return the value of litemall_ad.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_ad.version
- *
- * @param version the value for litemall_ad.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
@@ -441,8 +441,8 @@ public class LitemallAd {
sb.append(", endTime=").append(endTime);
sb.append(", enabled=").append(enabled);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -475,8 +475,8 @@ public class LitemallAd {
&& (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
&& (this.getEnabled() == null ? other.getEnabled() == null : this.getEnabled().equals(other.getEnabled()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -499,8 +499,8 @@ public class LitemallAd {
result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
result = prime * result + ((getEnabled() == null) ? 0 : getEnabled().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -533,8 +533,8 @@ public class LitemallAd {
endTime("end_time", "endTime", "TIMESTAMP", false),
enabled("enabled", "enabled", "BIT", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdExample.java
index ba7033c4..9859c127 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdExample.java
@@ -179,6 +179,18 @@ public class LitemallAdExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallAdExample example = new LitemallAdExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_ad
@@ -1586,6 +1598,138 @@ public class LitemallAdExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallAd.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallAd.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallAd.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallAd.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallAd.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_ad
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallAd.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1717,138 +1861,6 @@ public class LitemallAdExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallAd.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallAd.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallAd.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallAd.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallAd.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_ad
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallAd.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddress.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddress.java
index 2cc3d59d..989cd569 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddress.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddress.java
@@ -113,6 +113,15 @@ public class LitemallAddress {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_address.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -122,15 +131,6 @@ public class LitemallAddress {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_address.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_address.id
@@ -371,6 +371,30 @@ public class LitemallAddress {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_address.update_time
+ *
+ * @return the value of litemall_address.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_address.update_time
+ *
+ * @param updateTime the value for litemall_address.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_address.deleted
@@ -395,30 +419,6 @@ public class LitemallAddress {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_address.version
- *
- * @return the value of litemall_address.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_address.version
- *
- * @param version the value for litemall_address.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
@@ -441,8 +441,8 @@ public class LitemallAddress {
sb.append(", mobile=").append(mobile);
sb.append(", isDefault=").append(isDefault);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -475,8 +475,8 @@ public class LitemallAddress {
&& (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
&& (this.getIsDefault() == null ? other.getIsDefault() == null : this.getIsDefault().equals(other.getIsDefault()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -499,8 +499,8 @@ public class LitemallAddress {
result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
result = prime * result + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -533,8 +533,8 @@ public class LitemallAddress {
mobile("mobile", "mobile", "VARCHAR", false),
isDefault("is_default", "isDefault", "BIT", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddressExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddressExample.java
index 4717118b..57773c46 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddressExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAddressExample.java
@@ -179,6 +179,18 @@ public class LitemallAddressExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallAddressExample example = new LitemallAddressExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_address
@@ -1576,6 +1588,138 @@ public class LitemallAddressExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallAddress.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallAddress.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallAddress.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallAddress.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallAddress.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_address
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallAddress.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1707,138 +1851,6 @@ public class LitemallAddressExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallAddress.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallAddress.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallAddress.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallAddress.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallAddress.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_address
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallAddress.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdmin.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdmin.java
index 32c6faf3..bc0310dd 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdmin.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdmin.java
@@ -86,6 +86,15 @@ public class LitemallAdmin {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_admin.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -95,15 +104,6 @@ public class LitemallAdmin {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_admin.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_admin.id
@@ -272,6 +272,30 @@ public class LitemallAdmin {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_admin.update_time
+ *
+ * @return the value of litemall_admin.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_admin.update_time
+ *
+ * @param updateTime the value for litemall_admin.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_admin.deleted
@@ -296,30 +320,6 @@ public class LitemallAdmin {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_admin.version
- *
- * @return the value of litemall_admin.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_admin.version
- *
- * @param version the value for litemall_admin.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
@@ -339,8 +339,8 @@ public class LitemallAdmin {
sb.append(", lastLoginTime=").append(lastLoginTime);
sb.append(", avatar=").append(avatar);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -370,8 +370,8 @@ public class LitemallAdmin {
&& (this.getLastLoginTime() == null ? other.getLastLoginTime() == null : this.getLastLoginTime().equals(other.getLastLoginTime()))
&& (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -391,8 +391,8 @@ public class LitemallAdmin {
result = prime * result + ((getLastLoginTime() == null) ? 0 : getLastLoginTime().hashCode());
result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -422,8 +422,8 @@ public class LitemallAdmin {
lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP", false),
avatar("avatar", "avatar", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdminExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdminExample.java
index d5f1a359..012c3e84 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdminExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAdminExample.java
@@ -179,6 +179,18 @@ public class LitemallAdminExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallAdminExample example = new LitemallAdminExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_admin
@@ -1190,6 +1202,138 @@ public class LitemallAdminExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_admin
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1321,138 +1465,6 @@ public class LitemallAdminExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallAdmin.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallAdmin.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallAdmin.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallAdmin.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallAdmin.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_admin
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallAdmin.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrand.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrand.java
index acdd0c2a..ed67f31e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrand.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrand.java
@@ -87,6 +87,15 @@ public class LitemallBrand {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_brand.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -96,15 +105,6 @@ public class LitemallBrand {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_brand.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.id
@@ -273,6 +273,30 @@ public class LitemallBrand {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_brand.update_time
+ *
+ * @return the value of litemall_brand.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_brand.update_time
+ *
+ * @param updateTime the value for litemall_brand.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.deleted
@@ -297,30 +321,6 @@ public class LitemallBrand {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_brand.version
- *
- * @return the value of litemall_brand.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_brand.version
- *
- * @param version the value for litemall_brand.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
@@ -340,8 +340,8 @@ public class LitemallBrand {
sb.append(", sortOrder=").append(sortOrder);
sb.append(", floorPrice=").append(floorPrice);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -371,8 +371,8 @@ public class LitemallBrand {
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (this.getFloorPrice() == null ? other.getFloorPrice() == null : this.getFloorPrice().equals(other.getFloorPrice()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -392,8 +392,8 @@ public class LitemallBrand {
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + ((getFloorPrice() == null) ? 0 : getFloorPrice().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -423,8 +423,8 @@ public class LitemallBrand {
sortOrder("sort_order", "sortOrder", "TINYINT", false),
floorPrice("floor_price", "floorPrice", "DECIMAL", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrandExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrandExample.java
index 223aaa36..a7c9a23e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrandExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallBrandExample.java
@@ -180,6 +180,18 @@ public class LitemallBrandExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallBrandExample example = new LitemallBrandExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_brand
@@ -1181,6 +1193,138 @@ public class LitemallBrandExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallBrand.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallBrand.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallBrand.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallBrand.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallBrand.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_brand
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallBrand.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1312,138 +1456,6 @@ public class LitemallBrandExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallBrand.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallBrand.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallBrand.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallBrand.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallBrand.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_brand
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallBrand.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCart.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCart.java
index a1a61b00..e2e9e3d9 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCart.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCart.java
@@ -132,6 +132,15 @@ public class LitemallCart {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_cart.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -141,15 +150,6 @@ public class LitemallCart {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_cart.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.id
@@ -438,6 +438,30 @@ public class LitemallCart {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_cart.update_time
+ *
+ * @return the value of litemall_cart.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_cart.update_time
+ *
+ * @param updateTime the value for litemall_cart.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.deleted
@@ -462,30 +486,6 @@ public class LitemallCart {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_cart.version
- *
- * @return the value of litemall_cart.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_cart.version
- *
- * @param version the value for litemall_cart.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
@@ -510,8 +510,8 @@ public class LitemallCart {
sb.append(", checked=").append(checked);
sb.append(", picUrl=").append(picUrl);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -546,8 +546,8 @@ public class LitemallCart {
&& (this.getChecked() == null ? other.getChecked() == null : this.getChecked().equals(other.getChecked()))
&& (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -572,8 +572,8 @@ public class LitemallCart {
result = prime * result + ((getChecked() == null) ? 0 : getChecked().hashCode());
result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -608,8 +608,8 @@ public class LitemallCart {
checked("checked", "checked", "BIT", true),
picUrl("pic_url", "picUrl", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCartExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCartExample.java
index 00800aa8..be5e261c 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCartExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCartExample.java
@@ -180,6 +180,18 @@ public class LitemallCartExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallCartExample example = new LitemallCartExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_cart
@@ -1885,6 +1897,138 @@ public class LitemallCartExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallCart.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallCart.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallCart.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallCart.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallCart.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_cart
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallCart.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -2016,138 +2160,6 @@ public class LitemallCartExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallCart.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallCart.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallCart.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallCart.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallCart.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_cart
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallCart.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategory.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategory.java
index a197c67a..215c9854 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategory.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategory.java
@@ -113,6 +113,15 @@ public class LitemallCategory {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_category.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -122,15 +131,6 @@ public class LitemallCategory {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_category.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.id
@@ -371,6 +371,30 @@ public class LitemallCategory {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_category.update_time
+ *
+ * @return the value of litemall_category.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_category.update_time
+ *
+ * @param updateTime the value for litemall_category.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.deleted
@@ -395,30 +419,6 @@ public class LitemallCategory {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_category.version
- *
- * @return the value of litemall_category.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_category.version
- *
- * @param version the value for litemall_category.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
@@ -441,8 +441,8 @@ public class LitemallCategory {
sb.append(", level=").append(level);
sb.append(", sortOrder=").append(sortOrder);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -475,8 +475,8 @@ public class LitemallCategory {
&& (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -499,8 +499,8 @@ public class LitemallCategory {
result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -533,8 +533,8 @@ public class LitemallCategory {
level("level", "level", "VARCHAR", true),
sortOrder("sort_order", "sortOrder", "TINYINT", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategoryExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategoryExample.java
index a5584b1a..d36ac171 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategoryExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCategoryExample.java
@@ -179,6 +179,18 @@ public class LitemallCategoryExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallCategoryExample example = new LitemallCategoryExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_category
@@ -1606,6 +1618,138 @@ public class LitemallCategoryExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallCategory.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallCategory.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallCategory.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallCategory.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallCategory.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_category
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallCategory.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1737,138 +1881,6 @@ public class LitemallCategoryExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallCategory.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallCategory.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallCategory.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallCategory.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallCategory.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_category
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallCategory.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollect.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollect.java
index 6ec92f5d..7bd7b325 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollect.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollect.java
@@ -68,6 +68,15 @@ public class LitemallCollect {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_collect.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -77,15 +86,6 @@ public class LitemallCollect {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_collect.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_collect.id
@@ -206,6 +206,30 @@ public class LitemallCollect {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_collect.update_time
+ *
+ * @return the value of litemall_collect.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_collect.update_time
+ *
+ * @param updateTime the value for litemall_collect.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_collect.deleted
@@ -230,30 +254,6 @@ public class LitemallCollect {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_collect.version
- *
- * @return the value of litemall_collect.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_collect.version
- *
- * @param version the value for litemall_collect.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
@@ -271,8 +271,8 @@ public class LitemallCollect {
sb.append(", valueId=").append(valueId);
sb.append(", type=").append(type);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -300,8 +300,8 @@ public class LitemallCollect {
&& (this.getValueId() == null ? other.getValueId() == null : this.getValueId().equals(other.getValueId()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -319,8 +319,8 @@ public class LitemallCollect {
result = prime * result + ((getValueId() == null) ? 0 : getValueId().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -348,8 +348,8 @@ public class LitemallCollect {
valueId("value_id", "valueId", "INTEGER", false),
type("type", "type", "TINYINT", true),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollectExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollectExample.java
index 82ea00aa..73c21fc6 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollectExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCollectExample.java
@@ -179,6 +179,18 @@ public class LitemallCollectExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallCollectExample example = new LitemallCollectExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_collect
@@ -886,6 +898,138 @@ public class LitemallCollectExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallCollect.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallCollect.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallCollect.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallCollect.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallCollect.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_collect
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallCollect.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1017,138 +1161,6 @@ public class LitemallCollectExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallCollect.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallCollect.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallCollect.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallCollect.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallCollect.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_collect
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallCollect.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallComment.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallComment.java
index eee4aa0d..5504da2b 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallComment.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallComment.java
@@ -104,6 +104,15 @@ public class LitemallComment {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_comment.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -113,15 +122,6 @@ public class LitemallComment {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_comment.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_comment.id
@@ -338,6 +338,30 @@ public class LitemallComment {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_comment.update_time
+ *
+ * @return the value of litemall_comment.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_comment.update_time
+ *
+ * @param updateTime the value for litemall_comment.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_comment.deleted
@@ -362,30 +386,6 @@ public class LitemallComment {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_comment.version
- *
- * @return the value of litemall_comment.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_comment.version
- *
- * @param version the value for litemall_comment.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
@@ -407,8 +407,8 @@ public class LitemallComment {
sb.append(", picUrls=").append(picUrls);
sb.append(", star=").append(star);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -440,8 +440,8 @@ public class LitemallComment {
&& (Arrays.equals(this.getPicUrls(), other.getPicUrls()))
&& (this.getStar() == null ? other.getStar() == null : this.getStar().equals(other.getStar()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -463,8 +463,8 @@ public class LitemallComment {
result = prime * result + (Arrays.hashCode(getPicUrls()));
result = prime * result + ((getStar() == null) ? 0 : getStar().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -496,8 +496,8 @@ public class LitemallComment {
picUrls("pic_urls", "picUrls", "VARCHAR", false),
star("star", "star", "SMALLINT", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCommentExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCommentExample.java
index fb71baa3..bd166c50 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCommentExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCommentExample.java
@@ -179,6 +179,18 @@ public class LitemallCommentExample {
distinct = false;
}
+ /**
+ * 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 static Criteria newAndCreateCriteria() {
+ LitemallCommentExample example = new LitemallCommentExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_comment
@@ -1468,6 +1480,138 @@ public class LitemallCommentExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeEqualToColumn(LitemallComment.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeNotEqualToColumn(LitemallComment.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanColumn(LitemallComment.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanOrEqualToColumn(LitemallComment.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanColumn(LitemallComment.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanOrEqualToColumn(LitemallComment.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1599,138 +1743,6 @@ public class LitemallCommentExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) 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 andVersionEqualToColumn(LitemallComment.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) 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 andVersionNotEqualToColumn(LitemallComment.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) 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 andVersionGreaterThanColumn(LitemallComment.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) 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 andVersionGreaterThanOrEqualToColumn(LitemallComment.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) 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 andVersionLessThanColumn(LitemallComment.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) 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 andVersionLessThanOrEqualToColumn(LitemallComment.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedback.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedback.java
index a75bbc9c..1b990c4c 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedback.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedback.java
@@ -113,6 +113,15 @@ public class LitemallFeedback {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_feedback.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -122,15 +131,6 @@ public class LitemallFeedback {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_feedback.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_feedback.id
@@ -371,6 +371,30 @@ public class LitemallFeedback {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_feedback.update_time
+ *
+ * @return the value of litemall_feedback.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_feedback.update_time
+ *
+ * @param updateTime the value for litemall_feedback.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_feedback.deleted
@@ -395,30 +419,6 @@ public class LitemallFeedback {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_feedback.version
- *
- * @return the value of litemall_feedback.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_feedback.version
- *
- * @param version the value for litemall_feedback.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_feedback
@@ -441,8 +441,8 @@ public class LitemallFeedback {
sb.append(", hasPicture=").append(hasPicture);
sb.append(", picUrls=").append(picUrls);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -475,8 +475,8 @@ public class LitemallFeedback {
&& (this.getHasPicture() == null ? other.getHasPicture() == null : this.getHasPicture().equals(other.getHasPicture()))
&& (Arrays.equals(this.getPicUrls(), other.getPicUrls()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -499,8 +499,8 @@ public class LitemallFeedback {
result = prime * result + ((getHasPicture() == null) ? 0 : getHasPicture().hashCode());
result = prime * result + (Arrays.hashCode(getPicUrls()));
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -533,8 +533,8 @@ public class LitemallFeedback {
hasPicture("has_picture", "hasPicture", "BIT", false),
picUrls("pic_urls", "picUrls", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedbackExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedbackExample.java
index 5d80f40a..7849964e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedbackExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFeedbackExample.java
@@ -179,6 +179,18 @@ public class LitemallFeedbackExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallFeedbackExample example = new LitemallFeedbackExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_feedback
@@ -1630,6 +1642,138 @@ public class LitemallFeedbackExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallFeedback.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallFeedback.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallFeedback.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallFeedback.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallFeedback.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_feedback
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallFeedback.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1761,138 +1905,6 @@ public class LitemallFeedbackExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallFeedback.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallFeedback.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallFeedback.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallFeedback.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallFeedback.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_feedback
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallFeedback.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprint.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprint.java
index 4677cd71..d3db0bb5 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprint.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprint.java
@@ -59,6 +59,15 @@ public class LitemallFootprint {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_footprint.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -68,15 +77,6 @@ public class LitemallFootprint {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_footprint.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_footprint.id
@@ -173,6 +173,30 @@ public class LitemallFootprint {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_footprint.update_time
+ *
+ * @return the value of litemall_footprint.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_footprint.update_time
+ *
+ * @param updateTime the value for litemall_footprint.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_footprint.deleted
@@ -197,30 +221,6 @@ public class LitemallFootprint {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_footprint.version
- *
- * @return the value of litemall_footprint.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_footprint.version
- *
- * @param version the value for litemall_footprint.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
@@ -237,8 +237,8 @@ public class LitemallFootprint {
sb.append(", userId=").append(userId);
sb.append(", goodsId=").append(goodsId);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -265,8 +265,8 @@ public class LitemallFootprint {
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -283,8 +283,8 @@ public class LitemallFootprint {
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -311,8 +311,8 @@ public class LitemallFootprint {
userId("user_id", "userId", "INTEGER", false),
goodsId("goods_id", "goodsId", "INTEGER", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprintExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprintExample.java
index 3ada7d27..e61a2b6d 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprintExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallFootprintExample.java
@@ -179,6 +179,18 @@ public class LitemallFootprintExample {
distinct = false;
}
+ /**
+ * 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 static Criteria newAndCreateCriteria() {
+ LitemallFootprintExample example = new LitemallFootprintExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_footprint
@@ -754,6 +766,138 @@ public class LitemallFootprintExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeEqualToColumn(LitemallFootprint.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeNotEqualToColumn(LitemallFootprint.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanColumn(LitemallFootprint.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanOrEqualToColumn(LitemallFootprint.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanColumn(LitemallFootprint.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanOrEqualToColumn(LitemallFootprint.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -885,138 +1029,6 @@ public class LitemallFootprintExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) 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 andVersionEqualToColumn(LitemallFootprint.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) 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 andVersionNotEqualToColumn(LitemallFootprint.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) 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 andVersionGreaterThanColumn(LitemallFootprint.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) 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 andVersionGreaterThanOrEqualToColumn(LitemallFootprint.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) 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 andVersionLessThanColumn(LitemallFootprint.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) 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 andVersionLessThanOrEqualToColumn(LitemallFootprint.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoods.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoods.java
index 0c23e2d2..09fca558 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoods.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoods.java
@@ -186,6 +186,15 @@ public class LitemallGoods {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_goods.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -195,15 +204,6 @@ public class LitemallGoods {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_goods.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
*
* This field was generated by MyBatis Generator.
@@ -645,6 +645,30 @@ public class LitemallGoods {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_goods.update_time
+ *
+ * @return the value of litemall_goods.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_goods.update_time
+ *
+ * @param updateTime the value for litemall_goods.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods.deleted
@@ -669,30 +693,6 @@ public class LitemallGoods {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_goods.version
- *
- * @return the value of litemall_goods.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_goods.version
- *
- * @param version the value for litemall_goods.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods.detail
@@ -747,8 +747,8 @@ public class LitemallGoods {
sb.append(", counterPrice=").append(counterPrice);
sb.append(", retailPrice=").append(retailPrice);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append(", detail=").append(detail);
sb.append("]");
return sb.toString();
@@ -790,8 +790,8 @@ public class LitemallGoods {
&& (this.getCounterPrice() == null ? other.getCounterPrice() == null : this.getCounterPrice().equals(other.getCounterPrice()))
&& (this.getRetailPrice() == null ? other.getRetailPrice() == null : this.getRetailPrice().equals(other.getRetailPrice()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
&& (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()));
}
@@ -823,8 +823,8 @@ public class LitemallGoods {
result = prime * result + ((getCounterPrice() == null) ? 0 : getCounterPrice().hashCode());
result = prime * result + ((getRetailPrice() == null) ? 0 : getRetailPrice().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());
return result;
}
@@ -866,8 +866,8 @@ public class LitemallGoods {
counterPrice("counter_price", "counterPrice", "DECIMAL", false),
retailPrice("retail_price", "retailPrice", "DECIMAL", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false),
detail("detail", "detail", "LONGVARCHAR", false);
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttribute.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttribute.java
index ff4ecf4b..3337b8a6 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttribute.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttribute.java
@@ -68,6 +68,15 @@ public class LitemallGoodsAttribute {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_goods_attribute.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -77,15 +86,6 @@ public class LitemallGoodsAttribute {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_goods_attribute.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods_attribute.id
@@ -206,6 +206,30 @@ public class LitemallGoodsAttribute {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_goods_attribute.update_time
+ *
+ * @return the value of litemall_goods_attribute.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_goods_attribute.update_time
+ *
+ * @param updateTime the value for litemall_goods_attribute.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods_attribute.deleted
@@ -230,30 +254,6 @@ public class LitemallGoodsAttribute {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_goods_attribute.version
- *
- * @return the value of litemall_goods_attribute.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_goods_attribute.version
- *
- * @param version the value for litemall_goods_attribute.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
@@ -271,8 +271,8 @@ public class LitemallGoodsAttribute {
sb.append(", attribute=").append(attribute);
sb.append(", value=").append(value);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -300,8 +300,8 @@ public class LitemallGoodsAttribute {
&& (this.getAttribute() == null ? other.getAttribute() == null : this.getAttribute().equals(other.getAttribute()))
&& (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -319,8 +319,8 @@ public class LitemallGoodsAttribute {
result = prime * result + ((getAttribute() == null) ? 0 : getAttribute().hashCode());
result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -348,8 +348,8 @@ public class LitemallGoodsAttribute {
attribute("attribute", "attribute", "VARCHAR", true),
value("value", "value", "VARCHAR", true),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttributeExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttributeExample.java
index eb3c9fa5..a84b1c91 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttributeExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsAttributeExample.java
@@ -179,6 +179,18 @@ public class LitemallGoodsAttributeExample {
distinct = false;
}
+ /**
+ * 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 static Criteria newAndCreateCriteria() {
+ LitemallGoodsAttributeExample example = new LitemallGoodsAttributeExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_goods_attribute
@@ -906,6 +918,138 @@ public class LitemallGoodsAttributeExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeEqualToColumn(LitemallGoodsAttribute.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeNotEqualToColumn(LitemallGoodsAttribute.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanColumn(LitemallGoodsAttribute.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanColumn(LitemallGoodsAttribute.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1037,138 +1181,6 @@ public class LitemallGoodsAttributeExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) 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 andVersionEqualToColumn(LitemallGoodsAttribute.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) 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 andVersionNotEqualToColumn(LitemallGoodsAttribute.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) 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 andVersionGreaterThanColumn(LitemallGoodsAttribute.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) 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 andVersionGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) 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 andVersionLessThanColumn(LitemallGoodsAttribute.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) 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 andVersionLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsExample.java
index b9492ddf..7cc9a942 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsExample.java
@@ -180,6 +180,18 @@ public class LitemallGoodsExample {
distinct = false;
}
+ /**
+ * 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 static Criteria newAndCreateCriteria() {
+ LitemallGoodsExample example = new LitemallGoodsExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_goods
@@ -2717,6 +2729,138 @@ public class LitemallGoodsExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeEqualToColumn(LitemallGoods.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeNotEqualToColumn(LitemallGoods.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanColumn(LitemallGoods.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeGreaterThanOrEqualToColumn(LitemallGoods.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanColumn(LitemallGoods.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) 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 andUpdateTimeLessThanOrEqualToColumn(LitemallGoods.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -2848,138 +2992,6 @@ public class LitemallGoodsExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) 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 andVersionEqualToColumn(LitemallGoods.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) 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 andVersionNotEqualToColumn(LitemallGoods.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) 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 andVersionGreaterThanColumn(LitemallGoods.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) 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 andVersionGreaterThanOrEqualToColumn(LitemallGoods.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) 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 andVersionLessThanColumn(LitemallGoods.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) 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 andVersionLessThanOrEqualToColumn(LitemallGoods.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java
similarity index 79%
rename from litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java
rename to litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java
index 5a189775..9b37b60b 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java
@@ -5,10 +5,10 @@ import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
-public class LitemallProduct {
+public class LitemallGoodsProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -17,7 +17,7 @@ public class LitemallProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -27,7 +27,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.id
+ * This field corresponds to the database column litemall_goods_product.id
*
* @mbg.generated
*/
@@ -36,7 +36,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.goods_id
+ * This field corresponds to the database column litemall_goods_product.goods_id
*
* @mbg.generated
*/
@@ -45,7 +45,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.specifications
+ * This field corresponds to the database column litemall_goods_product.specifications
*
* @mbg.generated
*/
@@ -54,7 +54,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.price
+ * This field corresponds to the database column litemall_goods_product.price
*
* @mbg.generated
*/
@@ -63,7 +63,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.number
+ * This field corresponds to the database column litemall_goods_product.number
*
* @mbg.generated
*/
@@ -72,7 +72,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.url
+ * This field corresponds to the database column litemall_goods_product.url
*
* @mbg.generated
*/
@@ -81,7 +81,7 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.add_time
+ * This field corresponds to the database column litemall_goods_product.add_time
*
* @mbg.generated
*/
@@ -90,26 +90,26 @@ public class LitemallProduct {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.deleted
+ * This field corresponds to the database column litemall_goods_product.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_goods_product.deleted
*
* @mbg.generated
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_product.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.id
+ * This method returns the value of the database column litemall_goods_product.id
*
- * @return the value of litemall_product.id
+ * @return the value of litemall_goods_product.id
*
* @mbg.generated
*/
@@ -119,9 +119,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.id
+ * This method sets the value of the database column litemall_goods_product.id
*
- * @param id the value for litemall_product.id
+ * @param id the value for litemall_goods_product.id
*
* @mbg.generated
*/
@@ -131,9 +131,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.goods_id
+ * This method returns the value of the database column litemall_goods_product.goods_id
*
- * @return the value of litemall_product.goods_id
+ * @return the value of litemall_goods_product.goods_id
*
* @mbg.generated
*/
@@ -143,9 +143,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.goods_id
+ * This method sets the value of the database column litemall_goods_product.goods_id
*
- * @param goodsId the value for litemall_product.goods_id
+ * @param goodsId the value for litemall_goods_product.goods_id
*
* @mbg.generated
*/
@@ -155,9 +155,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.specifications
+ * This method returns the value of the database column litemall_goods_product.specifications
*
- * @return the value of litemall_product.specifications
+ * @return the value of litemall_goods_product.specifications
*
* @mbg.generated
*/
@@ -167,9 +167,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.specifications
+ * This method sets the value of the database column litemall_goods_product.specifications
*
- * @param specifications the value for litemall_product.specifications
+ * @param specifications the value for litemall_goods_product.specifications
*
* @mbg.generated
*/
@@ -179,9 +179,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.price
+ * This method returns the value of the database column litemall_goods_product.price
*
- * @return the value of litemall_product.price
+ * @return the value of litemall_goods_product.price
*
* @mbg.generated
*/
@@ -191,9 +191,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.price
+ * This method sets the value of the database column litemall_goods_product.price
*
- * @param price the value for litemall_product.price
+ * @param price the value for litemall_goods_product.price
*
* @mbg.generated
*/
@@ -203,9 +203,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.number
+ * This method returns the value of the database column litemall_goods_product.number
*
- * @return the value of litemall_product.number
+ * @return the value of litemall_goods_product.number
*
* @mbg.generated
*/
@@ -215,9 +215,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.number
+ * This method sets the value of the database column litemall_goods_product.number
*
- * @param number the value for litemall_product.number
+ * @param number the value for litemall_goods_product.number
*
* @mbg.generated
*/
@@ -227,9 +227,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.url
+ * This method returns the value of the database column litemall_goods_product.url
*
- * @return the value of litemall_product.url
+ * @return the value of litemall_goods_product.url
*
* @mbg.generated
*/
@@ -239,9 +239,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.url
+ * This method sets the value of the database column litemall_goods_product.url
*
- * @param url the value for litemall_product.url
+ * @param url the value for litemall_goods_product.url
*
* @mbg.generated
*/
@@ -251,9 +251,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.add_time
+ * This method returns the value of the database column litemall_goods_product.add_time
*
- * @return the value of litemall_product.add_time
+ * @return the value of litemall_goods_product.add_time
*
* @mbg.generated
*/
@@ -263,9 +263,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.add_time
+ * This method sets the value of the database column litemall_goods_product.add_time
*
- * @param addTime the value for litemall_product.add_time
+ * @param addTime the value for litemall_goods_product.add_time
*
* @mbg.generated
*/
@@ -275,9 +275,33 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.deleted
+ * This method returns the value of the database column litemall_goods_product.update_time
*
- * @return the value of litemall_product.deleted
+ * @return the value of litemall_goods_product.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_goods_product.update_time
+ *
+ * @param updateTime the value for litemall_goods_product.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_goods_product.deleted
+ *
+ * @return the value of litemall_goods_product.deleted
*
* @mbg.generated
*/
@@ -287,9 +311,9 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.deleted
+ * This method sets the value of the database column litemall_goods_product.deleted
*
- * @param deleted the value for litemall_product.deleted
+ * @param deleted the value for litemall_goods_product.deleted
*
* @mbg.generated
*/
@@ -299,31 +323,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_product.version
- *
- * @return the value of litemall_product.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_product.version
- *
- * @param version the value for litemall_product.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -340,15 +340,15 @@ public class LitemallProduct {
sb.append(", number=").append(number);
sb.append(", url=").append(url);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -363,7 +363,7 @@ public class LitemallProduct {
if (getClass() != that.getClass()) {
return false;
}
- LitemallProduct other = (LitemallProduct) that;
+ LitemallGoodsProduct other = (LitemallGoodsProduct) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
&& (Arrays.equals(this.getSpecifications(), other.getSpecifications()))
@@ -371,13 +371,13 @@ public class LitemallProduct {
&& (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -392,14 +392,14 @@ public class LitemallProduct {
result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -410,7 +410,7 @@ public class LitemallProduct {
/**
* This enum was generated by MyBatis Generator.
- * This enum corresponds to the database table litemall_product
+ * This enum corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -423,12 +423,12 @@ public class LitemallProduct {
number("number", "number", "INTEGER", true),
url("url", "url", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -437,7 +437,7 @@ public class LitemallProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -446,7 +446,7 @@ public class LitemallProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -455,7 +455,7 @@ public class LitemallProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -464,7 +464,7 @@ public class LitemallProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -473,7 +473,7 @@ public class LitemallProduct {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -482,7 +482,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -493,7 +493,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -504,7 +504,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -515,7 +515,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -526,7 +526,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -540,7 +540,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -551,7 +551,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -562,7 +562,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -577,7 +577,7 @@ public class LitemallProduct {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java
similarity index 84%
rename from litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java
rename to litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java
index 7e262938..49e1bcbb 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java
@@ -5,10 +5,10 @@ import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
-public class LitemallProductExample {
+public class LitemallGoodsProductExample {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -16,7 +16,7 @@ public class LitemallProductExample {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -24,7 +24,7 @@ public class LitemallProductExample {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -32,17 +32,17 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
- public LitemallProductExample() {
+ public LitemallGoodsProductExample() {
oredCriteria = new ArrayList();
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -52,7 +52,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -62,7 +62,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -72,7 +72,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -82,7 +82,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -92,7 +92,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -102,7 +102,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -114,24 +114,24 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public LitemallProductExample orderBy(String orderByClause) {
+ public LitemallGoodsProductExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public LitemallProductExample orderBy(String ... orderByClauses) {
+ public LitemallGoodsProductExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
@@ -145,7 +145,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -159,7 +159,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -170,7 +170,7 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -180,9 +180,21 @@ public class LitemallProductExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallGoodsProductExample example = new LitemallGoodsProductExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
- * This class corresponds to the database table litemall_product
+ * This class corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
@@ -278,12 +290,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andIdEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andIdEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -295,12 +307,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andIdNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andIdNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -312,12 +324,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andIdGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andIdGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -329,12 +341,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andIdGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -346,12 +358,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andIdLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andIdLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -363,12 +375,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andIdLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andIdLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -410,12 +422,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andGoodsIdEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andGoodsIdEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -427,12 +439,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andGoodsIdNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andGoodsIdNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -444,12 +456,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andGoodsIdGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andGoodsIdGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -461,12 +473,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -478,12 +490,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andGoodsIdLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andGoodsIdLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -495,12 +507,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -542,12 +554,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andSpecificationsEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andSpecificationsEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("specifications = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -559,12 +571,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andSpecificationsNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andSpecificationsNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("specifications <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -576,12 +588,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andSpecificationsGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andSpecificationsGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("specifications > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -593,12 +605,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andSpecificationsGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andSpecificationsGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("specifications >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -610,12 +622,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andSpecificationsLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andSpecificationsLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("specifications < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -627,12 +639,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andSpecificationsLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andSpecificationsLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("specifications <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -684,12 +696,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andPriceEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andPriceEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("price = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -701,12 +713,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andPriceNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andPriceNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("price <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -718,12 +730,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andPriceGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andPriceGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("price > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -735,12 +747,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andPriceGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andPriceGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("price >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -752,12 +764,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andPriceLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andPriceLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("price < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -769,12 +781,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andPriceLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andPriceLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("price <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -816,12 +828,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andNumberEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andNumberEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("`number` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -833,12 +845,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andNumberNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andNumberNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("`number` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -850,12 +862,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andNumberGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andNumberGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("`number` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -867,12 +879,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andNumberGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andNumberGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("`number` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -884,12 +896,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andNumberLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andNumberLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("`number` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -901,12 +913,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andNumberLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andNumberLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("`number` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -948,12 +960,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andUrlEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andUrlEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("url = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -965,12 +977,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andUrlNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andUrlNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("url <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -982,12 +994,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andUrlGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andUrlGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("url > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -999,12 +1011,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andUrlGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andUrlGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("url >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1016,12 +1028,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andUrlLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andUrlLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("url < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1033,12 +1045,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andUrlLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andUrlLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("url <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1090,12 +1102,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andAddTimeEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andAddTimeEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1107,12 +1119,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andAddTimeNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andAddTimeNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1124,12 +1136,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andAddTimeGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andAddTimeGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1141,12 +1153,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1158,12 +1170,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andAddTimeLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andAddTimeLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1175,12 +1187,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andAddTimeLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1205,6 +1217,138 @@ public class LitemallProductExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallGoodsProduct.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallGoodsProduct.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallGoodsProduct.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallGoodsProduct.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_product
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1222,12 +1366,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andDeletedEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andDeletedEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1239,12 +1383,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andDeletedNotEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andDeletedNotEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1256,12 +1400,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andDeletedGreaterThanColumn(LitemallProduct.Column column) {
+ public Criteria andDeletedGreaterThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1273,12 +1417,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1290,12 +1434,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andDeletedLessThanColumn(LitemallProduct.Column column) {
+ public Criteria andDeletedLessThanColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1307,12 +1451,12 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andDeletedLessThanOrEqualToColumn(LitemallProduct.Column column) {
+ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) {
addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
@@ -1336,182 +1480,50 @@ public class LitemallProductExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallProduct.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallProduct.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallProduct.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallProduct.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallProduct.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallProduct.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
* This class was generated by MyBatis Generator.
- * This class corresponds to the database table litemall_product
+ * This class corresponds to the database table litemall_goods_product
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
- * This field corresponds to the database table litemall_product
+ * This field corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- private LitemallProductExample example;
+ private LitemallGoodsProductExample example;
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- protected Criteria(LitemallProductExample example) {
+ protected Criteria(LitemallGoodsProductExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public LitemallProductExample example() {
+ public LitemallGoodsProductExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -1525,18 +1537,18 @@ public class LitemallProductExample {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
- return deleted ? andDeletedEqualTo(LitemallProduct.IS_DELETED) : andDeletedNotEqualTo(LitemallProduct.IS_DELETED);
+ return deleted ? andDeletedEqualTo(LitemallGoodsProduct.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsProduct.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
- * This interface corresponds to the database table litemall_product
+ * This interface corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -1544,7 +1556,7 @@ public class LitemallProductExample {
public interface ICriteriaAdd {
/**
* This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_product
+ * This method corresponds to the database table litemall_goods_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
@@ -1555,7 +1567,7 @@ public class LitemallProductExample {
/**
* This class was generated by MyBatis Generator.
- * This class corresponds to the database table litemall_product
+ * This class corresponds to the database table litemall_goods_product
*
* @mbg.generated
*/
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecification.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecification.java
index fd05cdb7..bc6ffa98 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecification.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecification.java
@@ -77,6 +77,15 @@ public class LitemallGoodsSpecification {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_goods_specification.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -86,15 +95,6 @@ public class LitemallGoodsSpecification {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_goods_specification.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods_specification.id
@@ -239,6 +239,30 @@ public class LitemallGoodsSpecification {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_goods_specification.update_time
+ *
+ * @return the value of litemall_goods_specification.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_goods_specification.update_time
+ *
+ * @param updateTime the value for litemall_goods_specification.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods_specification.deleted
@@ -263,30 +287,6 @@ public class LitemallGoodsSpecification {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_goods_specification.version
- *
- * @return the value of litemall_goods_specification.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_goods_specification.version
- *
- * @param version the value for litemall_goods_specification.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_specification
@@ -305,8 +305,8 @@ public class LitemallGoodsSpecification {
sb.append(", value=").append(value);
sb.append(", picUrl=").append(picUrl);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -335,8 +335,8 @@ public class LitemallGoodsSpecification {
&& (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
&& (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -355,8 +355,8 @@ public class LitemallGoodsSpecification {
result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -385,8 +385,8 @@ public class LitemallGoodsSpecification {
value("value", "value", "VARCHAR", true),
picUrl("pic_url", "picUrl", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecificationExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecificationExample.java
index fd4f8a24..5b3b38ae 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecificationExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsSpecificationExample.java
@@ -179,6 +179,18 @@ public class LitemallGoodsSpecificationExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallGoodsSpecificationExample example = new LitemallGoodsSpecificationExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_goods_specification
@@ -1048,6 +1060,138 @@ public class LitemallGoodsSpecificationExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallGoodsSpecification.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallGoodsSpecification.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallGoodsSpecification.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallGoodsSpecification.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_goods_specification
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1179,138 +1323,6 @@ public class LitemallGoodsSpecificationExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallGoodsSpecification.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallGoodsSpecification.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallGoodsSpecification.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallGoodsSpecification.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_goods_specification
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java
index c715864a..9f91904d 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java
@@ -86,6 +86,15 @@ public class LitemallGroupon {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -113,15 +122,6 @@ public class LitemallGroupon {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_groupon.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_groupon.id
@@ -290,6 +290,30 @@ public class LitemallGroupon {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.update_time
+ *
+ * @return the value of litemall_groupon.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.update_time
+ *
+ * @param updateTime the value for litemall_groupon.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_groupon.share_url
@@ -362,30 +386,6 @@ public class LitemallGroupon {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_groupon.version
- *
- * @return the value of litemall_groupon.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_groupon.version
- *
- * @param version the value for litemall_groupon.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon
@@ -405,10 +405,10 @@ public class LitemallGroupon {
sb.append(", userId=").append(userId);
sb.append(", creatorUserId=").append(creatorUserId);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", shareUrl=").append(shareUrl);
sb.append(", payed=").append(payed);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -438,10 +438,10 @@ public class LitemallGroupon {
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getCreatorUserId() == null ? other.getCreatorUserId() == null : this.getCreatorUserId().equals(other.getCreatorUserId()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getShareUrl() == null ? other.getShareUrl() == null : this.getShareUrl().equals(other.getShareUrl()))
&& (this.getPayed() == null ? other.getPayed() == null : this.getPayed().equals(other.getPayed()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -461,10 +461,10 @@ public class LitemallGroupon {
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getCreatorUserId() == null) ? 0 : getCreatorUserId().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getShareUrl() == null) ? 0 : getShareUrl().hashCode());
result = prime * result + ((getPayed() == null) ? 0 : getPayed().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -494,10 +494,10 @@ public class LitemallGroupon {
userId("user_id", "userId", "INTEGER", false),
creatorUserId("creator_user_id", "creatorUserId", "INTEGER", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
shareUrl("share_url", "shareUrl", "VARCHAR", false),
payed("payed", "payed", "BIT", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java
index d6b668ff..fe0df7d1 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java
@@ -179,6 +179,18 @@ public class LitemallGrouponExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallGrouponExample example = new LitemallGrouponExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_groupon
@@ -1150,6 +1162,138 @@ public class LitemallGrouponExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallGroupon.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallGroupon.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallGroupon.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallGroupon.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallGroupon.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallGroupon.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andShareUrlIsNull() {
addCriterion("share_url is null");
return (Criteria) this;
@@ -1555,138 +1699,6 @@ public class LitemallGrouponExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallGroupon.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallGroupon.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallGroupon.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallGroupon.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallGroupon.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallGroupon.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java
index 1e2ba0e8..378d8eda 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java
@@ -87,6 +87,15 @@ public class LitemallGrouponRules {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -105,15 +114,6 @@ public class LitemallGrouponRules {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_groupon_rules.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_groupon_rules.id
@@ -282,6 +282,30 @@ public class LitemallGrouponRules {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.update_time
+ *
+ * @return the value of litemall_groupon_rules.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.update_time
+ *
+ * @param updateTime the value for litemall_groupon_rules.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_groupon_rules.expire_time
@@ -330,30 +354,6 @@ public class LitemallGrouponRules {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_groupon_rules.version
- *
- * @return the value of litemall_groupon_rules.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_groupon_rules.version
- *
- * @param version the value for litemall_groupon_rules.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_groupon_rules
@@ -373,9 +373,9 @@ public class LitemallGrouponRules {
sb.append(", discount=").append(discount);
sb.append(", discountMember=").append(discountMember);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", expireTime=").append(expireTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -405,9 +405,9 @@ public class LitemallGrouponRules {
&& (this.getDiscount() == null ? other.getDiscount() == null : this.getDiscount().equals(other.getDiscount()))
&& (this.getDiscountMember() == null ? other.getDiscountMember() == null : this.getDiscountMember().equals(other.getDiscountMember()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getExpireTime() == null ? other.getExpireTime() == null : this.getExpireTime().equals(other.getExpireTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -427,9 +427,9 @@ public class LitemallGrouponRules {
result = prime * result + ((getDiscount() == null) ? 0 : getDiscount().hashCode());
result = prime * result + ((getDiscountMember() == null) ? 0 : getDiscountMember().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getExpireTime() == null) ? 0 : getExpireTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -459,9 +459,9 @@ public class LitemallGrouponRules {
discount("discount", "discount", "DECIMAL", false),
discountMember("discount_member", "discountMember", "INTEGER", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
expireTime("expire_time", "expireTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java
index d102443a..62835388 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java
@@ -180,6 +180,18 @@ public class LitemallGrouponRulesExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallGrouponRulesExample example = new LitemallGrouponRulesExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_groupon_rules
@@ -1171,6 +1183,138 @@ public class LitemallGrouponRulesExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallGrouponRules.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallGrouponRules.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallGrouponRules.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallGrouponRules.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallGrouponRules.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andExpireTimeIsNull() {
addCriterion("expire_time is null");
return (Criteria) this;
@@ -1434,138 +1578,6 @@ public class LitemallGrouponRulesExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallGrouponRules.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallGrouponRules.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallGrouponRules.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallGrouponRules.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_groupon_rules
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallGrouponRules.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssue.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssue.java
index 170f6055..49f4a081 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssue.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssue.java
@@ -59,6 +59,15 @@ public class LitemallIssue {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_issue.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -68,15 +77,6 @@ public class LitemallIssue {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_issue.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_issue.id
@@ -173,6 +173,30 @@ public class LitemallIssue {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_issue.update_time
+ *
+ * @return the value of litemall_issue.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_issue.update_time
+ *
+ * @param updateTime the value for litemall_issue.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_issue.deleted
@@ -197,30 +221,6 @@ public class LitemallIssue {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_issue.version
- *
- * @return the value of litemall_issue.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_issue.version
- *
- * @param version the value for litemall_issue.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_issue
@@ -237,8 +237,8 @@ public class LitemallIssue {
sb.append(", question=").append(question);
sb.append(", answer=").append(answer);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -265,8 +265,8 @@ public class LitemallIssue {
&& (this.getQuestion() == null ? other.getQuestion() == null : this.getQuestion().equals(other.getQuestion()))
&& (this.getAnswer() == null ? other.getAnswer() == null : this.getAnswer().equals(other.getAnswer()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -283,8 +283,8 @@ public class LitemallIssue {
result = prime * result + ((getQuestion() == null) ? 0 : getQuestion().hashCode());
result = prime * result + ((getAnswer() == null) ? 0 : getAnswer().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -311,8 +311,8 @@ public class LitemallIssue {
question("question", "question", "VARCHAR", false),
answer("answer", "answer", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssueExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssueExample.java
index 43b0b38e..6a739ca5 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssueExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallIssueExample.java
@@ -179,6 +179,18 @@ public class LitemallIssueExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallIssueExample example = new LitemallIssueExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_issue
@@ -774,6 +786,138 @@ public class LitemallIssueExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallIssue.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallIssue.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallIssue.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallIssue.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallIssue.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_issue
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallIssue.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -905,138 +1049,6 @@ public class LitemallIssueExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallIssue.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallIssue.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallIssue.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallIssue.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallIssue.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_issue
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallIssue.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeyword.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeyword.java
index b9b8dc09..6c4a9e50 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeyword.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeyword.java
@@ -86,6 +86,15 @@ public class LitemallKeyword {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_keyword.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -95,15 +104,6 @@ public class LitemallKeyword {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_keyword.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_keyword.id
@@ -272,6 +272,30 @@ public class LitemallKeyword {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_keyword.update_time
+ *
+ * @return the value of litemall_keyword.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_keyword.update_time
+ *
+ * @param updateTime the value for litemall_keyword.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_keyword.deleted
@@ -296,30 +320,6 @@ public class LitemallKeyword {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_keyword.version
- *
- * @return the value of litemall_keyword.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_keyword.version
- *
- * @param version the value for litemall_keyword.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_keyword
@@ -339,8 +339,8 @@ public class LitemallKeyword {
sb.append(", isDefault=").append(isDefault);
sb.append(", sortOrder=").append(sortOrder);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -370,8 +370,8 @@ public class LitemallKeyword {
&& (this.getIsDefault() == null ? other.getIsDefault() == null : this.getIsDefault().equals(other.getIsDefault()))
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -391,8 +391,8 @@ public class LitemallKeyword {
result = prime * result + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode());
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -422,8 +422,8 @@ public class LitemallKeyword {
isDefault("is_default", "isDefault", "BIT", false),
sortOrder("sort_order", "sortOrder", "INTEGER", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeywordExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeywordExample.java
index 24ad1081..08ffe6b8 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeywordExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallKeywordExample.java
@@ -179,6 +179,18 @@ public class LitemallKeywordExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallKeywordExample example = new LitemallKeywordExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_keyword
@@ -1170,6 +1182,138 @@ public class LitemallKeywordExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallKeyword.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallKeyword.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallKeyword.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallKeyword.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallKeyword.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_keyword
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallKeyword.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1301,138 +1445,6 @@ public class LitemallKeywordExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallKeyword.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallKeyword.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallKeyword.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallKeyword.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallKeyword.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_keyword
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallKeyword.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java
index 47d9feae..3cbfca15 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java
@@ -87,6 +87,15 @@ public class LitemallOrder {
*/
private String address;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_order.message
+ *
+ * @mbg.generated
+ */
+ private String message;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -204,6 +213,15 @@ public class LitemallOrder {
*/
private LocalDateTime confirmTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_order.comments
+ *
+ * @mbg.generated
+ */
+ private Short comments;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -222,6 +240,15 @@ public class LitemallOrder {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_order.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -231,15 +258,6 @@ public class LitemallOrder {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_order.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order.id
@@ -408,6 +426,30 @@ public class LitemallOrder {
this.address = address;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_order.message
+ *
+ * @return the value of litemall_order.message
+ *
+ * @mbg.generated
+ */
+ public String getMessage() {
+ return message;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_order.message
+ *
+ * @param message the value for litemall_order.message
+ *
+ * @mbg.generated
+ */
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order.goods_price
@@ -720,6 +762,30 @@ public class LitemallOrder {
this.confirmTime = confirmTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_order.comments
+ *
+ * @return the value of litemall_order.comments
+ *
+ * @mbg.generated
+ */
+ public Short getComments() {
+ return comments;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_order.comments
+ *
+ * @param comments the value for litemall_order.comments
+ *
+ * @mbg.generated
+ */
+ public void setComments(Short comments) {
+ this.comments = comments;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order.end_time
@@ -768,6 +834,30 @@ public class LitemallOrder {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_order.update_time
+ *
+ * @return the value of litemall_order.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_order.update_time
+ *
+ * @param updateTime the value for litemall_order.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order.deleted
@@ -792,30 +882,6 @@ public class LitemallOrder {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_order.version
- *
- * @return the value of litemall_order.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_order.version
- *
- * @param version the value for litemall_order.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order
@@ -835,6 +901,7 @@ public class LitemallOrder {
sb.append(", consignee=").append(consignee);
sb.append(", mobile=").append(mobile);
sb.append(", address=").append(address);
+ sb.append(", message=").append(message);
sb.append(", goodsPrice=").append(goodsPrice);
sb.append(", freightPrice=").append(freightPrice);
sb.append(", couponPrice=").append(couponPrice);
@@ -848,10 +915,11 @@ public class LitemallOrder {
sb.append(", shipChannel=").append(shipChannel);
sb.append(", shipTime=").append(shipTime);
sb.append(", confirmTime=").append(confirmTime);
+ sb.append(", comments=").append(comments);
sb.append(", endTime=").append(endTime);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -881,6 +949,7 @@ public class LitemallOrder {
&& (this.getConsignee() == null ? other.getConsignee() == null : this.getConsignee().equals(other.getConsignee()))
&& (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
&& (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
+ && (this.getMessage() == null ? other.getMessage() == null : this.getMessage().equals(other.getMessage()))
&& (this.getGoodsPrice() == null ? other.getGoodsPrice() == null : this.getGoodsPrice().equals(other.getGoodsPrice()))
&& (this.getFreightPrice() == null ? other.getFreightPrice() == null : this.getFreightPrice().equals(other.getFreightPrice()))
&& (this.getCouponPrice() == null ? other.getCouponPrice() == null : this.getCouponPrice().equals(other.getCouponPrice()))
@@ -894,10 +963,11 @@ public class LitemallOrder {
&& (this.getShipChannel() == null ? other.getShipChannel() == null : this.getShipChannel().equals(other.getShipChannel()))
&& (this.getShipTime() == null ? other.getShipTime() == null : this.getShipTime().equals(other.getShipTime()))
&& (this.getConfirmTime() == null ? other.getConfirmTime() == null : this.getConfirmTime().equals(other.getConfirmTime()))
+ && (this.getComments() == null ? other.getComments() == null : this.getComments().equals(other.getComments()))
&& (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -917,6 +987,7 @@ public class LitemallOrder {
result = prime * result + ((getConsignee() == null) ? 0 : getConsignee().hashCode());
result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
+ result = prime * result + ((getMessage() == null) ? 0 : getMessage().hashCode());
result = prime * result + ((getGoodsPrice() == null) ? 0 : getGoodsPrice().hashCode());
result = prime * result + ((getFreightPrice() == null) ? 0 : getFreightPrice().hashCode());
result = prime * result + ((getCouponPrice() == null) ? 0 : getCouponPrice().hashCode());
@@ -930,10 +1001,11 @@ public class LitemallOrder {
result = prime * result + ((getShipChannel() == null) ? 0 : getShipChannel().hashCode());
result = prime * result + ((getShipTime() == null) ? 0 : getShipTime().hashCode());
result = prime * result + ((getConfirmTime() == null) ? 0 : getConfirmTime().hashCode());
+ result = prime * result + ((getComments() == null) ? 0 : getComments().hashCode());
result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -963,6 +1035,7 @@ public class LitemallOrder {
consignee("consignee", "consignee", "VARCHAR", false),
mobile("mobile", "mobile", "VARCHAR", false),
address("address", "address", "VARCHAR", false),
+ message("message", "message", "VARCHAR", false),
goodsPrice("goods_price", "goodsPrice", "DECIMAL", false),
freightPrice("freight_price", "freightPrice", "DECIMAL", false),
couponPrice("coupon_price", "couponPrice", "DECIMAL", false),
@@ -976,10 +1049,11 @@ public class LitemallOrder {
shipChannel("ship_channel", "shipChannel", "VARCHAR", false),
shipTime("ship_time", "shipTime", "TIMESTAMP", false),
confirmTime("confirm_time", "confirmTime", "TIMESTAMP", false),
+ comments("comments", "comments", "SMALLINT", false),
endTime("end_time", "endTime", "TIMESTAMP", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java
index e08bd381..2350f146 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java
@@ -180,6 +180,18 @@ public class LitemallOrderExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallOrderExample example = new LitemallOrderExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_order
@@ -1191,6 +1203,148 @@ public class LitemallOrderExample {
return (Criteria) this;
}
+ public Criteria andMessageIsNull() {
+ addCriterion("message is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageIsNotNull() {
+ addCriterion("message is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageEqualTo(String value) {
+ addCriterion("message =", value, "message");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andMessageEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("message = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageNotEqualTo(String value) {
+ addCriterion("message <>", value, "message");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andMessageNotEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("message <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageGreaterThan(String value) {
+ addCriterion("message >", value, "message");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andMessageGreaterThanColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("message > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageGreaterThanOrEqualTo(String value) {
+ addCriterion("message >=", value, "message");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andMessageGreaterThanOrEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("message >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageLessThan(String value) {
+ addCriterion("message <", value, "message");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andMessageLessThanColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("message < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageLessThanOrEqualTo(String value) {
+ addCriterion("message <=", value, "message");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andMessageLessThanOrEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("message <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageLike(String value) {
+ addCriterion("message like", value, "message");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageNotLike(String value) {
+ addCriterion("message not like", value, "message");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageIn(List values) {
+ addCriterion("message in", values, "message");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageNotIn(List values) {
+ addCriterion("message not in", values, "message");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageBetween(String value1, String value2) {
+ addCriterion("message between", value1, value2, "message");
+ return (Criteria) this;
+ }
+
+ public Criteria andMessageNotBetween(String value1, String value2) {
+ addCriterion("message not between", value1, value2, "message");
+ return (Criteria) this;
+ }
+
public Criteria andGoodsPriceIsNull() {
addCriterion("goods_price is null");
return (Criteria) this;
@@ -2937,6 +3091,138 @@ public class LitemallOrderExample {
return (Criteria) this;
}
+ public Criteria andCommentsIsNull() {
+ addCriterion("comments is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsIsNotNull() {
+ addCriterion("comments is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsEqualTo(Short value) {
+ addCriterion("comments =", value, "comments");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentsEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("comments = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsNotEqualTo(Short value) {
+ addCriterion("comments <>", value, "comments");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentsNotEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("comments <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsGreaterThan(Short value) {
+ addCriterion("comments >", value, "comments");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentsGreaterThanColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("comments > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsGreaterThanOrEqualTo(Short value) {
+ addCriterion("comments >=", value, "comments");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentsGreaterThanOrEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("comments >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsLessThan(Short value) {
+ addCriterion("comments <", value, "comments");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentsLessThanColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("comments < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsLessThanOrEqualTo(Short value) {
+ addCriterion("comments <=", value, "comments");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentsLessThanOrEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("comments <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsIn(List values) {
+ addCriterion("comments in", values, "comments");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsNotIn(List values) {
+ addCriterion("comments not in", values, "comments");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsBetween(Short value1, Short value2) {
+ addCriterion("comments between", value1, value2, "comments");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentsNotBetween(Short value1, Short value2) {
+ addCriterion("comments not between", value1, value2, "comments");
+ return (Criteria) this;
+ }
+
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
@@ -3201,6 +3487,138 @@ public class LitemallOrderExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallOrder.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -3332,138 +3750,6 @@ public class LitemallOrderExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallOrder.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallOrder.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallOrder.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallOrder.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallOrder.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallOrder.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoods.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoods.java
index 265d29c4..c909fb5b 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoods.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoods.java
@@ -114,6 +114,15 @@ public class LitemallOrderGoods {
*/
private String picUrl;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_order_goods.comment
+ *
+ * @mbg.generated
+ */
+ private Integer comment;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -123,6 +132,15 @@ public class LitemallOrderGoods {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_order_goods.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -132,15 +150,6 @@ public class LitemallOrderGoods {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_order_goods.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order_goods.id
@@ -381,6 +390,30 @@ public class LitemallOrderGoods {
this.picUrl = picUrl;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_order_goods.comment
+ *
+ * @return the value of litemall_order_goods.comment
+ *
+ * @mbg.generated
+ */
+ public Integer getComment() {
+ return comment;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_order_goods.comment
+ *
+ * @param comment the value for litemall_order_goods.comment
+ *
+ * @mbg.generated
+ */
+ public void setComment(Integer comment) {
+ this.comment = comment;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order_goods.add_time
@@ -405,6 +438,30 @@ public class LitemallOrderGoods {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_order_goods.update_time
+ *
+ * @return the value of litemall_order_goods.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_order_goods.update_time
+ *
+ * @param updateTime the value for litemall_order_goods.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order_goods.deleted
@@ -429,30 +486,6 @@ public class LitemallOrderGoods {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_order_goods.version
- *
- * @return the value of litemall_order_goods.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_order_goods.version
- *
- * @param version the value for litemall_order_goods.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_order_goods
@@ -475,9 +508,10 @@ public class LitemallOrderGoods {
sb.append(", price=").append(price);
sb.append(", specifications=").append(specifications);
sb.append(", picUrl=").append(picUrl);
+ sb.append(", comment=").append(comment);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -510,9 +544,10 @@ public class LitemallOrderGoods {
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
&& (Arrays.equals(this.getSpecifications(), other.getSpecifications()))
&& (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
+ && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -535,9 +570,10 @@ public class LitemallOrderGoods {
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
result = prime * result + (Arrays.hashCode(getSpecifications()));
result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
+ result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -570,9 +606,10 @@ public class LitemallOrderGoods {
price("price", "price", "DECIMAL", false),
specifications("specifications", "specifications", "VARCHAR", false),
picUrl("pic_url", "picUrl", "VARCHAR", false),
+ comment("comment", "comment", "INTEGER", true),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoodsExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoodsExample.java
index e141a6aa..d0093fd7 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoodsExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderGoodsExample.java
@@ -180,6 +180,18 @@ public class LitemallOrderGoodsExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallOrderGoodsExample example = new LitemallOrderGoodsExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_order_goods
@@ -1621,6 +1633,138 @@ public class LitemallOrderGoodsExample {
return (Criteria) this;
}
+ public Criteria andCommentIsNull() {
+ addCriterion("`comment` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentIsNotNull() {
+ addCriterion("`comment` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentEqualTo(Integer value) {
+ addCriterion("`comment` =", value, "comment");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("`comment` = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentNotEqualTo(Integer value) {
+ addCriterion("`comment` <>", value, "comment");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentNotEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("`comment` <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentGreaterThan(Integer value) {
+ addCriterion("`comment` >", value, "comment");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentGreaterThanColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("`comment` > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentGreaterThanOrEqualTo(Integer value) {
+ addCriterion("`comment` >=", value, "comment");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("`comment` >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentLessThan(Integer value) {
+ addCriterion("`comment` <", value, "comment");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentLessThanColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("`comment` < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentLessThanOrEqualTo(Integer value) {
+ addCriterion("`comment` <=", value, "comment");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andCommentLessThanOrEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("`comment` <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentIn(List values) {
+ addCriterion("`comment` in", values, "comment");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentNotIn(List values) {
+ addCriterion("`comment` not in", values, "comment");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentBetween(Integer value1, Integer value2) {
+ addCriterion("`comment` between", value1, value2, "comment");
+ return (Criteria) this;
+ }
+
+ public Criteria andCommentNotBetween(Integer value1, Integer value2) {
+ addCriterion("`comment` not between", value1, value2, "comment");
+ return (Criteria) this;
+ }
+
public Criteria andAddTimeIsNull() {
addCriterion("add_time is null");
return (Criteria) this;
@@ -1753,6 +1897,138 @@ public class LitemallOrderGoodsExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_order_goods
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallOrderGoods.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1884,138 +2160,6 @@ public class LitemallOrderGoodsExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallOrderGoods.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallOrderGoods.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallOrderGoods.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallOrderGoods.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_order_goods
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallOrderGoods.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionExample.java
index 7f138fdb..14ff7d19 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionExample.java
@@ -178,6 +178,18 @@ public class LitemallRegionExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_region
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallRegionExample example = new LitemallRegionExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_region
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistory.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistory.java
index c543fcd4..e1246c5c 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistory.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistory.java
@@ -68,6 +68,15 @@ public class LitemallSearchHistory {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_search_history.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -77,15 +86,6 @@ public class LitemallSearchHistory {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_search_history.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_search_history.id
@@ -206,6 +206,30 @@ public class LitemallSearchHistory {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_search_history.update_time
+ *
+ * @return the value of litemall_search_history.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_search_history.update_time
+ *
+ * @param updateTime the value for litemall_search_history.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_search_history.deleted
@@ -230,30 +254,6 @@ public class LitemallSearchHistory {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_search_history.version
- *
- * @return the value of litemall_search_history.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_search_history.version
- *
- * @param version the value for litemall_search_history.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
@@ -271,8 +271,8 @@ public class LitemallSearchHistory {
sb.append(", keyword=").append(keyword);
sb.append(", from=").append(from);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -300,8 +300,8 @@ public class LitemallSearchHistory {
&& (this.getKeyword() == null ? other.getKeyword() == null : this.getKeyword().equals(other.getKeyword()))
&& (this.getFrom() == null ? other.getFrom() == null : this.getFrom().equals(other.getFrom()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -319,8 +319,8 @@ public class LitemallSearchHistory {
result = prime * result + ((getKeyword() == null) ? 0 : getKeyword().hashCode());
result = prime * result + ((getFrom() == null) ? 0 : getFrom().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -348,8 +348,8 @@ public class LitemallSearchHistory {
keyword("keyword", "keyword", "VARCHAR", false),
from("from", "from", "VARCHAR", true),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistoryExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistoryExample.java
index 6dd7ffda..5dda515d 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistoryExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistoryExample.java
@@ -179,6 +179,18 @@ public class LitemallSearchHistoryExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallSearchHistoryExample example = new LitemallSearchHistoryExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_search_history
@@ -906,6 +918,138 @@ public class LitemallSearchHistoryExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallSearchHistory.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallSearchHistory.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallSearchHistory.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallSearchHistory.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_search_history
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallSearchHistory.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1037,138 +1181,6 @@ public class LitemallSearchHistoryExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallSearchHistory.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallSearchHistory.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallSearchHistory.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallSearchHistory.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_search_history
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallSearchHistory.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorage.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorage.java
index c2c9303a..57c3bff6 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorage.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorage.java
@@ -68,15 +68,6 @@ public class LitemallStorage {
*/
private Integer size;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_storage.modified
- *
- * @mbg.generated
- */
- private LocalDateTime modified;
-
/**
*
* This field was generated by MyBatis Generator.
@@ -95,6 +86,15 @@ public class LitemallStorage {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_storage.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -104,15 +104,6 @@ public class LitemallStorage {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_storage.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_storage.id
@@ -233,30 +224,6 @@ public class LitemallStorage {
this.size = size;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_storage.modified
- *
- * @return the value of litemall_storage.modified
- *
- * @mbg.generated
- */
- public LocalDateTime getModified() {
- return modified;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_storage.modified
- *
- * @param modified the value for litemall_storage.modified
- *
- * @mbg.generated
- */
- public void setModified(LocalDateTime modified) {
- this.modified = modified;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_storage.url
@@ -305,6 +272,30 @@ public class LitemallStorage {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_storage.update_time
+ *
+ * @return the value of litemall_storage.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_storage.update_time
+ *
+ * @param updateTime the value for litemall_storage.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_storage.deleted
@@ -329,30 +320,6 @@ public class LitemallStorage {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_storage.version
- *
- * @return the value of litemall_storage.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_storage.version
- *
- * @param version the value for litemall_storage.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
@@ -370,11 +337,10 @@ public class LitemallStorage {
sb.append(", name=").append(name);
sb.append(", type=").append(type);
sb.append(", size=").append(size);
- sb.append(", modified=").append(modified);
sb.append(", url=").append(url);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -402,11 +368,10 @@ public class LitemallStorage {
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getSize() == null ? other.getSize() == null : this.getSize().equals(other.getSize()))
- && (this.getModified() == null ? other.getModified() == null : this.getModified().equals(other.getModified()))
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -424,11 +389,10 @@ public class LitemallStorage {
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getSize() == null) ? 0 : getSize().hashCode());
- result = prime * result + ((getModified() == null) ? 0 : getModified().hashCode());
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -456,11 +420,10 @@ public class LitemallStorage {
name("name", "name", "VARCHAR", true),
type("type", "type", "VARCHAR", true),
size("size", "size", "INTEGER", true),
- modified("modified", "modified", "TIMESTAMP", false),
url("url", "url", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorageExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorageExample.java
index a708f929..53030dec 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorageExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallStorageExample.java
@@ -179,6 +179,18 @@ public class LitemallStorageExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallStorageExample example = new LitemallStorageExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_storage
@@ -916,138 +928,6 @@ public class LitemallStorageExample {
return (Criteria) this;
}
- public Criteria andModifiedIsNull() {
- addCriterion("modified is null");
- return (Criteria) this;
- }
-
- public Criteria andModifiedIsNotNull() {
- addCriterion("modified is not null");
- return (Criteria) this;
- }
-
- public Criteria andModifiedEqualTo(LocalDateTime value) {
- addCriterion("modified =", value, "modified");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andModifiedEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("modified = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andModifiedNotEqualTo(LocalDateTime value) {
- addCriterion("modified <>", value, "modified");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andModifiedNotEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("modified <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andModifiedGreaterThan(LocalDateTime value) {
- addCriterion("modified >", value, "modified");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andModifiedGreaterThanColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("modified > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andModifiedGreaterThanOrEqualTo(LocalDateTime value) {
- addCriterion("modified >=", value, "modified");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andModifiedGreaterThanOrEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("modified >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andModifiedLessThan(LocalDateTime value) {
- addCriterion("modified <", value, "modified");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andModifiedLessThanColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("modified < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andModifiedLessThanOrEqualTo(LocalDateTime value) {
- addCriterion("modified <=", value, "modified");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andModifiedLessThanOrEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("modified <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andModifiedIn(List values) {
- addCriterion("modified in", values, "modified");
- return (Criteria) this;
- }
-
- public Criteria andModifiedNotIn(List values) {
- addCriterion("modified not in", values, "modified");
- return (Criteria) this;
- }
-
- public Criteria andModifiedBetween(LocalDateTime value1, LocalDateTime value2) {
- addCriterion("modified between", value1, value2, "modified");
- return (Criteria) this;
- }
-
- public Criteria andModifiedNotBetween(LocalDateTime value1, LocalDateTime value2) {
- addCriterion("modified not between", value1, value2, "modified");
- return (Criteria) this;
- }
-
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
@@ -1322,6 +1202,138 @@ public class LitemallStorageExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallStorage.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallStorage.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallStorage.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallStorage.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallStorage.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_storage
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallStorage.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1453,138 +1465,6 @@ public class LitemallStorageExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_storage
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallStorage.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystem.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystem.java
index d5964ef6..3a7cb04a 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystem.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystem.java
@@ -1,5 +1,6 @@
package org.linlinjava.litemall.db.domain;
+import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
@@ -49,6 +50,24 @@ public class LitemallSystem {
*/
private String keyValue;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_system.add_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime addTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_system.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -58,15 +77,6 @@ public class LitemallSystem {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_system.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_system.id
@@ -139,6 +149,54 @@ public class LitemallSystem {
this.keyValue = keyValue;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_system.add_time
+ *
+ * @return the value of litemall_system.add_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getAddTime() {
+ return addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_system.add_time
+ *
+ * @param addTime the value for litemall_system.add_time
+ *
+ * @mbg.generated
+ */
+ public void setAddTime(LocalDateTime addTime) {
+ this.addTime = addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_system.update_time
+ *
+ * @return the value of litemall_system.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_system.update_time
+ *
+ * @param updateTime the value for litemall_system.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_system.deleted
@@ -163,30 +221,6 @@ public class LitemallSystem {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_system.version
- *
- * @return the value of litemall_system.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_system.version
- *
- * @param version the value for litemall_system.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
@@ -202,8 +236,9 @@ public class LitemallSystem {
sb.append(", id=").append(id);
sb.append(", keyName=").append(keyName);
sb.append(", keyValue=").append(keyValue);
+ sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -229,8 +264,9 @@ public class LitemallSystem {
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getKeyName() == null ? other.getKeyName() == null : this.getKeyName().equals(other.getKeyName()))
&& (this.getKeyValue() == null ? other.getKeyValue() == null : this.getKeyValue().equals(other.getKeyValue()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -246,8 +282,9 @@ public class LitemallSystem {
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
result = prime * result + ((getKeyValue() == null) ? 0 : getKeyValue().hashCode());
+ result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -273,8 +310,9 @@ public class LitemallSystem {
id("id", "id", "INTEGER", false),
keyName("key_name", "keyName", "VARCHAR", false),
keyValue("key_value", "keyValue", "VARCHAR", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystemExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystemExample.java
index 1843ae0c..40e620aa 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystemExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSystemExample.java
@@ -1,5 +1,6 @@
package org.linlinjava.litemall.db.domain;
+import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@@ -178,6 +179,18 @@ public class LitemallSystemExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallSystemExample example = new LitemallSystemExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_system
@@ -641,6 +654,270 @@ public class LitemallSystemExample {
return (Criteria) this;
}
+ public Criteria andAddTimeIsNull() {
+ addCriterion("add_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIsNotNull() {
+ addCriterion("add_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeEqualTo(LocalDateTime value) {
+ addCriterion("add_time =", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andAddTimeEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("add_time <>", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andAddTimeNotEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThan(LocalDateTime value) {
+ addCriterion("add_time >", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andAddTimeGreaterThanColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time >=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThan(LocalDateTime value) {
+ addCriterion("add_time <", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andAddTimeLessThanColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time <=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIn(List values) {
+ addCriterion("add_time in", values, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotIn(List values) {
+ addCriterion("add_time not in", values, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time not between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_system
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallSystem.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -772,138 +1049,6 @@ public class LitemallSystemExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallSystem.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallSystem.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallSystem.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallSystem.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallSystem.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_system
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallSystem.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopic.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopic.java
index 0a3a0838..5b511ecb 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopic.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopic.java
@@ -105,6 +105,15 @@ public class LitemallTopic {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_topic.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -114,15 +123,6 @@ public class LitemallTopic {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_topic.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
*
* This field was generated by MyBatis Generator.
@@ -348,6 +348,30 @@ public class LitemallTopic {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_topic.update_time
+ *
+ * @return the value of litemall_topic.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_topic.update_time
+ *
+ * @param updateTime the value for litemall_topic.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_topic.deleted
@@ -372,30 +396,6 @@ public class LitemallTopic {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_topic.version
- *
- * @return the value of litemall_topic.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_topic.version
- *
- * @param version the value for litemall_topic.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_topic.content
@@ -441,8 +441,8 @@ public class LitemallTopic {
sb.append(", sortOrder=").append(sortOrder);
sb.append(", goods=").append(goods);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append(", content=").append(content);
sb.append("]");
return sb.toString();
@@ -475,8 +475,8 @@ public class LitemallTopic {
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (Arrays.equals(this.getGoods(), other.getGoods()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
&& (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
}
@@ -499,8 +499,8 @@ public class LitemallTopic {
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + (Arrays.hashCode(getGoods()));
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
return result;
}
@@ -533,8 +533,8 @@ public class LitemallTopic {
sortOrder("sort_order", "sortOrder", "INTEGER", false),
goods("goods", "goods", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false),
content("content", "content", "LONGVARCHAR", false);
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopicExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopicExample.java
index d23f9cfd..22275fdd 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopicExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallTopicExample.java
@@ -180,6 +180,18 @@ public class LitemallTopicExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallTopicExample example = new LitemallTopicExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_topic
@@ -1499,6 +1511,138 @@ public class LitemallTopicExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallTopic.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallTopic.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallTopic.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallTopic.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallTopic.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_topic
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallTopic.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -1630,138 +1774,6 @@ public class LitemallTopicExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallTopic.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallTopic.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallTopic.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallTopic.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallTopic.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_topic
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallTopic.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUser.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUser.java
index 85880daa..8d8fa3d5 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUser.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUser.java
@@ -150,6 +150,15 @@ public class LitemallUser {
*/
private LocalDateTime addTime;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_user.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -159,15 +168,6 @@ public class LitemallUser {
*/
private Boolean deleted;
- /**
- *
- * This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_user.version
- *
- * @mbg.generated
- */
- private Integer version;
-
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_user.id
@@ -504,6 +504,30 @@ public class LitemallUser {
this.addTime = addTime;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_user.update_time
+ *
+ * @return the value of litemall_user.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_user.update_time
+ *
+ * @param updateTime the value for litemall_user.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_user.deleted
@@ -528,30 +552,6 @@ public class LitemallUser {
this.deleted = deleted;
}
- /**
- * This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_user.version
- *
- * @return the value of litemall_user.version
- *
- * @mbg.generated
- */
- public Integer getVersion() {
- return version;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_user.version
- *
- * @param version the value for litemall_user.version
- *
- * @mbg.generated
- */
- public void setVersion(Integer version) {
- this.version = version;
- }
-
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
@@ -578,8 +578,8 @@ public class LitemallUser {
sb.append(", weixinOpenid=").append(weixinOpenid);
sb.append(", status=").append(status);
sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
- sb.append(", version=").append(version);
sb.append("]");
return sb.toString();
}
@@ -616,8 +616,8 @@ public class LitemallUser {
&& (this.getWeixinOpenid() == null ? other.getWeixinOpenid() == null : this.getWeixinOpenid().equals(other.getWeixinOpenid()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
- && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -644,8 +644,8 @@ public class LitemallUser {
result = prime * result + ((getWeixinOpenid() == null) ? 0 : getWeixinOpenid().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
return result;
}
@@ -682,8 +682,8 @@ public class LitemallUser {
weixinOpenid("weixin_openid", "weixinOpenid", "VARCHAR", false),
status("status", "status", "TINYINT", true),
addTime("add_time", "addTime", "TIMESTAMP", false),
- deleted("deleted", "deleted", "BIT", false),
- version("version", "version", "INTEGER", false);
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserExample.java
index 5aec7834..65e1e44e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserExample.java
@@ -180,6 +180,18 @@ public class LitemallUserExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallUserExample example = new LitemallUserExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_user
@@ -2145,6 +2157,138 @@ public class LitemallUserExample {
return (Criteria) this;
}
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallUser.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallUser.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallUser.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallUser.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallUser.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallUser.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
@@ -2276,138 +2420,6 @@ public class LitemallUserExample {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
-
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
- return (Criteria) this;
- }
-
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
- return (Criteria) this;
- }
-
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionEqualToColumn(LitemallUser.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionNotEqualToColumn(LitemallUser.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanColumn(LitemallUser.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallUser.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanColumn(LitemallUser.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
- return (Criteria) this;
- }
-
- /**
- * This method was generated by MyBatis Generator.
- * This method corresponds to the database table litemall_user
- *
- * @mbg.generated
- * @project https://github.com/itfsw/mybatis-generator-plugin
- */
- public Criteria andVersionLessThanOrEqualToColumn(LitemallUser.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
- return (Criteria) this;
- }
-
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
- return (Criteria) this;
- }
-
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
- return (Criteria) this;
- }
}
/**
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormid.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormid.java
index 9f57e1a3..1d1d99a9 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormid.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormid.java
@@ -5,6 +5,24 @@ import java.util.ArrayList;
import java.util.Arrays;
public class LitemallUserFormid {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_user_formid
+ *
+ * @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_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static final Boolean IS_DELETED = true;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -62,11 +80,29 @@ public class LitemallUserFormid {
/**
*
* This field was generated by MyBatis Generator.
- * This field corresponds to the database column litemall_user_formid.version
+ * This field corresponds to the database column litemall_user_formid.add_time
*
* @mbg.generated
*/
- private Integer version;
+ private LocalDateTime addTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_user_formid.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_user_formid.deleted
+ *
+ * @mbg.generated
+ */
+ private Boolean deleted;
/**
* This method was generated by MyBatis Generator.
@@ -214,26 +250,74 @@ public class LitemallUserFormid {
/**
* This method was generated by MyBatis Generator.
- * This method returns the value of the database column litemall_user_formid.version
+ * This method returns the value of the database column litemall_user_formid.add_time
*
- * @return the value of litemall_user_formid.version
+ * @return the value of litemall_user_formid.add_time
*
* @mbg.generated
*/
- public Integer getVersion() {
- return version;
+ public LocalDateTime getAddTime() {
+ return addTime;
}
/**
* This method was generated by MyBatis Generator.
- * This method sets the value of the database column litemall_user_formid.version
+ * This method sets the value of the database column litemall_user_formid.add_time
*
- * @param version the value for litemall_user_formid.version
+ * @param addTime the value for litemall_user_formid.add_time
*
* @mbg.generated
*/
- public void setVersion(Integer version) {
- this.version = version;
+ public void setAddTime(LocalDateTime addTime) {
+ this.addTime = addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_user_formid.update_time
+ *
+ * @return the value of litemall_user_formid.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_user_formid.update_time
+ *
+ * @param updateTime the value for litemall_user_formid.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_user_formid.deleted
+ *
+ * @return the value of litemall_user_formid.deleted
+ *
+ * @mbg.generated
+ */
+ public Boolean getDeleted() {
+ return deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_user_formid.deleted
+ *
+ * @param deleted the value for litemall_user_formid.deleted
+ *
+ * @mbg.generated
+ */
+ public void setDeleted(Boolean deleted) {
+ this.deleted = deleted;
}
/**
@@ -254,7 +338,9 @@ public class LitemallUserFormid {
sb.append(", useamount=").append(useamount);
sb.append(", expireTime=").append(expireTime);
sb.append(", openid=").append(openid);
- sb.append(", version=").append(version);
+ sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
+ sb.append(", deleted=").append(deleted);
sb.append("]");
return sb.toString();
}
@@ -283,7 +369,9 @@ public class LitemallUserFormid {
&& (this.getUseamount() == null ? other.getUseamount() == null : this.getUseamount().equals(other.getUseamount()))
&& (this.getExpireTime() == null ? other.getExpireTime() == null : this.getExpireTime().equals(other.getExpireTime()))
&& (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
- && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
/**
@@ -302,10 +390,23 @@ public class LitemallUserFormid {
result = prime * result + ((getUseamount() == null) ? 0 : getUseamount().hashCode());
result = prime * result + ((getExpireTime() == null) ? 0 : getExpireTime().hashCode());
result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
- result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
+ result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
+ result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
return result;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @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 corresponds to the database table litemall_user_formid
@@ -320,7 +421,9 @@ public class LitemallUserFormid {
useamount("useAmount", "useamount", "INTEGER", false),
expireTime("expire_time", "expireTime", "TIMESTAMP", false),
openid("openId", "openid", "VARCHAR", false),
- version("version", "version", "INTEGER", false);
+ addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormidExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormidExample.java
index 930ed393..5ed0d160 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormidExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserFormidExample.java
@@ -179,6 +179,18 @@ public class LitemallUserFormidExample {
distinct = false;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallUserFormidExample example = new LitemallUserFormidExample();
+ return example.createCriteria();
+ }
+
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_user_formid
@@ -1038,18 +1050,18 @@ public class LitemallUserFormidExample {
return (Criteria) this;
}
- public Criteria andVersionIsNull() {
- addCriterion("version is null");
+ public Criteria andAddTimeIsNull() {
+ addCriterion("add_time is null");
return (Criteria) this;
}
- public Criteria andVersionIsNotNull() {
- addCriterion("version is not null");
+ public Criteria andAddTimeIsNotNull() {
+ addCriterion("add_time is not null");
return (Criteria) this;
}
- public Criteria andVersionEqualTo(Integer value) {
- addCriterion("version =", value, "version");
+ public Criteria andAddTimeEqualTo(LocalDateTime value) {
+ addCriterion("add_time =", value, "addTime");
return (Criteria) this;
}
@@ -1060,13 +1072,13 @@ public class LitemallUserFormidExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andVersionEqualToColumn(LitemallUserFormid.Column column) {
- addCriterion(new StringBuilder("version = ").append(column.getEscapedColumnName()).toString());
+ public Criteria andAddTimeEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
- public Criteria andVersionNotEqualTo(Integer value) {
- addCriterion("version <>", value, "version");
+ public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("add_time <>", value, "addTime");
return (Criteria) this;
}
@@ -1077,13 +1089,13 @@ public class LitemallUserFormidExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andVersionNotEqualToColumn(LitemallUserFormid.Column column) {
- addCriterion(new StringBuilder("version <> ").append(column.getEscapedColumnName()).toString());
+ public Criteria andAddTimeNotEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
- public Criteria andVersionGreaterThan(Integer value) {
- addCriterion("version >", value, "version");
+ public Criteria andAddTimeGreaterThan(LocalDateTime value) {
+ addCriterion("add_time >", value, "addTime");
return (Criteria) this;
}
@@ -1094,13 +1106,13 @@ public class LitemallUserFormidExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andVersionGreaterThanColumn(LitemallUserFormid.Column column) {
- addCriterion(new StringBuilder("version > ").append(column.getEscapedColumnName()).toString());
+ public Criteria andAddTimeGreaterThanColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
- public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
- addCriterion("version >=", value, "version");
+ public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time >=", value, "addTime");
return (Criteria) this;
}
@@ -1111,13 +1123,13 @@ public class LitemallUserFormidExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andVersionGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) {
- addCriterion(new StringBuilder("version >= ").append(column.getEscapedColumnName()).toString());
+ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
- public Criteria andVersionLessThan(Integer value) {
- addCriterion("version <", value, "version");
+ public Criteria andAddTimeLessThan(LocalDateTime value) {
+ addCriterion("add_time <", value, "addTime");
return (Criteria) this;
}
@@ -1128,13 +1140,13 @@ public class LitemallUserFormidExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andVersionLessThanColumn(LitemallUserFormid.Column column) {
- addCriterion(new StringBuilder("version < ").append(column.getEscapedColumnName()).toString());
+ public Criteria andAddTimeLessThanColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
- public Criteria andVersionLessThanOrEqualTo(Integer value) {
- addCriterion("version <=", value, "version");
+ public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time <=", value, "addTime");
return (Criteria) this;
}
@@ -1145,28 +1157,292 @@ public class LitemallUserFormidExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
- public Criteria andVersionLessThanOrEqualToColumn(LitemallUserFormid.Column column) {
- addCriterion(new StringBuilder("version <= ").append(column.getEscapedColumnName()).toString());
+ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
- public Criteria andVersionIn(List values) {
- addCriterion("version in", values, "version");
+ public Criteria andAddTimeIn(List values) {
+ addCriterion("add_time in", values, "addTime");
return (Criteria) this;
}
- public Criteria andVersionNotIn(List values) {
- addCriterion("version not in", values, "version");
+ public Criteria andAddTimeNotIn(List values) {
+ addCriterion("add_time not in", values, "addTime");
return (Criteria) this;
}
- public Criteria andVersionBetween(Integer value1, Integer value2) {
- addCriterion("version between", value1, value2, "version");
+ public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time between", value1, value2, "addTime");
return (Criteria) this;
}
- public Criteria andVersionNotBetween(Integer value1, Integer value2) {
- addCriterion("version not between", value1, value2, "version");
+ public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time not between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIsNull() {
+ addCriterion("deleted is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIsNotNull() {
+ addCriterion("deleted is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedEqualTo(Boolean value) {
+ addCriterion("deleted =", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andDeletedEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotEqualTo(Boolean value) {
+ addCriterion("deleted <>", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andDeletedNotEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThan(Boolean value) {
+ addCriterion("deleted >", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andDeletedGreaterThanColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("deleted >=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThan(Boolean value) {
+ addCriterion("deleted <", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andDeletedLessThanColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
+ addCriterion("deleted <=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andDeletedLessThanOrEqualToColumn(LitemallUserFormid.Column column) {
+ addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIn(List values) {
+ addCriterion("deleted in", values, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotIn(List values) {
+ addCriterion("deleted not in", values, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
+ addCriterion("deleted between", value1, value2, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
}
@@ -1224,6 +1500,17 @@ public class LitemallUserFormidExample {
return this;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_user_formid
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andLogicalDeleted(boolean deleted) {
+ return deleted ? andDeletedEqualTo(LitemallUserFormid.IS_DELETED) : andDeletedNotEqualTo(LitemallUserFormid.IS_DELETED);
+ }
+
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_user_formid
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdService.java
index 214afa5b..f23122ca 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -57,6 +58,7 @@ public class LitemallAdService {
}
public int updateById(LitemallAd ad) {
+ ad.setUpdateTime(LocalDateTime.now());
return adMapper.updateByPrimaryKeySelective(ad);
}
@@ -65,6 +67,8 @@ public class LitemallAdService {
}
public void add(LitemallAd ad) {
+ ad.setAddTime(LocalDateTime.now());
+ ad.setUpdateTime(LocalDateTime.now());
adMapper.insertSelective(ad);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAddressService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAddressService.java
index a98218fa..0c0b5ade 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAddressService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAddressService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -26,10 +27,13 @@ public class LitemallAddressService {
}
public int add(LitemallAddress address) {
+ address.setAddTime(LocalDateTime.now());
+ address.setUpdateTime(LocalDateTime.now());
return addressMapper.insertSelective(address);
}
public int update(LitemallAddress address) {
+ address.setUpdateTime(LocalDateTime.now());
return addressMapper.updateByPrimaryKeySelective(address);
}
@@ -46,6 +50,7 @@ public class LitemallAddressService {
public void resetDefault(Integer userId) {
LitemallAddress address = new LitemallAddress();
address.setIsDefault(false);
+ address.setUpdateTime(LocalDateTime.now());
LitemallAddressExample example = new LitemallAddressExample();
example.or().andUserIdEqualTo(userId).andDeletedEqualTo(false);
addressMapper.updateByExampleSelective(address, example);
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdminService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdminService.java
index a604fc6d..16e7c4ac 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdminService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallAdminService.java
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -24,7 +25,6 @@ public class LitemallAdminService {
public LitemallAdmin findAdmin(Integer id) {
return adminMapper.selectByPrimaryKey(id);
-
}
private final Column[] result = new Column[]{Column.id, Column.username, Column.avatar};
@@ -58,6 +58,7 @@ public class LitemallAdminService {
}
public int updateById(LitemallAdmin admin) {
+ admin.setUpdateTime(LocalDateTime.now());
return adminMapper.updateByPrimaryKeySelective(admin);
}
@@ -66,6 +67,8 @@ public class LitemallAdminService {
}
public void add(LitemallAdmin admin) {
+ admin.setAddTime(LocalDateTime.now());
+ admin.setUpdateTime(LocalDateTime.now());
adminMapper.insertSelective(admin);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallBrandService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallBrandService.java
index 66c4216b..13b3e888 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallBrandService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallBrandService.java
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -71,6 +72,7 @@ public class LitemallBrandService {
}
public int updateById(LitemallBrand brand) {
+ brand.setUpdateTime(LocalDateTime.now());
return brandMapper.updateByPrimaryKeySelective(brand);
}
@@ -79,6 +81,8 @@ public class LitemallBrandService {
}
public void add(LitemallBrand brand) {
+ brand.setAddTime(LocalDateTime.now());
+ brand.setUpdateTime(LocalDateTime.now());
brandMapper.insertSelective(brand);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCartService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCartService.java
index 0448752a..032c769c 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCartService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCartService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -22,10 +23,13 @@ public class LitemallCartService {
}
public void add(LitemallCart cart) {
+ cart.setAddTime(LocalDateTime.now());
+ cart.setUpdateTime(LocalDateTime.now());
cartMapper.insertSelective(cart);
}
public int updateById(LitemallCart cart) {
+ cart.setUpdateTime(LocalDateTime.now());
return cartMapper.updateByPrimaryKeySelective(cart);
}
@@ -57,6 +61,7 @@ public class LitemallCartService {
example.or().andUserIdEqualTo(userId).andProductIdIn(idsList).andDeletedEqualTo(false);
LitemallCart cart = new LitemallCart();
cart.setChecked(checked);
+ cart.setUpdateTime(LocalDateTime.now());
return cartMapper.updateByExampleSelective(cart, example);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCategoryService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCategoryService.java
index a5583e51..f2b0e36e 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCategoryService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCategoryService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -87,6 +88,7 @@ public class LitemallCategoryService {
}
public int updateById(LitemallCategory category) {
+ category.setUpdateTime(LocalDateTime.now());
return categoryMapper.updateByPrimaryKeySelective(category);
}
@@ -95,6 +97,8 @@ public class LitemallCategoryService {
}
public void add(LitemallCategory category) {
+ category.setAddTime(LocalDateTime.now());
+ category.setUpdateTime(LocalDateTime.now());
categoryMapper.insertSelective(category);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCollectService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCollectService.java
index 96f32640..9336a0f4 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCollectService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCollectService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -46,6 +47,8 @@ public class LitemallCollectService {
}
public int add(LitemallCollect collect) {
+ collect.setAddTime(LocalDateTime.now());
+ collect.setUpdateTime(LocalDateTime.now());
return collectMapper.insertSelective(collect);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java
index 19b6c37b..fa3aec41 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java
@@ -9,6 +9,7 @@ import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -61,6 +62,8 @@ public class LitemallCommentService {
}
public int save(LitemallComment comment) {
+ comment.setAddTime(LocalDateTime.now());
+ comment.setUpdateTime(LocalDateTime.now());
return commentMapper.insertSelective(comment);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFeedbackService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFeedbackService.java
index cd3fdfb9..16463a31 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFeedbackService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFeedbackService.java
@@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
+import java.time.LocalDateTime;
import java.util.List;
/**
@@ -20,6 +21,8 @@ public class LitemallFeedbackService {
private LitemallFeedbackMapper feedbackMapper;
public Integer add(LitemallFeedback feedback) {
+ feedback.setAddTime(LocalDateTime.now());
+ feedback.setUpdateTime(LocalDateTime.now());
return feedbackMapper.insertSelective(feedback);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFootprintService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFootprintService.java
index dc6ee0c9..63d26340 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFootprintService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallFootprintService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -38,6 +39,8 @@ public class LitemallFootprintService {
}
public void add(LitemallFootprint footprint) {
+ footprint.setAddTime(LocalDateTime.now());
+ footprint.setUpdateTime(LocalDateTime.now());
footprintMapper.insertSelective(footprint);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsAttributeService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsAttributeService.java
index 0dd1c694..06e86fca 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsAttributeService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsAttributeService.java
@@ -7,6 +7,7 @@ import org.linlinjava.litemall.db.domain.LitemallGoodsAttributeExample;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -21,6 +22,8 @@ public class LitemallGoodsAttributeService {
}
public void add(LitemallGoodsAttribute goodsAttribute) {
+ goodsAttribute.setAddTime(LocalDateTime.now());
+ goodsAttribute.setUpdateTime(LocalDateTime.now());
goodsAttributeMapper.insertSelective(goodsAttribute);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsProductService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsProductService.java
new file mode 100644
index 00000000..d4cb06ab
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsProductService.java
@@ -0,0 +1,53 @@
+package org.linlinjava.litemall.db.service;
+
+import org.linlinjava.litemall.db.dao.LitemallGoodsProductMapper;
+import org.linlinjava.litemall.db.domain.LitemallGoodsProduct;
+import org.linlinjava.litemall.db.domain.LitemallGoodsProductExample;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.time.LocalDateTime;
+import java.util.List;
+
+@Service
+public class LitemallGoodsProductService {
+ @Resource
+ private LitemallGoodsProductMapper goodsProductMapper;
+
+ public List queryByGid(Integer gid) {
+ LitemallGoodsProductExample example = new LitemallGoodsProductExample();
+ example.or().andGoodsIdEqualTo(gid).andDeletedEqualTo(false);
+ return goodsProductMapper.selectByExample(example);
+ }
+
+ public LitemallGoodsProduct findById(Integer id) {
+ return goodsProductMapper.selectByPrimaryKey(id);
+ }
+
+ public int updateById(LitemallGoodsProduct goodsProduct) {
+ goodsProduct.setUpdateTime(LocalDateTime.now());
+ return goodsProductMapper.updateByPrimaryKeySelective(goodsProduct);
+ }
+
+ public void deleteById(Integer id) {
+ goodsProductMapper.logicalDeleteByPrimaryKey(id);
+ }
+
+ public void add(LitemallGoodsProduct goodsProduct) {
+ goodsProduct.setAddTime(LocalDateTime.now());
+ goodsProduct.setUpdateTime(LocalDateTime.now());
+ goodsProductMapper.insertSelective(goodsProduct);
+ }
+
+ public int count() {
+ LitemallGoodsProductExample example = new LitemallGoodsProductExample();
+ example.or().andDeletedEqualTo(false);
+ return (int)goodsProductMapper.countByExample(example);
+ }
+
+ public void deleteByGid(Integer gid) {
+ LitemallGoodsProductExample example = new LitemallGoodsProductExample();
+ example.or().andGoodsIdEqualTo(gid);
+ goodsProductMapper.logicalDeleteByExample(example);
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsService.java
index ff2d1f74..a7fdf228 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsService.java
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@@ -171,7 +172,11 @@ public class LitemallGoodsService {
if (!StringUtils.isEmpty(name)) {
criteria.andNameLike("%" + name + "%");
}
- criteria.andIsOnSaleEqualTo(true).andDeletedEqualTo(false);
+ criteria.andDeletedEqualTo(false);
+
+ if (!StringUtils.isEmpty(sort) && !StringUtils.isEmpty(order)) {
+ example.setOrderByClause(sort + " " + order);
+ }
PageHelper.startPage(page, size);
return goodsMapper.selectByExampleWithBLOBs(example);
@@ -187,7 +192,7 @@ public class LitemallGoodsService {
if (!StringUtils.isEmpty(name)) {
criteria.andNameLike("%" + name + "%");
}
- criteria.andIsOnSaleEqualTo(true).andDeletedEqualTo(false);
+ criteria.andDeletedEqualTo(false);
return (int) goodsMapper.countByExample(example);
}
@@ -229,6 +234,7 @@ public class LitemallGoodsService {
}
public int updateById(LitemallGoods goods) {
+ goods.setUpdateTime(LocalDateTime.now());
return goodsMapper.updateByPrimaryKeySelective(goods);
}
@@ -237,6 +243,8 @@ public class LitemallGoodsService {
}
public void add(LitemallGoods goods) {
+ goods.setAddTime(LocalDateTime.now());
+ goods.setUpdateTime(LocalDateTime.now());
goodsMapper.insertSelective(goods);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsSpecificationService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsSpecificationService.java
index a459e1ce..d1d913ba 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsSpecificationService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsSpecificationService.java
@@ -7,6 +7,7 @@ import org.linlinjava.litemall.db.domain.LitemallGoodsSpecificationExample;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -34,6 +35,8 @@ public class LitemallGoodsSpecificationService {
}
public void add(LitemallGoodsSpecification goodsSpecification) {
+ goodsSpecification.setAddTime(LocalDateTime.now());
+ goodsSpecification.setUpdateTime(LocalDateTime.now());
goodsSpecificationMapper.insertSelective(goodsSpecification);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java
index bc553fb7..262033d7 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java
@@ -24,6 +24,8 @@ public class LitemallGrouponRulesService {
private LitemallGoodsMapper goodsMapper;
public int createRules(LitemallGrouponRules rules) {
+ rules.setAddTime(LocalDateTime.now());
+ rules.setUpdateTime(LocalDateTime.now());
return mapper.insertSelective(rules);
}
@@ -144,6 +146,7 @@ public class LitemallGrouponRulesService {
}
public int updateById(LitemallGrouponRules grouponRules) {
+ grouponRules.setUpdateTime(LocalDateTime.now());
return mapper.updateByPrimaryKeySelective(grouponRules);
}
-}
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java
index 2baaf0aa..48768573 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java
@@ -3,17 +3,20 @@ package org.linlinjava.litemall.db.service;
import com.alibaba.druid.util.StringUtils;
import com.github.pagehelper.PageHelper;
import org.linlinjava.litemall.db.dao.LitemallGrouponMapper;
-import org.linlinjava.litemall.db.domain.LitemallGroupon;
-import org.linlinjava.litemall.db.domain.LitemallGrouponExample;
+import org.linlinjava.litemall.db.domain.*;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
@Service
public class LitemallGrouponService {
@Resource
- LitemallGrouponMapper mapper;
+ private LitemallGrouponMapper mapper;
/**
* 获取用户发起的团购记录
@@ -91,6 +94,7 @@ public class LitemallGrouponService {
}
public int updateById(LitemallGroupon groupon) {
+ groupon.setUpdateTime(LocalDateTime.now());
return mapper.updateByPrimaryKeySelective(groupon);
}
@@ -101,6 +105,8 @@ public class LitemallGrouponService {
* @return
*/
public int createGroupon(LitemallGroupon groupon) {
+ groupon.setAddTime(LocalDateTime.now());
+ groupon.setUpdateTime(LocalDateTime.now());
return mapper.insertSelective(groupon);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallIssueService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallIssueService.java
index b0fe8c53..619a20b7 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallIssueService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallIssueService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -26,6 +27,8 @@ public class LitemallIssueService {
}
public void add(LitemallIssue issue) {
+ issue.setAddTime(LocalDateTime.now());
+ issue.setUpdateTime(LocalDateTime.now());
issueMapper.insertSelective(issue);
}
@@ -59,6 +62,7 @@ public class LitemallIssueService {
}
public int updateById(LitemallIssue issue) {
+ issue.setUpdateTime(LocalDateTime.now());
return issueMapper.updateByPrimaryKeySelective(issue);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallKeywordService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallKeywordService.java
index eb0e0bad..25a43ee2 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallKeywordService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallKeywordService.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -72,6 +73,8 @@ public class LitemallKeywordService {
}
public void add(LitemallKeyword keywords) {
+ keywords.setAddTime(LocalDateTime.now());
+ keywords.setUpdateTime(LocalDateTime.now());
keywordsMapper.insertSelective(keywords);
}
@@ -80,6 +83,7 @@ public class LitemallKeywordService {
}
public int updateById(LitemallKeyword keywords) {
+ keywords.setUpdateTime(LocalDateTime.now());
return keywordsMapper.updateByPrimaryKeySelective(keywords);
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderGoodsService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderGoodsService.java
index 8ffbff58..418510dd 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderGoodsService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderGoodsService.java
@@ -1,11 +1,13 @@
package org.linlinjava.litemall.db.service;
import org.linlinjava.litemall.db.dao.LitemallOrderGoodsMapper;
+import org.linlinjava.litemall.db.domain.LitemallOrder;
import org.linlinjava.litemall.db.domain.LitemallOrderGoods;
import org.linlinjava.litemall.db.domain.LitemallOrderGoodsExample;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
+import java.time.LocalDateTime;
import java.util.List;
@Service
@@ -14,6 +16,8 @@ public class LitemallOrderGoodsService {
private LitemallOrderGoodsMapper orderGoodsMapper;
public int add(LitemallOrderGoods orderGoods) {
+ orderGoods.setAddTime(LocalDateTime.now());
+ orderGoods.setUpdateTime(LocalDateTime.now());
return orderGoodsMapper.insertSelective(orderGoods);
}
@@ -28,4 +32,19 @@ public class LitemallOrderGoodsService {
return orderGoodsMapper.selectByExample(example);
}
+ public LitemallOrderGoods findById(Integer id) {
+ return orderGoodsMapper.selectByPrimaryKey(id);
+ }
+
+ public void updateById(LitemallOrderGoods orderGoods) {
+ orderGoods.setUpdateTime(LocalDateTime.now());
+ orderGoodsMapper.updateByPrimaryKeySelective(orderGoods);
+ }
+
+ public Short getComments(Integer orderId) {
+ LitemallOrderGoodsExample example = new LitemallOrderGoodsExample();
+ example.or().andOrderIdEqualTo(orderId).andDeletedEqualTo(false);
+ long count = orderGoodsMapper.countByExample(example);
+ return (short)count;
+ }
}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderService.java
index 1cf67be7..9964aa81 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderService.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallOrderService.java
@@ -2,6 +2,7 @@ package org.linlinjava.litemall.db.service;
import com.github.pagehelper.PageHelper;
import org.linlinjava.litemall.db.dao.LitemallOrderMapper;
+import org.linlinjava.litemall.db.dao.OrderMapper;
import org.linlinjava.litemall.db.domain.LitemallOrder;
import org.linlinjava.litemall.db.domain.LitemallOrderExample;
import org.linlinjava.litemall.db.util.OrderUtil;
@@ -10,6 +11,7 @@ import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.time.LocalDate;
+import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.List;
@@ -19,20 +21,24 @@ import java.util.Random;
@Service
public class LitemallOrderService {
@Resource
- private LitemallOrderMapper orderMapper;
+ private LitemallOrderMapper litemallOrderMapper;
+ @Resource
+ private OrderMapper orderMapper;
public int add(LitemallOrder order) {
- return orderMapper.insertSelective(order);
+ order.setAddTime(LocalDateTime.now());
+ order.setUpdateTime(LocalDateTime.now());
+ return litemallOrderMapper.insertSelective(order);
}
public int count(Integer userId) {
LitemallOrderExample example = new LitemallOrderExample();
example.or().andUserIdEqualTo(userId).andDeletedEqualTo(false);
- return (int)orderMapper.countByExample(example);
+ return (int)litemallOrderMapper.countByExample(example);
}
public LitemallOrder findById(Integer orderId) {
- return orderMapper.selectByPrimaryKey(orderId);
+ return litemallOrderMapper.selectByPrimaryKey(orderId);
}
private String getRandomNum(Integer num) {
@@ -49,7 +55,7 @@ public class LitemallOrderService {
public int countByOrderSn(Integer userId, String orderSn){
LitemallOrderExample example = new LitemallOrderExample();
example.or().andUserIdEqualTo(userId).andOrderSnEqualTo(orderSn).andDeletedEqualTo(false);
- return (int)orderMapper.countByExample(example);
+ return (int)litemallOrderMapper.countByExample(example);
}
// TODO 这里应该产生一个唯一的订单,但是实际上这里仍然存在两个订单相同的可能性
@@ -72,7 +78,7 @@ public class LitemallOrderService {
criteria.andOrderStatusIn(orderStatus);
}
criteria.andDeletedEqualTo(false);
- return orderMapper.selectByExample(example);
+ return litemallOrderMapper.selectByExample(example);
}
public int countByOrderStatus(Integer userId, List orderStatus) {
@@ -83,7 +89,7 @@ public class LitemallOrderService {
criteria.andOrderStatusIn(orderStatus);
}
criteria.andDeletedEqualTo(false);
- return (int)orderMapper.countByExample(example);
+ return (int)litemallOrderMapper.countByExample(example);
}
public List querySelective(Integer userId, String orderSn, List orderStatusArray, Integer page, Integer size, String sort, String order) {
@@ -106,7 +112,7 @@ public class LitemallOrderService {
}
PageHelper.startPage(page, size);
- return orderMapper.selectByExample(example);
+ return litemallOrderMapper.selectByExample(example);
}
public int countSelective(Integer userId, String orderSn, List orderStatusArray, Integer page, Integer size, String sort, String order) {
@@ -121,45 +127,47 @@ public class LitemallOrderService {
}
criteria.andDeletedEqualTo(false);
- return (int)orderMapper.countByExample(example);
+ return (int)litemallOrderMapper.countByExample(example);
}
- public int updateByIdWithVersion(Integer version, LitemallOrder order) {
- return orderMapper.updateWithVersionByPrimaryKeySelective(version, order);
+ public int updateWithOptimisticLocker(LitemallOrder order) {
+ LocalDateTime preUpdateTime = order.getUpdateTime();
+ order.setUpdateTime(LocalDateTime.now());
+ return orderMapper.updateWithOptimisticLocker(preUpdateTime, order);
}
public void deleteById(Integer id) {
- orderMapper.logicalDeleteByPrimaryKey(id);
+ litemallOrderMapper.logicalDeleteByPrimaryKey(id);
}
public int count() {
LitemallOrderExample example = new LitemallOrderExample();
example.or().andDeletedEqualTo(false);
- return (int)orderMapper.countByExample(example);
+ return (int)litemallOrderMapper.countByExample(example);
}
public List queryUnpaid() {
LitemallOrderExample example = new LitemallOrderExample();
example.or().andOrderStatusEqualTo(OrderUtil.STATUS_CREATE).andDeletedEqualTo(false);
- return orderMapper.selectByExample(example);
+ return litemallOrderMapper.selectByExample(example);
}
public List queryUnconfirm() {
LitemallOrderExample example = new LitemallOrderExample();
example.or().andOrderStatusEqualTo(OrderUtil.STATUS_SHIP).andShipTimeIsNotNull().andDeletedEqualTo(false);
- return orderMapper.selectByExample(example);
+ return litemallOrderMapper.selectByExample(example);
}
public LitemallOrder findBySn(String orderSn) {
LitemallOrderExample example = new LitemallOrderExample();
example.or().andOrderSnEqualTo(orderSn).andDeletedEqualTo(false);
- return orderMapper.selectOneByExample(example);
+ return litemallOrderMapper.selectOneByExample(example);
}
public Map