From d50826587372634a2a486015c7ccacdd3ba0b19d Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Thu, 16 May 2019 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E6=8F=92=E4=BB=B6mybatis-generator-plugin=E5=88=B01.3.2?= =?UTF-8?q?=EF=BC=8C=E6=89=80=E4=BB=A5=E4=BB=A3=E7=A0=81=E9=83=BD=E6=98=AF?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-db/pom.xml | 2 +- .../litemall/db/dao/LitemallAdMapper.java | 7 - .../db/dao/LitemallAddressMapper.java | 7 - .../litemall/db/dao/LitemallAdminMapper.java | 7 - .../litemall/db/dao/LitemallBrandMapper.java | 7 - .../litemall/db/dao/LitemallCartMapper.java | 7 - .../db/dao/LitemallCategoryMapper.java | 7 - .../db/dao/LitemallCollectMapper.java | 7 - .../db/dao/LitemallCommentMapper.java | 7 - .../litemall/db/dao/LitemallCouponMapper.java | 7 - .../db/dao/LitemallCouponUserMapper.java | 7 - .../db/dao/LitemallFeedbackMapper.java | 7 - .../db/dao/LitemallFootprintMapper.java | 7 - .../db/dao/LitemallGoodsAttributeMapper.java | 7 - .../litemall/db/dao/LitemallGoodsMapper.java | 8 - .../db/dao/LitemallGoodsProductMapper.java | 7 - .../dao/LitemallGoodsSpecificationMapper.java | 7 - .../db/dao/LitemallGrouponMapper.java | 7 - .../db/dao/LitemallGrouponRulesMapper.java | 7 - .../litemall/db/dao/LitemallIssueMapper.java | 7 - .../db/dao/LitemallKeywordMapper.java | 7 - .../litemall/db/dao/LitemallLogMapper.java | 7 - .../db/dao/LitemallOrderGoodsMapper.java | 7 - .../litemall/db/dao/LitemallOrderMapper.java | 7 - .../db/dao/LitemallPermissionMapper.java | 7 - .../litemall/db/dao/LitemallRegionMapper.java | 4 - .../litemall/db/dao/LitemallRoleMapper.java | 7 - .../db/dao/LitemallSearchHistoryMapper.java | 7 - .../db/dao/LitemallStorageMapper.java | 7 - .../litemall/db/dao/LitemallSystemMapper.java | 7 - .../litemall/db/dao/LitemallTopicMapper.java | 8 - .../db/dao/LitemallUserFormidMapper.java | 7 - .../litemall/db/dao/LitemallUserMapper.java | 7 - .../litemall/db/domain/LitemallAd.java | 111 ++++++-- .../litemall/db/domain/LitemallAdExample.java | 162 ++++++------ .../litemall/db/domain/LitemallAddress.java | 111 ++++++-- .../db/domain/LitemallAddressExample.java | 174 ++++++------- .../litemall/db/domain/LitemallAdmin.java | 111 ++++++-- .../db/domain/LitemallAdminExample.java | 150 +++++------ .../litemall/db/domain/LitemallBrand.java | 111 ++++++-- .../db/domain/LitemallBrandExample.java | 144 +++++----- .../litemall/db/domain/LitemallCart.java | 111 ++++++-- .../db/domain/LitemallCartExample.java | 174 ++++++------- .../litemall/db/domain/LitemallCategory.java | 111 ++++++-- .../db/domain/LitemallCategoryExample.java | 162 ++++++------ .../litemall/db/domain/LitemallCollect.java | 111 ++++++-- .../db/domain/LitemallCollectExample.java | 132 ++++++---- .../litemall/db/domain/LitemallComment.java | 111 ++++++-- .../db/domain/LitemallCommentExample.java | 156 ++++++----- .../litemall/db/domain/LitemallCoupon.java | 111 ++++++-- .../db/domain/LitemallCouponExample.java | 210 ++++++--------- .../db/domain/LitemallCouponUser.java | 111 ++++++-- .../db/domain/LitemallCouponUserExample.java | 156 ++++++----- .../litemall/db/domain/LitemallFeedback.java | 111 ++++++-- .../db/domain/LitemallFeedbackExample.java | 162 ++++++------ .../litemall/db/domain/LitemallFootprint.java | 111 ++++++-- .../db/domain/LitemallFootprintExample.java | 126 +++++---- .../litemall/db/domain/LitemallGoods.java | 111 ++++++-- .../db/domain/LitemallGoodsAttribute.java | 111 ++++++-- .../domain/LitemallGoodsAttributeExample.java | 132 ++++++---- .../db/domain/LitemallGoodsExample.java | 210 ++++++--------- .../db/domain/LitemallGoodsProduct.java | 111 ++++++-- .../domain/LitemallGoodsProductExample.java | 144 +++++----- .../db/domain/LitemallGoodsSpecification.java | 111 ++++++-- .../LitemallGoodsSpecificationExample.java | 138 +++++----- .../litemall/db/domain/LitemallGroupon.java | 111 ++++++-- .../db/domain/LitemallGrouponExample.java | 156 ++++++----- .../db/domain/LitemallGrouponRules.java | 111 ++++++-- .../domain/LitemallGrouponRulesExample.java | 150 +++++------ .../litemall/db/domain/LitemallIssue.java | 111 ++++++-- .../db/domain/LitemallIssueExample.java | 126 +++++---- .../litemall/db/domain/LitemallKeyword.java | 111 ++++++-- .../db/domain/LitemallKeywordExample.java | 144 +++++----- .../litemall/db/domain/LitemallLog.java | 111 ++++++-- .../db/domain/LitemallLogExample.java | 156 ++++++----- .../litemall/db/domain/LitemallOrder.java | 111 ++++++-- .../db/domain/LitemallOrderExample.java | 246 ++++++------------ .../db/domain/LitemallOrderGoods.java | 111 ++++++-- .../db/domain/LitemallOrderGoodsExample.java | 174 ++++++------- .../db/domain/LitemallPermission.java | 111 ++++++-- .../db/domain/LitemallPermissionExample.java | 126 +++++---- .../litemall/db/domain/LitemallRegion.java | 26 +- .../db/domain/LitemallRegionExample.java | 115 +++++--- .../litemall/db/domain/LitemallRole.java | 111 ++++++-- .../db/domain/LitemallRoleExample.java | 132 ++++++---- .../db/domain/LitemallSearchHistory.java | 111 ++++++-- .../domain/LitemallSearchHistoryExample.java | 132 ++++++---- .../litemall/db/domain/LitemallStorage.java | 111 ++++++-- .../db/domain/LitemallStorageExample.java | 144 +++++----- .../litemall/db/domain/LitemallSystem.java | 111 ++++++-- .../db/domain/LitemallSystemExample.java | 126 +++++---- .../litemall/db/domain/LitemallTopic.java | 111 ++++++-- .../db/domain/LitemallTopicExample.java | 156 ++++++----- .../litemall/db/domain/LitemallUser.java | 111 ++++++-- .../db/domain/LitemallUserExample.java | 192 ++++++-------- .../db/domain/LitemallUserFormid.java | 111 ++++++-- .../db/domain/LitemallUserFormidExample.java | 144 +++++----- .../litemall/db/dao/LitemallAdMapper.xml | 26 +- .../litemall/db/dao/LitemallAddressMapper.xml | 26 +- .../litemall/db/dao/LitemallAdminMapper.xml | 26 +- .../litemall/db/dao/LitemallBrandMapper.xml | 26 +- .../litemall/db/dao/LitemallCartMapper.xml | 26 +- .../db/dao/LitemallCategoryMapper.xml | 26 +- .../litemall/db/dao/LitemallCollectMapper.xml | 23 +- .../litemall/db/dao/LitemallCommentMapper.xml | 26 +- .../litemall/db/dao/LitemallCouponMapper.xml | 29 +-- .../db/dao/LitemallCouponUserMapper.xml | 26 +- .../db/dao/LitemallFeedbackMapper.xml | 26 +- .../db/dao/LitemallFootprintMapper.xml | 23 +- .../db/dao/LitemallGoodsAttributeMapper.xml | 23 +- .../litemall/db/dao/LitemallGoodsMapper.xml | 36 +-- .../db/dao/LitemallGoodsProductMapper.xml | 26 +- .../dao/LitemallGoodsSpecificationMapper.xml | 23 +- .../litemall/db/dao/LitemallGrouponMapper.xml | 26 +- .../db/dao/LitemallGrouponRulesMapper.xml | 26 +- .../litemall/db/dao/LitemallIssueMapper.xml | 23 +- .../litemall/db/dao/LitemallKeywordMapper.xml | 23 +- .../litemall/db/dao/LitemallLogMapper.xml | 26 +- .../db/dao/LitemallOrderGoodsMapper.xml | 26 +- .../litemall/db/dao/LitemallOrderMapper.xml | 32 +-- .../db/dao/LitemallPermissionMapper.xml | 23 +- .../litemall/db/dao/LitemallRegionMapper.xml | 16 +- .../litemall/db/dao/LitemallRoleMapper.xml | 23 +- .../db/dao/LitemallSearchHistoryMapper.xml | 23 +- .../litemall/db/dao/LitemallStorageMapper.xml | 23 +- .../litemall/db/dao/LitemallSystemMapper.xml | 23 +- .../litemall/db/dao/LitemallTopicMapper.xml | 33 +-- .../db/dao/LitemallUserFormidMapper.xml | 26 +- .../litemall/db/dao/LitemallUserMapper.xml | 29 +-- 129 files changed, 5311 insertions(+), 4150 deletions(-) diff --git a/litemall-db/pom.xml b/litemall-db/pom.xml index 40f00e77..eaf34e76 100644 --- a/litemall-db/pom.xml +++ b/litemall-db/pom.xml @@ -62,7 +62,7 @@ com.itfsw mybatis-generator-plugin - 1.2.12 + 1.3.2 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 184f60b3..6822dddf 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 @@ -51,7 +51,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAd selectOneByExample(LitemallAdExample example); @@ -60,7 +59,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAd selectOneByExampleSelective(@Param("example") LitemallAdExample example, @Param("selective") LitemallAd.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallAdExample example, @Param("selective") LitemallAd.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAd selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallAd.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAd selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallAdExample example); @@ -153,7 +147,6 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @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/LitemallAddressMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java index 0c89add9..98632aab 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 @@ -51,7 +51,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAddress selectOneByExample(LitemallAddressExample example); @@ -60,7 +59,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAddress selectOneByExampleSelective(@Param("example") LitemallAddressExample example, @Param("selective") LitemallAddress.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallAddressExample example, @Param("selective") LitemallAddress.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAddress selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallAddress.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAddress selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallAddressExample example); @@ -153,7 +147,6 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @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/LitemallAdminMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java index 296be640..ecd5d678 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 @@ -51,7 +51,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAdmin selectOneByExample(LitemallAdminExample example); @@ -60,7 +59,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAdmin selectOneByExampleSelective(@Param("example") LitemallAdminExample example, @Param("selective") LitemallAdmin.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallAdminExample example, @Param("selective") LitemallAdmin.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAdmin selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallAdmin.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallAdmin selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallAdminExample example); @@ -153,7 +147,6 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @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/LitemallBrandMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java index b21ddd4f..a0ebd46a 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 @@ -51,7 +51,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallBrand selectOneByExample(LitemallBrandExample example); @@ -60,7 +59,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallBrand selectOneByExampleSelective(@Param("example") LitemallBrandExample example, @Param("selective") LitemallBrand.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallBrandExample example, @Param("selective") LitemallBrand.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallBrand selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallBrand.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallBrand selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallBrandExample example); @@ -153,7 +147,6 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @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/LitemallCartMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java index 451d20fa..c38fa48f 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 @@ -51,7 +51,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCart selectOneByExample(LitemallCartExample example); @@ -60,7 +59,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCart selectOneByExampleSelective(@Param("example") LitemallCartExample example, @Param("selective") LitemallCart.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallCartExample example, @Param("selective") LitemallCart.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCart selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCart.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCart selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallCartExample example); @@ -153,7 +147,6 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @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/LitemallCategoryMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java index 0c2c15f6..e0bac538 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 @@ -51,7 +51,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCategory selectOneByExample(LitemallCategoryExample example); @@ -60,7 +59,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCategory selectOneByExampleSelective(@Param("example") LitemallCategoryExample example, @Param("selective") LitemallCategory.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallCategoryExample example, @Param("selective") LitemallCategory.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCategory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCategory.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCategory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallCategoryExample example); @@ -153,7 +147,6 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @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/LitemallCollectMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java index 1056e055..aeff5a13 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 @@ -51,7 +51,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCollect selectOneByExample(LitemallCollectExample example); @@ -60,7 +59,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCollect selectOneByExampleSelective(@Param("example") LitemallCollectExample example, @Param("selective") LitemallCollect.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallCollectExample example, @Param("selective") LitemallCollect.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCollect selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCollect.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCollect selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallCollectExample example); @@ -153,7 +147,6 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @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/LitemallCommentMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java index 3bdafcd1..37d9bc84 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 @@ -51,7 +51,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallComment selectOneByExample(LitemallCommentExample example); @@ -60,7 +59,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallComment selectOneByExampleSelective(@Param("example") LitemallCommentExample example, @Param("selective") LitemallComment.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallCommentExample example, @Param("selective") LitemallComment.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallComment selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallComment.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallComment selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallCommentExample example); @@ -153,7 +147,6 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @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/LitemallCouponMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCouponMapper.java index 83785c6f..789a57a4 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCouponMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCouponMapper.java @@ -51,7 +51,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCoupon selectOneByExample(LitemallCouponExample example); @@ -60,7 +59,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCoupon selectOneByExampleSelective(@Param("example") LitemallCouponExample example, @Param("selective") LitemallCoupon.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallCouponExample example, @Param("selective") LitemallCoupon.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCoupon.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallCouponExample example); @@ -153,7 +147,6 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @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/LitemallCouponUserMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCouponUserMapper.java index 0fbd64d6..4d11edf0 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCouponUserMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCouponUserMapper.java @@ -51,7 +51,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCouponUser selectOneByExample(LitemallCouponUserExample example); @@ -60,7 +59,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCouponUser selectOneByExampleSelective(@Param("example") LitemallCouponUserExample example, @Param("selective") LitemallCouponUser.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallCouponUserExample example, @Param("selective") LitemallCouponUser.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCouponUser selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCouponUser.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallCouponUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallCouponUserExample example); @@ -153,7 +147,6 @@ public interface LitemallCouponUserMapper { * This method corresponds to the database table litemall_coupon_user * * @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/LitemallFeedbackMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFeedbackMapper.java index 1599293d..2ade3ecb 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 @@ -51,7 +51,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFeedback selectOneByExample(LitemallFeedbackExample example); @@ -60,7 +59,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFeedback selectOneByExampleSelective(@Param("example") LitemallFeedbackExample example, @Param("selective") LitemallFeedback.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallFeedbackExample example, @Param("selective") LitemallFeedback.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFeedback selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallFeedback.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFeedback selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallFeedbackExample example); @@ -153,7 +147,6 @@ public interface LitemallFeedbackMapper { * This method corresponds to the database table litemall_feedback * * @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/LitemallFootprintMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java index 98464094..71e124ab 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 @@ -51,7 +51,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFootprint selectOneByExample(LitemallFootprintExample example); @@ -60,7 +59,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFootprint selectOneByExampleSelective(@Param("example") LitemallFootprintExample example, @Param("selective") LitemallFootprint.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallFootprintExample example, @Param("selective") LitemallFootprint.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFootprint selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallFootprint.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallFootprint selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallFootprintExample example); @@ -153,7 +147,6 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @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/LitemallGoodsAttributeMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java index a6b5d2ed..09ad4def 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 @@ -51,7 +51,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsAttribute selectOneByExample(LitemallGoodsAttributeExample example); @@ -60,7 +59,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsAttribute selectOneByExampleSelective(@Param("example") LitemallGoodsAttributeExample example, @Param("selective") LitemallGoodsAttribute.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallGoodsAttributeExample example, @Param("selective") LitemallGoodsAttribute.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsAttribute selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoodsAttribute.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsAttribute selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallGoodsAttributeExample example); @@ -153,7 +147,6 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @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/LitemallGoodsMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java index 3e4194d5..fc6f12fa 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 @@ -51,7 +51,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoods selectOneByExample(LitemallGoodsExample example); @@ -60,7 +59,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoods selectOneByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoods selectOneByExampleWithBLOBs(LitemallGoodsExample example); @@ -78,7 +75,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoods.Column ... selective); @@ -120,7 +115,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -177,7 +171,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallGoodsExample example); @@ -186,7 +179,6 @@ public interface LitemallGoodsMapper { * This method corresponds to the database table litemall_goods * * @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/LitemallGoodsProductMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsProductMapper.java index e05616d8..806519f5 100644 --- 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 @@ -51,7 +51,6 @@ public interface LitemallGoodsProductMapper { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsProduct selectOneByExample(LitemallGoodsProductExample example); @@ -60,7 +59,6 @@ public interface LitemallGoodsProductMapper { * 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); @@ -69,7 +67,6 @@ public interface LitemallGoodsProductMapper { * 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); @@ -86,7 +83,6 @@ public interface LitemallGoodsProductMapper { * 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); @@ -103,7 +99,6 @@ public interface LitemallGoodsProductMapper { * 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); @@ -144,7 +139,6 @@ public interface LitemallGoodsProductMapper { * 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); @@ -153,7 +147,6 @@ public interface LitemallGoodsProductMapper { * 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 fc459271..493cb1b7 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 @@ -51,7 +51,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsSpecification selectOneByExample(LitemallGoodsSpecificationExample example); @@ -60,7 +59,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsSpecification selectOneByExampleSelective(@Param("example") LitemallGoodsSpecificationExample example, @Param("selective") LitemallGoodsSpecification.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallGoodsSpecificationExample example, @Param("selective") LitemallGoodsSpecification.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsSpecification selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoodsSpecification.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGoodsSpecification selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallGoodsSpecificationExample example); @@ -153,7 +147,6 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @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/LitemallGrouponMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java index 51c1bd2e..8075a985 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 @@ -51,7 +51,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGroupon selectOneByExample(LitemallGrouponExample example); @@ -60,7 +59,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGroupon selectOneByExampleSelective(@Param("example") LitemallGrouponExample example, @Param("selective") LitemallGroupon.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallGrouponExample example, @Param("selective") LitemallGroupon.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGroupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGroupon.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGroupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallGrouponExample example); @@ -153,7 +147,6 @@ public interface LitemallGrouponMapper { * This method corresponds to the database table litemall_groupon * * @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/LitemallGrouponRulesMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java index 3fcb2928..1582c044 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 @@ -51,7 +51,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGrouponRules selectOneByExample(LitemallGrouponRulesExample example); @@ -60,7 +59,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGrouponRules selectOneByExampleSelective(@Param("example") LitemallGrouponRulesExample example, @Param("selective") LitemallGrouponRules.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallGrouponRulesExample example, @Param("selective") LitemallGrouponRules.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGrouponRules selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGrouponRules.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallGrouponRules selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallGrouponRulesExample example); @@ -153,7 +147,6 @@ public interface LitemallGrouponRulesMapper { * This method corresponds to the database table litemall_groupon_rules * * @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/LitemallIssueMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java index 4052fc3e..7e4b5034 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 @@ -51,7 +51,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallIssue selectOneByExample(LitemallIssueExample example); @@ -60,7 +59,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallIssue selectOneByExampleSelective(@Param("example") LitemallIssueExample example, @Param("selective") LitemallIssue.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallIssueExample example, @Param("selective") LitemallIssue.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallIssue selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallIssue.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallIssue selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallIssueExample example); @@ -153,7 +147,6 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @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/LitemallKeywordMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java index bb7e8dd6..454d51c1 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 @@ -51,7 +51,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallKeyword selectOneByExample(LitemallKeywordExample example); @@ -60,7 +59,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallKeyword selectOneByExampleSelective(@Param("example") LitemallKeywordExample example, @Param("selective") LitemallKeyword.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallKeywordExample example, @Param("selective") LitemallKeyword.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallKeyword selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallKeyword.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallKeyword selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallKeywordExample example); @@ -153,7 +147,6 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @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/LitemallLogMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallLogMapper.java index 30da82ea..d7e47fed 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallLogMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallLogMapper.java @@ -51,7 +51,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallLog selectOneByExample(LitemallLogExample example); @@ -60,7 +59,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallLog selectOneByExampleSelective(@Param("example") LitemallLogExample example, @Param("selective") LitemallLog.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallLogExample example, @Param("selective") LitemallLog.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallLog selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallLog.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallLog selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallLogExample example); @@ -153,7 +147,6 @@ public interface LitemallLogMapper { * This method corresponds to the database table litemall_log * * @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/LitemallOrderGoodsMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java index 515549b4..287aee64 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 @@ -51,7 +51,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrderGoods selectOneByExample(LitemallOrderGoodsExample example); @@ -60,7 +59,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrderGoods selectOneByExampleSelective(@Param("example") LitemallOrderGoodsExample example, @Param("selective") LitemallOrderGoods.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallOrderGoodsExample example, @Param("selective") LitemallOrderGoods.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrderGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallOrderGoods.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrderGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallOrderGoodsExample example); @@ -153,7 +147,6 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @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/LitemallOrderMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java index 02a65ed2..d964bdf5 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 @@ -51,7 +51,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrder selectOneByExample(LitemallOrderExample example); @@ -60,7 +59,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrder selectOneByExampleSelective(@Param("example") LitemallOrderExample example, @Param("selective") LitemallOrder.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallOrderExample example, @Param("selective") LitemallOrder.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrder selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallOrder.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallOrder selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallOrderExample example); @@ -153,7 +147,6 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @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/LitemallPermissionMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallPermissionMapper.java index 5e63f128..52c7d916 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallPermissionMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallPermissionMapper.java @@ -51,7 +51,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallPermission selectOneByExample(LitemallPermissionExample example); @@ -60,7 +59,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallPermission selectOneByExampleSelective(@Param("example") LitemallPermissionExample example, @Param("selective") LitemallPermission.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallPermissionExample example, @Param("selective") LitemallPermission.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallPermission selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallPermission.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallPermission selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallPermissionExample example); @@ -153,7 +147,6 @@ public interface LitemallPermissionMapper { * This method corresponds to the database table litemall_permission * * @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/LitemallRegionMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionMapper.java index 177d56e0..e1708736 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionMapper.java @@ -51,7 +51,6 @@ public interface LitemallRegionMapper { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRegion selectOneByExample(LitemallRegionExample example); @@ -60,7 +59,6 @@ public interface LitemallRegionMapper { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRegion selectOneByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallRegionMapper { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallRegionMapper { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRegion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRegion.Column ... selective); diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRoleMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRoleMapper.java index 556eb208..5ca24d3f 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRoleMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRoleMapper.java @@ -51,7 +51,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRole selectOneByExample(LitemallRoleExample example); @@ -60,7 +59,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRole selectOneByExampleSelective(@Param("example") LitemallRoleExample example, @Param("selective") LitemallRole.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallRoleExample example, @Param("selective") LitemallRole.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRole selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRole.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallRole selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallRoleExample example); @@ -153,7 +147,6 @@ public interface LitemallRoleMapper { * This method corresponds to the database table litemall_role * * @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 b4413d71..72f66a58 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 @@ -51,7 +51,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSearchHistory selectOneByExample(LitemallSearchHistoryExample example); @@ -60,7 +59,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSearchHistory selectOneByExampleSelective(@Param("example") LitemallSearchHistoryExample example, @Param("selective") LitemallSearchHistory.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallSearchHistoryExample example, @Param("selective") LitemallSearchHistory.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSearchHistory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallSearchHistory.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSearchHistory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallSearchHistoryExample example); @@ -153,7 +147,6 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @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/LitemallStorageMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java index 668be6f2..87dc7689 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 @@ -51,7 +51,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallStorage selectOneByExample(LitemallStorageExample example); @@ -60,7 +59,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallStorage selectOneByExampleSelective(@Param("example") LitemallStorageExample example, @Param("selective") LitemallStorage.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallStorageExample example, @Param("selective") LitemallStorage.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallStorage selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallStorage.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallStorage selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallStorageExample example); @@ -153,7 +147,6 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @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/LitemallSystemMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSystemMapper.java index 2ac31cd8..d0af6f58 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 @@ -51,7 +51,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSystem selectOneByExample(LitemallSystemExample example); @@ -60,7 +59,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSystem selectOneByExampleSelective(@Param("example") LitemallSystemExample example, @Param("selective") LitemallSystem.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallSystemExample example, @Param("selective") LitemallSystem.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSystem selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallSystem.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallSystem selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallSystemExample example); @@ -153,7 +147,6 @@ public interface LitemallSystemMapper { * This method corresponds to the database table litemall_system * * @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/LitemallTopicMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java index 79b8def2..5e706d25 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 @@ -51,7 +51,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallTopic selectOneByExample(LitemallTopicExample example); @@ -60,7 +59,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallTopic selectOneByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallTopic selectOneByExampleWithBLOBs(LitemallTopicExample example); @@ -78,7 +75,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallTopic selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallTopic.Column ... selective); @@ -120,7 +115,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallTopic selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -177,7 +171,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallTopicExample example); @@ -186,7 +179,6 @@ public interface LitemallTopicMapper { * This method corresponds to the database table litemall_topic * * @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/LitemallUserFormidMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserFormidMapper.java index cbf72a82..1bd94af8 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 @@ -51,7 +51,6 @@ public interface LitemallUserFormidMapper { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUserFormid selectOneByExample(LitemallUserFormidExample example); @@ -60,7 +59,6 @@ public interface LitemallUserFormidMapper { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUserFormid selectOneByExampleSelective(@Param("example") LitemallUserFormidExample example, @Param("selective") LitemallUserFormid.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallUserFormidMapper { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallUserFormidExample example, @Param("selective") LitemallUserFormid.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallUserFormidMapper { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUserFormid selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUserFormid.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallUserFormidMapper { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUserFormid selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallUserFormidMapper { * 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); @@ -153,7 +147,6 @@ public interface LitemallUserFormidMapper { * 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 9b311679..35d014ba 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 @@ -51,7 +51,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUser selectOneByExample(LitemallUserExample example); @@ -60,7 +59,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUser selectOneByExampleSelective(@Param("example") LitemallUserExample example, @Param("selective") LitemallUser.Column ... selective); @@ -69,7 +67,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ List selectByExampleSelective(@Param("example") LitemallUserExample example, @Param("selective") LitemallUser.Column ... selective); @@ -86,7 +83,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUser selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUser.Column ... selective); @@ -103,7 +99,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ LitemallUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); @@ -144,7 +139,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ int logicalDeleteByExample(@Param("example") LitemallUserExample example); @@ -153,7 +147,6 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @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/domain/LitemallAd.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallAd.java index b527d53b..374bc794 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 @@ -10,18 +10,16 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -395,6 +393,16 @@ public class LitemallAd { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_ad.deleted @@ -431,6 +439,8 @@ public class LitemallAd { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", link=").append(link); @@ -505,14 +515,71 @@ public class LitemallAd { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_ad + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_ad + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_ad + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -520,7 +587,6 @@ public class LitemallAd { * This enum corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -541,7 +607,6 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -550,7 +615,6 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -559,7 +623,6 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -568,7 +631,6 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -577,7 +639,6 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -586,7 +647,6 @@ public class LitemallAd { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -595,7 +655,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -606,7 +665,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -617,7 +675,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -628,7 +685,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -639,7 +695,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -653,7 +708,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -664,7 +718,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -675,7 +728,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -690,7 +742,6 @@ public class LitemallAd { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -699,5 +750,15 @@ public class LitemallAd { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 9859c127..97172404 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 @@ -116,7 +116,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAdExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAdExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallAdExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public LitemallAdExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public LitemallAdExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_ad @@ -258,7 +283,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLinkEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("link = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLinkNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("link <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLinkGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("link > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLinkGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("link >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLinkLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("link < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLinkLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("link <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("url = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("url <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("url > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("url >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("url < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("url <= ").append(column.getEscapedColumnName()).toString()); @@ -816,7 +817,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPositionEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`position` = ").append(column.getEscapedColumnName()).toString()); @@ -833,7 +833,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPositionNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`position` <> ").append(column.getEscapedColumnName()).toString()); @@ -850,7 +849,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPositionGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`position` > ").append(column.getEscapedColumnName()).toString()); @@ -867,7 +865,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPositionGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`position` >= ").append(column.getEscapedColumnName()).toString()); @@ -884,7 +881,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPositionLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`position` < ").append(column.getEscapedColumnName()).toString()); @@ -901,7 +897,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPositionLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("`position` <= ").append(column.getEscapedColumnName()).toString()); @@ -948,7 +943,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("content = ").append(column.getEscapedColumnName()).toString()); @@ -965,7 +959,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("content <> ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +975,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("content > ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +991,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("content >= ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1007,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("content < ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1023,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("content <= ").append(column.getEscapedColumnName()).toString()); @@ -1090,7 +1079,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("start_time = ").append(column.getEscapedColumnName()).toString()); @@ -1107,7 +1095,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("start_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1124,7 +1111,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("start_time > ").append(column.getEscapedColumnName()).toString()); @@ -1141,7 +1127,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("start_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1158,7 +1143,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("start_time < ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1159,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("start_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1222,7 +1205,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("end_time = ").append(column.getEscapedColumnName()).toString()); @@ -1239,7 +1221,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("end_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1256,7 +1237,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("end_time > ").append(column.getEscapedColumnName()).toString()); @@ -1273,7 +1253,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("end_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1290,7 +1269,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("end_time < ").append(column.getEscapedColumnName()).toString()); @@ -1307,7 +1285,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("end_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1354,7 +1331,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("enabled = ").append(column.getEscapedColumnName()).toString()); @@ -1371,7 +1347,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("enabled <> ").append(column.getEscapedColumnName()).toString()); @@ -1388,7 +1363,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("enabled > ").append(column.getEscapedColumnName()).toString()); @@ -1405,7 +1379,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("enabled >= ").append(column.getEscapedColumnName()).toString()); @@ -1422,7 +1395,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("enabled < ").append(column.getEscapedColumnName()).toString()); @@ -1439,7 +1411,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("enabled <= ").append(column.getEscapedColumnName()).toString()); @@ -1486,7 +1457,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1503,7 +1473,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1520,7 +1489,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1537,7 +1505,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1554,7 +1521,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1571,7 +1537,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1618,7 +1583,6 @@ public class LitemallAdExample { * 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()); @@ -1635,7 +1599,6 @@ public class LitemallAdExample { * 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()); @@ -1652,7 +1615,6 @@ public class LitemallAdExample { * 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()); @@ -1669,7 +1631,6 @@ public class LitemallAdExample { * 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()); @@ -1686,7 +1647,6 @@ public class LitemallAdExample { * 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()); @@ -1703,7 +1663,6 @@ public class LitemallAdExample { * 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()); @@ -1750,7 +1709,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1767,7 +1725,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1784,7 +1741,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1801,7 +1757,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1818,7 +1773,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1835,7 +1789,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallAd.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1875,7 +1828,6 @@ public class LitemallAdExample { * This field corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallAdExample example; @@ -1884,7 +1836,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallAdExample example) { super(); @@ -1896,7 +1847,6 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAdExample example() { return this.example; @@ -1907,8 +1857,8 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1921,26 +1871,46 @@ public class LitemallAdExample { * This method corresponds to the database table litemall_ad * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallAd.IS_DELETED) : andDeletedNotEqualTo(LitemallAd.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_ad + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAd.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallAd.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2037,4 +2007,24 @@ public class LitemallAdExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallAdExample example); + } } \ No newline at end of file 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 dd1b080f..abdc4929 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 @@ -10,18 +10,16 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -461,6 +459,16 @@ public class LitemallAddress { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.deleted @@ -497,6 +505,8 @@ public class LitemallAddress { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", userId=").append(userId); @@ -577,14 +587,71 @@ public class LitemallAddress { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_address + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_address + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_address + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -592,7 +659,6 @@ public class LitemallAddress { * This enum corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -615,7 +681,6 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -624,7 +689,6 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -633,7 +697,6 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -642,7 +705,6 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -651,7 +713,6 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -660,7 +721,6 @@ public class LitemallAddress { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -669,7 +729,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -680,7 +739,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -691,7 +749,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -702,7 +759,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -713,7 +769,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -727,7 +782,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -738,7 +792,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -749,7 +802,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -764,7 +816,6 @@ public class LitemallAddress { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -773,5 +824,15 @@ public class LitemallAddress { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 b9bf44d9..5469e008 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 @@ -116,7 +116,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAddressExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAddressExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallAddressExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public LitemallAddressExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public LitemallAddressExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_address @@ -258,7 +283,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -664,7 +671,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProvinceEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("province = ").append(column.getEscapedColumnName()).toString()); @@ -681,7 +687,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProvinceNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("province <> ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +703,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProvinceGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("province > ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +719,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProvinceGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("province >= ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +735,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProvinceLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("province < ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +751,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProvinceLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("province <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCityEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("city = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCityNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("city <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCityGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("city > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCityGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("city >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCityLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("city < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCityLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("city <= ").append(column.getEscapedColumnName()).toString()); @@ -948,7 +943,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCountyEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("county = ").append(column.getEscapedColumnName()).toString()); @@ -965,7 +959,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCountyNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("county <> ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +975,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCountyGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("county > ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +991,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCountyGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("county >= ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1007,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCountyLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("county < ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1023,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCountyLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("county <= ").append(column.getEscapedColumnName()).toString()); @@ -1090,7 +1079,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressDetailEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("address_detail = ").append(column.getEscapedColumnName()).toString()); @@ -1107,7 +1095,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressDetailNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("address_detail <> ").append(column.getEscapedColumnName()).toString()); @@ -1124,7 +1111,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressDetailGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("address_detail > ").append(column.getEscapedColumnName()).toString()); @@ -1141,7 +1127,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressDetailGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("address_detail >= ").append(column.getEscapedColumnName()).toString()); @@ -1158,7 +1143,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressDetailLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("address_detail < ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1159,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressDetailLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("address_detail <= ").append(column.getEscapedColumnName()).toString()); @@ -1232,7 +1215,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAreaCodeEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("area_code = ").append(column.getEscapedColumnName()).toString()); @@ -1249,7 +1231,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAreaCodeNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("area_code <> ").append(column.getEscapedColumnName()).toString()); @@ -1266,7 +1247,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAreaCodeGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("area_code > ").append(column.getEscapedColumnName()).toString()); @@ -1283,7 +1263,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAreaCodeGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("area_code >= ").append(column.getEscapedColumnName()).toString()); @@ -1300,7 +1279,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAreaCodeLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("area_code < ").append(column.getEscapedColumnName()).toString()); @@ -1317,7 +1295,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAreaCodeLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("area_code <= ").append(column.getEscapedColumnName()).toString()); @@ -1374,7 +1351,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPostalCodeEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("postal_code = ").append(column.getEscapedColumnName()).toString()); @@ -1391,7 +1367,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPostalCodeNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("postal_code <> ").append(column.getEscapedColumnName()).toString()); @@ -1408,7 +1383,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPostalCodeGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("postal_code > ").append(column.getEscapedColumnName()).toString()); @@ -1425,7 +1399,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPostalCodeGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("postal_code >= ").append(column.getEscapedColumnName()).toString()); @@ -1442,7 +1415,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPostalCodeLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("postal_code < ").append(column.getEscapedColumnName()).toString()); @@ -1459,7 +1431,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPostalCodeLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("postal_code <= ").append(column.getEscapedColumnName()).toString()); @@ -1516,7 +1487,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTelEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("tel = ").append(column.getEscapedColumnName()).toString()); @@ -1533,7 +1503,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTelNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("tel <> ").append(column.getEscapedColumnName()).toString()); @@ -1550,7 +1519,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTelGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("tel > ").append(column.getEscapedColumnName()).toString()); @@ -1567,7 +1535,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTelGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("tel >= ").append(column.getEscapedColumnName()).toString()); @@ -1584,7 +1551,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTelLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("tel < ").append(column.getEscapedColumnName()).toString()); @@ -1601,7 +1567,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTelLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("tel <= ").append(column.getEscapedColumnName()).toString()); @@ -1658,7 +1623,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("is_default = ").append(column.getEscapedColumnName()).toString()); @@ -1675,7 +1639,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("is_default <> ").append(column.getEscapedColumnName()).toString()); @@ -1692,7 +1655,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("is_default > ").append(column.getEscapedColumnName()).toString()); @@ -1709,7 +1671,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("is_default >= ").append(column.getEscapedColumnName()).toString()); @@ -1726,7 +1687,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("is_default < ").append(column.getEscapedColumnName()).toString()); @@ -1743,7 +1703,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("is_default <= ").append(column.getEscapedColumnName()).toString()); @@ -1790,7 +1749,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1807,7 +1765,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1824,7 +1781,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1841,7 +1797,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1858,7 +1813,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1875,7 +1829,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1922,7 +1875,6 @@ public class LitemallAddressExample { * 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()); @@ -1939,7 +1891,6 @@ public class LitemallAddressExample { * 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()); @@ -1956,7 +1907,6 @@ public class LitemallAddressExample { * 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()); @@ -1973,7 +1923,6 @@ public class LitemallAddressExample { * 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()); @@ -1990,7 +1939,6 @@ public class LitemallAddressExample { * 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()); @@ -2007,7 +1955,6 @@ public class LitemallAddressExample { * 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()); @@ -2054,7 +2001,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -2071,7 +2017,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -2088,7 +2033,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -2105,7 +2049,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -2122,7 +2065,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -2139,7 +2081,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallAddress.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -2179,7 +2120,6 @@ public class LitemallAddressExample { * This field corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallAddressExample example; @@ -2188,7 +2128,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallAddressExample example) { super(); @@ -2200,7 +2139,6 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAddressExample example() { return this.example; @@ -2211,8 +2149,8 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -2225,26 +2163,46 @@ public class LitemallAddressExample { * This method corresponds to the database table litemall_address * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallAddress.IS_DELETED) : andDeletedNotEqualTo(LitemallAddress.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_address + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAddress.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallAddress.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2341,4 +2299,24 @@ public class LitemallAddressExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallAddressExample example); + } } \ No newline at end of file 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 4d311835..6b05350c 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 @@ -10,18 +10,16 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -305,6 +303,16 @@ public class LitemallAdmin { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_admin.deleted @@ -365,6 +373,8 @@ public class LitemallAdmin { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", username=").append(username); sb.append(", password=").append(password); @@ -433,14 +443,71 @@ public class LitemallAdmin { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_admin + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_admin + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_admin + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -448,7 +515,6 @@ public class LitemallAdmin { * This enum corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -467,7 +533,6 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -476,7 +541,6 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -485,7 +549,6 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -494,7 +557,6 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -503,7 +565,6 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -512,7 +573,6 @@ public class LitemallAdmin { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -521,7 +581,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -532,7 +591,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -543,7 +601,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -554,7 +611,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -565,7 +621,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -579,7 +634,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -590,7 +644,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -601,7 +654,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -616,7 +668,6 @@ public class LitemallAdmin { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -625,5 +676,15 @@ public class LitemallAdmin { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 1647390d..8e769e3f 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 @@ -116,7 +116,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAdminExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAdminExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallAdminExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public LitemallAdminExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public LitemallAdminExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_admin @@ -292,7 +317,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +333,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +349,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +365,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -360,7 +381,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -377,7 +397,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +443,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("username = ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +459,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("username <> ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +475,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("username > ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +491,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("username >= ").append(column.getEscapedColumnName()).toString()); @@ -492,7 +507,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("username < ").append(column.getEscapedColumnName()).toString()); @@ -509,7 +523,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("username <= ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +579,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("`password` = ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +595,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("`password` <> ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +611,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("`password` > ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +627,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("`password` >= ").append(column.getEscapedColumnName()).toString()); @@ -634,7 +643,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("`password` < ").append(column.getEscapedColumnName()).toString()); @@ -651,7 +659,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("`password` <= ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +715,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_ip = ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +731,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_ip <> ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +747,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_ip > ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +763,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_ip >= ").append(column.getEscapedColumnName()).toString()); @@ -776,7 +779,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_ip < ").append(column.getEscapedColumnName()).toString()); @@ -793,7 +795,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_ip <= ").append(column.getEscapedColumnName()).toString()); @@ -850,7 +851,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_time = ").append(column.getEscapedColumnName()).toString()); @@ -867,7 +867,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_time <> ").append(column.getEscapedColumnName()).toString()); @@ -884,7 +883,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_time > ").append(column.getEscapedColumnName()).toString()); @@ -901,7 +899,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_time >= ").append(column.getEscapedColumnName()).toString()); @@ -918,7 +915,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_time < ").append(column.getEscapedColumnName()).toString()); @@ -935,7 +931,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("last_login_time <= ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +977,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("avatar = ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +993,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("avatar <> ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1009,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("avatar > ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1025,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("avatar >= ").append(column.getEscapedColumnName()).toString()); @@ -1050,7 +1041,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("avatar < ").append(column.getEscapedColumnName()).toString()); @@ -1067,7 +1057,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("avatar <= ").append(column.getEscapedColumnName()).toString()); @@ -1124,7 +1113,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1141,7 +1129,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1158,7 +1145,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1161,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1192,7 +1177,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1209,7 +1193,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1256,7 +1239,6 @@ public class LitemallAdminExample { * 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()); @@ -1273,7 +1255,6 @@ public class LitemallAdminExample { * 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()); @@ -1290,7 +1271,6 @@ public class LitemallAdminExample { * 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()); @@ -1307,7 +1287,6 @@ public class LitemallAdminExample { * 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()); @@ -1324,7 +1303,6 @@ public class LitemallAdminExample { * 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()); @@ -1341,7 +1319,6 @@ public class LitemallAdminExample { * 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()); @@ -1388,7 +1365,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1405,7 +1381,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1422,7 +1397,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1439,7 +1413,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1456,7 +1429,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1473,7 +1445,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1520,7 +1491,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdsEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("role_ids = ").append(column.getEscapedColumnName()).toString()); @@ -1537,7 +1507,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdsNotEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("role_ids <> ").append(column.getEscapedColumnName()).toString()); @@ -1554,7 +1523,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdsGreaterThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("role_ids > ").append(column.getEscapedColumnName()).toString()); @@ -1571,7 +1539,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdsGreaterThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("role_ids >= ").append(column.getEscapedColumnName()).toString()); @@ -1588,7 +1555,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdsLessThanColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("role_ids < ").append(column.getEscapedColumnName()).toString()); @@ -1605,7 +1571,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdsLessThanOrEqualToColumn(LitemallAdmin.Column column) { addCriterion(new StringBuilder("role_ids <= ").append(column.getEscapedColumnName()).toString()); @@ -1655,7 +1620,6 @@ public class LitemallAdminExample { * This field corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallAdminExample example; @@ -1664,7 +1628,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallAdminExample example) { super(); @@ -1676,7 +1639,6 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallAdminExample example() { return this.example; @@ -1687,8 +1649,8 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1701,26 +1663,46 @@ public class LitemallAdminExample { * This method corresponds to the database table litemall_admin * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallAdmin.IS_DELETED) : andDeletedNotEqualTo(LitemallAdmin.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_admin + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAdmin.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallAdmin.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1817,4 +1799,24 @@ public class LitemallAdminExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallAdminExample example); + } } \ No newline at end of file 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 ed67f31e..33a90f20 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 @@ -11,18 +11,16 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -297,6 +295,16 @@ public class LitemallBrand { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_brand.deleted @@ -333,6 +341,8 @@ public class LitemallBrand { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", desc=").append(desc); @@ -398,14 +408,71 @@ public class LitemallBrand { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_brand + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_brand + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_brand + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -413,7 +480,6 @@ public class LitemallBrand { * This enum corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -431,7 +497,6 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -440,7 +505,6 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -449,7 +513,6 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -458,7 +521,6 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -467,7 +529,6 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -476,7 +537,6 @@ public class LitemallBrand { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -485,7 +545,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -496,7 +555,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -507,7 +565,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -518,7 +575,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -529,7 +585,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -543,7 +598,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -554,7 +608,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -565,7 +618,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -580,7 +632,6 @@ public class LitemallBrand { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -589,5 +640,15 @@ public class LitemallBrand { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 a7c9a23e..e08b1e82 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 @@ -117,7 +117,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallBrandExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallBrandExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallBrandExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public LitemallBrandExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public LitemallBrandExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_brand @@ -259,7 +284,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -276,7 +300,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -293,7 +316,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +332,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +348,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +364,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -391,7 +410,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -408,7 +426,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +442,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +458,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +474,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +490,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -533,7 +546,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`desc` = ").append(column.getEscapedColumnName()).toString()); @@ -550,7 +562,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`desc` <> ").append(column.getEscapedColumnName()).toString()); @@ -567,7 +578,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`desc` > ").append(column.getEscapedColumnName()).toString()); @@ -584,7 +594,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`desc` >= ").append(column.getEscapedColumnName()).toString()); @@ -601,7 +610,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`desc` < ").append(column.getEscapedColumnName()).toString()); @@ -618,7 +626,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("`desc` <= ").append(column.getEscapedColumnName()).toString()); @@ -675,7 +682,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -692,7 +698,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -709,7 +714,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -726,7 +730,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -743,7 +746,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -760,7 +762,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -817,7 +818,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("sort_order = ").append(column.getEscapedColumnName()).toString()); @@ -834,7 +834,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("sort_order <> ").append(column.getEscapedColumnName()).toString()); @@ -851,7 +850,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("sort_order > ").append(column.getEscapedColumnName()).toString()); @@ -868,7 +866,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("sort_order >= ").append(column.getEscapedColumnName()).toString()); @@ -885,7 +882,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("sort_order < ").append(column.getEscapedColumnName()).toString()); @@ -902,7 +898,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("sort_order <= ").append(column.getEscapedColumnName()).toString()); @@ -949,7 +944,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFloorPriceEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("floor_price = ").append(column.getEscapedColumnName()).toString()); @@ -966,7 +960,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFloorPriceNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("floor_price <> ").append(column.getEscapedColumnName()).toString()); @@ -983,7 +976,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFloorPriceGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("floor_price > ").append(column.getEscapedColumnName()).toString()); @@ -1000,7 +992,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFloorPriceGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("floor_price >= ").append(column.getEscapedColumnName()).toString()); @@ -1017,7 +1008,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFloorPriceLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("floor_price < ").append(column.getEscapedColumnName()).toString()); @@ -1034,7 +1024,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFloorPriceLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("floor_price <= ").append(column.getEscapedColumnName()).toString()); @@ -1081,7 +1070,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1098,7 +1086,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1115,7 +1102,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1132,7 +1118,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1149,7 +1134,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1166,7 +1150,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1213,7 +1196,6 @@ public class LitemallBrandExample { * 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()); @@ -1230,7 +1212,6 @@ public class LitemallBrandExample { * 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()); @@ -1247,7 +1228,6 @@ public class LitemallBrandExample { * 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()); @@ -1264,7 +1244,6 @@ public class LitemallBrandExample { * 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()); @@ -1281,7 +1260,6 @@ public class LitemallBrandExample { * 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()); @@ -1298,7 +1276,6 @@ public class LitemallBrandExample { * 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()); @@ -1345,7 +1322,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1362,7 +1338,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1379,7 +1354,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1396,7 +1370,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1413,7 +1386,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1430,7 +1402,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallBrand.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1470,7 +1441,6 @@ public class LitemallBrandExample { * This field corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallBrandExample example; @@ -1479,7 +1449,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallBrandExample example) { super(); @@ -1491,7 +1460,6 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallBrandExample example() { return this.example; @@ -1502,8 +1470,8 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1516,26 +1484,46 @@ public class LitemallBrandExample { * This method corresponds to the database table litemall_brand * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallBrand.IS_DELETED) : andDeletedNotEqualTo(LitemallBrand.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_brand + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallBrand.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallBrand.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1632,4 +1620,24 @@ public class LitemallBrandExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallBrandExample example); + } } \ No newline at end of file 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 e2e9e3d9..045dca52 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 @@ -11,18 +11,16 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -462,6 +460,16 @@ public class LitemallCart { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_cart.deleted @@ -498,6 +506,8 @@ public class LitemallCart { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", goodsId=").append(goodsId); @@ -578,14 +588,71 @@ public class LitemallCart { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_cart + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_cart + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_cart + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -593,7 +660,6 @@ public class LitemallCart { * This enum corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -616,7 +682,6 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -625,7 +690,6 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -634,7 +698,6 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -643,7 +706,6 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -652,7 +714,6 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -661,7 +722,6 @@ public class LitemallCart { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -670,7 +730,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -681,7 +740,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -692,7 +750,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -703,7 +760,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -714,7 +770,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -728,7 +783,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -739,7 +793,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -750,7 +803,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -765,7 +817,6 @@ public class LitemallCart { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -774,5 +825,15 @@ public class LitemallCart { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 be5e261c..23a36340 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 @@ -117,7 +117,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCartExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCartExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallCartExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public LitemallCartExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public LitemallCartExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_cart @@ -293,7 +318,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +334,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +350,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +366,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -361,7 +382,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -378,7 +398,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +444,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +460,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +476,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +492,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -493,7 +508,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -510,7 +524,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -557,7 +570,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -574,7 +586,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -591,7 +602,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -608,7 +618,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -625,7 +634,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -642,7 +650,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -689,7 +696,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_sn = ").append(column.getEscapedColumnName()).toString()); @@ -706,7 +712,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_sn <> ").append(column.getEscapedColumnName()).toString()); @@ -723,7 +728,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_sn > ").append(column.getEscapedColumnName()).toString()); @@ -740,7 +744,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_sn >= ").append(column.getEscapedColumnName()).toString()); @@ -757,7 +760,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_sn < ").append(column.getEscapedColumnName()).toString()); @@ -774,7 +776,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_sn <= ").append(column.getEscapedColumnName()).toString()); @@ -831,7 +832,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_name = ").append(column.getEscapedColumnName()).toString()); @@ -848,7 +848,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_name <> ").append(column.getEscapedColumnName()).toString()); @@ -865,7 +864,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_name > ").append(column.getEscapedColumnName()).toString()); @@ -882,7 +880,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_name >= ").append(column.getEscapedColumnName()).toString()); @@ -899,7 +896,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_name < ").append(column.getEscapedColumnName()).toString()); @@ -916,7 +912,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("goods_name <= ").append(column.getEscapedColumnName()).toString()); @@ -973,7 +968,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("product_id = ").append(column.getEscapedColumnName()).toString()); @@ -990,7 +984,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("product_id <> ").append(column.getEscapedColumnName()).toString()); @@ -1007,7 +1000,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("product_id > ").append(column.getEscapedColumnName()).toString()); @@ -1024,7 +1016,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("product_id >= ").append(column.getEscapedColumnName()).toString()); @@ -1041,7 +1032,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("product_id < ").append(column.getEscapedColumnName()).toString()); @@ -1058,7 +1048,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("product_id <= ").append(column.getEscapedColumnName()).toString()); @@ -1105,7 +1094,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("price = ").append(column.getEscapedColumnName()).toString()); @@ -1122,7 +1110,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("price <> ").append(column.getEscapedColumnName()).toString()); @@ -1139,7 +1126,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("price > ").append(column.getEscapedColumnName()).toString()); @@ -1156,7 +1142,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("price >= ").append(column.getEscapedColumnName()).toString()); @@ -1173,7 +1158,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("price < ").append(column.getEscapedColumnName()).toString()); @@ -1190,7 +1174,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("price <= ").append(column.getEscapedColumnName()).toString()); @@ -1237,7 +1220,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`number` = ").append(column.getEscapedColumnName()).toString()); @@ -1254,7 +1236,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`number` <> ").append(column.getEscapedColumnName()).toString()); @@ -1271,7 +1252,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`number` > ").append(column.getEscapedColumnName()).toString()); @@ -1288,7 +1268,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`number` >= ").append(column.getEscapedColumnName()).toString()); @@ -1305,7 +1284,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`number` < ").append(column.getEscapedColumnName()).toString()); @@ -1322,7 +1300,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`number` <= ").append(column.getEscapedColumnName()).toString()); @@ -1369,7 +1346,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("specifications = ").append(column.getEscapedColumnName()).toString()); @@ -1386,7 +1362,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("specifications <> ").append(column.getEscapedColumnName()).toString()); @@ -1403,7 +1378,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("specifications > ").append(column.getEscapedColumnName()).toString()); @@ -1420,7 +1394,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("specifications >= ").append(column.getEscapedColumnName()).toString()); @@ -1437,7 +1410,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("specifications < ").append(column.getEscapedColumnName()).toString()); @@ -1454,7 +1426,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("specifications <= ").append(column.getEscapedColumnName()).toString()); @@ -1511,7 +1482,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCheckedEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`checked` = ").append(column.getEscapedColumnName()).toString()); @@ -1528,7 +1498,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCheckedNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`checked` <> ").append(column.getEscapedColumnName()).toString()); @@ -1545,7 +1514,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCheckedGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`checked` > ").append(column.getEscapedColumnName()).toString()); @@ -1562,7 +1530,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCheckedGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`checked` >= ").append(column.getEscapedColumnName()).toString()); @@ -1579,7 +1546,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCheckedLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`checked` < ").append(column.getEscapedColumnName()).toString()); @@ -1596,7 +1562,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCheckedLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("`checked` <= ").append(column.getEscapedColumnName()).toString()); @@ -1643,7 +1608,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -1660,7 +1624,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1677,7 +1640,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -1694,7 +1656,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1711,7 +1672,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -1728,7 +1688,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1785,7 +1744,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1802,7 +1760,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1819,7 +1776,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1836,7 +1792,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1853,7 +1808,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1870,7 +1824,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1917,7 +1870,6 @@ public class LitemallCartExample { * 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()); @@ -1934,7 +1886,6 @@ public class LitemallCartExample { * 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()); @@ -1951,7 +1902,6 @@ public class LitemallCartExample { * 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()); @@ -1968,7 +1918,6 @@ public class LitemallCartExample { * 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()); @@ -1985,7 +1934,6 @@ public class LitemallCartExample { * 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()); @@ -2002,7 +1950,6 @@ public class LitemallCartExample { * 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()); @@ -2049,7 +1996,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -2066,7 +2012,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -2083,7 +2028,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -2100,7 +2044,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -2117,7 +2060,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -2134,7 +2076,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallCart.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -2174,7 +2115,6 @@ public class LitemallCartExample { * This field corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallCartExample example; @@ -2183,7 +2123,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallCartExample example) { super(); @@ -2195,7 +2134,6 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCartExample example() { return this.example; @@ -2206,8 +2144,8 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -2220,26 +2158,46 @@ public class LitemallCartExample { * This method corresponds to the database table litemall_cart * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallCart.IS_DELETED) : andDeletedNotEqualTo(LitemallCart.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_cart + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCart.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallCart.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2336,4 +2294,24 @@ public class LitemallCartExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallCartExample example); + } } \ No newline at end of file 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 215c9854..f85497b9 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 @@ -10,18 +10,16 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -395,6 +393,16 @@ public class LitemallCategory { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_category.deleted @@ -431,6 +439,8 @@ public class LitemallCategory { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", keywords=").append(keywords); @@ -505,14 +515,71 @@ public class LitemallCategory { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_category + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_category + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_category + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -520,7 +587,6 @@ public class LitemallCategory { * This enum corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -541,7 +607,6 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -550,7 +615,6 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -559,7 +623,6 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -568,7 +631,6 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -577,7 +639,6 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -586,7 +647,6 @@ public class LitemallCategory { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -595,7 +655,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -606,7 +665,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -617,7 +675,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -628,7 +685,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -639,7 +695,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -653,7 +708,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -664,7 +718,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -675,7 +728,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -690,7 +742,6 @@ public class LitemallCategory { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -699,5 +750,15 @@ public class LitemallCategory { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 d36ac171..546d28ec 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 @@ -116,7 +116,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCategoryExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCategoryExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallCategoryExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public LitemallCategoryExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public LitemallCategoryExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_category @@ -258,7 +283,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("keywords = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("keywords <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("keywords > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("keywords >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("keywords < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("keywords <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`desc` = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`desc` <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`desc` > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`desc` >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`desc` < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`desc` <= ").append(column.getEscapedColumnName()).toString()); @@ -816,7 +817,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pid = ").append(column.getEscapedColumnName()).toString()); @@ -833,7 +833,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pid <> ").append(column.getEscapedColumnName()).toString()); @@ -850,7 +849,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pid > ").append(column.getEscapedColumnName()).toString()); @@ -867,7 +865,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pid >= ").append(column.getEscapedColumnName()).toString()); @@ -884,7 +881,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pid < ").append(column.getEscapedColumnName()).toString()); @@ -901,7 +897,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pid <= ").append(column.getEscapedColumnName()).toString()); @@ -948,7 +943,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIconUrlEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("icon_url = ").append(column.getEscapedColumnName()).toString()); @@ -965,7 +959,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIconUrlNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("icon_url <> ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +975,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIconUrlGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("icon_url > ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +991,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIconUrlGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("icon_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1007,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIconUrlLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("icon_url < ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1023,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIconUrlLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("icon_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1090,7 +1079,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -1107,7 +1095,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1124,7 +1111,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -1141,7 +1127,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1158,7 +1143,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1159,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1232,7 +1215,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLevelEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`level` = ").append(column.getEscapedColumnName()).toString()); @@ -1249,7 +1231,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLevelNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`level` <> ").append(column.getEscapedColumnName()).toString()); @@ -1266,7 +1247,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLevelGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`level` > ").append(column.getEscapedColumnName()).toString()); @@ -1283,7 +1263,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLevelGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`level` >= ").append(column.getEscapedColumnName()).toString()); @@ -1300,7 +1279,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLevelLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`level` < ").append(column.getEscapedColumnName()).toString()); @@ -1317,7 +1295,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLevelLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("`level` <= ").append(column.getEscapedColumnName()).toString()); @@ -1374,7 +1351,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("sort_order = ").append(column.getEscapedColumnName()).toString()); @@ -1391,7 +1367,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("sort_order <> ").append(column.getEscapedColumnName()).toString()); @@ -1408,7 +1383,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("sort_order > ").append(column.getEscapedColumnName()).toString()); @@ -1425,7 +1399,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("sort_order >= ").append(column.getEscapedColumnName()).toString()); @@ -1442,7 +1415,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("sort_order < ").append(column.getEscapedColumnName()).toString()); @@ -1459,7 +1431,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("sort_order <= ").append(column.getEscapedColumnName()).toString()); @@ -1506,7 +1477,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1523,7 +1493,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1540,7 +1509,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1557,7 +1525,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1574,7 +1541,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1591,7 +1557,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1638,7 +1603,6 @@ public class LitemallCategoryExample { * 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()); @@ -1655,7 +1619,6 @@ public class LitemallCategoryExample { * 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()); @@ -1672,7 +1635,6 @@ public class LitemallCategoryExample { * 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()); @@ -1689,7 +1651,6 @@ public class LitemallCategoryExample { * 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()); @@ -1706,7 +1667,6 @@ public class LitemallCategoryExample { * 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()); @@ -1723,7 +1683,6 @@ public class LitemallCategoryExample { * 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()); @@ -1770,7 +1729,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1787,7 +1745,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1804,7 +1761,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1821,7 +1777,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1838,7 +1793,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1855,7 +1809,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallCategory.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1895,7 +1848,6 @@ public class LitemallCategoryExample { * This field corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallCategoryExample example; @@ -1904,7 +1856,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallCategoryExample example) { super(); @@ -1916,7 +1867,6 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCategoryExample example() { return this.example; @@ -1927,8 +1877,8 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1941,26 +1891,46 @@ public class LitemallCategoryExample { * This method corresponds to the database table litemall_category * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallCategory.IS_DELETED) : andDeletedNotEqualTo(LitemallCategory.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_category + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCategory.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallCategory.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2057,4 +2027,24 @@ public class LitemallCategoryExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallCategoryExample example); + } } \ No newline at end of file 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 7bd7b325..dbfc445f 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 @@ -10,18 +10,16 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -230,6 +228,16 @@ public class LitemallCollect { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_collect.deleted @@ -266,6 +274,8 @@ public class LitemallCollect { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", valueId=").append(valueId); @@ -325,14 +335,71 @@ public class LitemallCollect { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_collect + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_collect + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_collect + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -340,7 +407,6 @@ public class LitemallCollect { * This enum corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -356,7 +422,6 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -365,7 +430,6 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -374,7 +438,6 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -383,7 +446,6 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -392,7 +454,6 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -401,7 +462,6 @@ public class LitemallCollect { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -410,7 +470,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -421,7 +480,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -432,7 +490,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -443,7 +500,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -454,7 +510,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -468,7 +523,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -479,7 +533,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -490,7 +543,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -505,7 +557,6 @@ public class LitemallCollect { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -514,5 +565,15 @@ public class LitemallCollect { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 73c21fc6..b00e4e2d 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 @@ -116,7 +116,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCollectExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCollectExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallCollectExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public LitemallCollectExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public LitemallCollectExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_collect @@ -258,7 +283,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("value_id = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdNotEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("value_id <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdGreaterThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("value_id > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdGreaterThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("value_id >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdLessThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("value_id < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdLessThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("value_id <= ").append(column.getEscapedColumnName()).toString()); @@ -654,7 +661,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString()); @@ -671,7 +677,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeNotEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString()); @@ -688,7 +693,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString()); @@ -705,7 +709,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString()); @@ -722,7 +725,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString()); @@ -739,7 +741,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString()); @@ -786,7 +787,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -803,7 +803,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -820,7 +819,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -837,7 +835,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -854,7 +851,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -871,7 +867,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -918,7 +913,6 @@ public class LitemallCollectExample { * 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()); @@ -935,7 +929,6 @@ public class LitemallCollectExample { * 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()); @@ -952,7 +945,6 @@ public class LitemallCollectExample { * 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()); @@ -969,7 +961,6 @@ public class LitemallCollectExample { * 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()); @@ -986,7 +977,6 @@ public class LitemallCollectExample { * 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()); @@ -1003,7 +993,6 @@ public class LitemallCollectExample { * 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()); @@ -1050,7 +1039,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1067,7 +1055,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1084,7 +1071,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1101,7 +1087,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1118,7 +1103,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1135,7 +1119,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallCollect.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1158,6 @@ public class LitemallCollectExample { * This field corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallCollectExample example; @@ -1184,7 +1166,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallCollectExample example) { super(); @@ -1196,7 +1177,6 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCollectExample example() { return this.example; @@ -1207,8 +1187,8 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1221,26 +1201,46 @@ public class LitemallCollectExample { * This method corresponds to the database table litemall_collect * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallCollect.IS_DELETED) : andDeletedNotEqualTo(LitemallCollect.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_collect + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCollect.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallCollect.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1337,4 +1337,24 @@ public class LitemallCollectExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallCollectExample example); + } } \ No newline at end of file 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 5504da2b..19f47d5a 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 @@ -10,18 +10,16 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -362,6 +360,16 @@ public class LitemallComment { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_comment.deleted @@ -398,6 +406,8 @@ public class LitemallComment { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", valueId=").append(valueId); sb.append(", type=").append(type); @@ -469,14 +479,71 @@ public class LitemallComment { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_comment + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -484,7 +551,6 @@ public class LitemallComment { * This enum corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -504,7 +570,6 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -513,7 +578,6 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -522,7 +586,6 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -531,7 +594,6 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -540,7 +602,6 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -549,7 +610,6 @@ public class LitemallComment { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -558,7 +618,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -569,7 +628,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -580,7 +638,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -591,7 +648,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -602,7 +658,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -616,7 +671,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -627,7 +681,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -638,7 +691,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -653,7 +705,6 @@ public class LitemallComment { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -662,5 +713,15 @@ public class LitemallComment { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 bd166c50..4046466a 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 @@ -116,7 +116,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCommentExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCommentExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallCommentExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public LitemallCommentExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public LitemallCommentExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_comment @@ -292,7 +317,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +333,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +349,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +365,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -360,7 +381,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -377,7 +397,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +443,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("value_id = ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +459,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("value_id <> ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +475,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("value_id > ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +491,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("value_id >= ").append(column.getEscapedColumnName()).toString()); @@ -492,7 +507,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("value_id < ").append(column.getEscapedColumnName()).toString()); @@ -509,7 +523,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueIdLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("value_id <= ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +569,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +585,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +601,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +617,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString()); @@ -624,7 +633,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString()); @@ -641,7 +649,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString()); @@ -688,7 +695,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("content = ").append(column.getEscapedColumnName()).toString()); @@ -705,7 +711,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("content <> ").append(column.getEscapedColumnName()).toString()); @@ -722,7 +727,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("content > ").append(column.getEscapedColumnName()).toString()); @@ -739,7 +743,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("content >= ").append(column.getEscapedColumnName()).toString()); @@ -756,7 +759,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("content < ").append(column.getEscapedColumnName()).toString()); @@ -773,7 +775,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("content <= ").append(column.getEscapedColumnName()).toString()); @@ -830,7 +831,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -847,7 +847,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -864,7 +863,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -881,7 +879,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -898,7 +895,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -915,7 +911,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -962,7 +957,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("has_picture = ").append(column.getEscapedColumnName()).toString()); @@ -979,7 +973,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("has_picture <> ").append(column.getEscapedColumnName()).toString()); @@ -996,7 +989,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("has_picture > ").append(column.getEscapedColumnName()).toString()); @@ -1013,7 +1005,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("has_picture >= ").append(column.getEscapedColumnName()).toString()); @@ -1030,7 +1021,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("has_picture < ").append(column.getEscapedColumnName()).toString()); @@ -1047,7 +1037,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("has_picture <= ").append(column.getEscapedColumnName()).toString()); @@ -1094,7 +1083,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("pic_urls = ").append(column.getEscapedColumnName()).toString()); @@ -1111,7 +1099,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("pic_urls <> ").append(column.getEscapedColumnName()).toString()); @@ -1128,7 +1115,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("pic_urls > ").append(column.getEscapedColumnName()).toString()); @@ -1145,7 +1131,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("pic_urls >= ").append(column.getEscapedColumnName()).toString()); @@ -1162,7 +1147,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("pic_urls < ").append(column.getEscapedColumnName()).toString()); @@ -1179,7 +1163,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("pic_urls <= ").append(column.getEscapedColumnName()).toString()); @@ -1236,7 +1219,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStarEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("star = ").append(column.getEscapedColumnName()).toString()); @@ -1253,7 +1235,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStarNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("star <> ").append(column.getEscapedColumnName()).toString()); @@ -1270,7 +1251,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStarGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("star > ").append(column.getEscapedColumnName()).toString()); @@ -1287,7 +1267,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStarGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("star >= ").append(column.getEscapedColumnName()).toString()); @@ -1304,7 +1283,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStarLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("star < ").append(column.getEscapedColumnName()).toString()); @@ -1321,7 +1299,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStarLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("star <= ").append(column.getEscapedColumnName()).toString()); @@ -1368,7 +1345,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1385,7 +1361,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1402,7 +1377,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1419,7 +1393,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1436,7 +1409,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1453,7 +1425,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1500,7 +1471,6 @@ public class LitemallCommentExample { * 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()); @@ -1517,7 +1487,6 @@ public class LitemallCommentExample { * 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()); @@ -1534,7 +1503,6 @@ public class LitemallCommentExample { * 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()); @@ -1551,7 +1519,6 @@ public class LitemallCommentExample { * 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()); @@ -1568,7 +1535,6 @@ public class LitemallCommentExample { * 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()); @@ -1585,7 +1551,6 @@ public class LitemallCommentExample { * 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()); @@ -1632,7 +1597,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1649,7 +1613,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1666,7 +1629,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1683,7 +1645,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1700,7 +1661,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1717,7 +1677,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallComment.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1757,7 +1716,6 @@ public class LitemallCommentExample { * This field corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallCommentExample example; @@ -1766,7 +1724,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallCommentExample example) { super(); @@ -1778,7 +1735,6 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCommentExample example() { return this.example; @@ -1789,8 +1745,8 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1803,26 +1759,46 @@ public class LitemallCommentExample { * This method corresponds to the database table litemall_comment * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_comment + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallComment.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallComment.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1919,4 +1895,24 @@ public class LitemallCommentExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallCommentExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCoupon.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCoupon.java index ba895c04..739e9f6d 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCoupon.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCoupon.java @@ -11,18 +11,16 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -660,6 +658,16 @@ public class LitemallCoupon { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_coupon.deleted @@ -696,6 +704,8 @@ public class LitemallCoupon { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", desc=").append(desc); @@ -794,14 +804,71 @@ public class LitemallCoupon { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_coupon + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -809,7 +876,6 @@ public class LitemallCoupon { * This enum corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -838,7 +904,6 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -847,7 +912,6 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -856,7 +920,6 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -865,7 +928,6 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -874,7 +936,6 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -883,7 +944,6 @@ public class LitemallCoupon { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -892,7 +952,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -903,7 +962,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -914,7 +972,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -925,7 +982,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -936,7 +992,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -950,7 +1005,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -961,7 +1015,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -972,7 +1025,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -987,7 +1039,6 @@ public class LitemallCoupon { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -996,5 +1047,15 @@ public class LitemallCoupon { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponExample.java index 79332cb5..0a294492 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponExample.java @@ -117,7 +117,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCouponExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCouponExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Criteria newAndCreateCriteria() { LitemallCouponExample example = new LitemallCouponExample(); return example.createCriteria(); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public LitemallCouponExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public LitemallCouponExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_coupon @@ -293,7 +318,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +334,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +350,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +366,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -361,7 +382,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -378,7 +398,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +444,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +460,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +476,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +492,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -493,7 +508,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -510,7 +524,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -567,7 +580,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`desc` = ").append(column.getEscapedColumnName()).toString()); @@ -584,7 +596,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`desc` <> ").append(column.getEscapedColumnName()).toString()); @@ -601,7 +612,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`desc` > ").append(column.getEscapedColumnName()).toString()); @@ -618,7 +628,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`desc` >= ").append(column.getEscapedColumnName()).toString()); @@ -635,7 +644,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`desc` < ").append(column.getEscapedColumnName()).toString()); @@ -652,7 +660,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`desc` <= ").append(column.getEscapedColumnName()).toString()); @@ -709,7 +716,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTagEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("tag = ").append(column.getEscapedColumnName()).toString()); @@ -726,7 +732,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTagNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("tag <> ").append(column.getEscapedColumnName()).toString()); @@ -743,7 +748,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTagGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("tag > ").append(column.getEscapedColumnName()).toString()); @@ -760,7 +764,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTagGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("tag >= ").append(column.getEscapedColumnName()).toString()); @@ -777,7 +780,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTagLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("tag < ").append(column.getEscapedColumnName()).toString()); @@ -794,7 +796,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTagLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("tag <= ").append(column.getEscapedColumnName()).toString()); @@ -851,7 +852,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTotalEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("total = ").append(column.getEscapedColumnName()).toString()); @@ -868,7 +868,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTotalNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("total <> ").append(column.getEscapedColumnName()).toString()); @@ -885,7 +884,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTotalGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("total > ").append(column.getEscapedColumnName()).toString()); @@ -902,7 +900,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTotalGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("total >= ").append(column.getEscapedColumnName()).toString()); @@ -919,7 +916,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTotalLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("total < ").append(column.getEscapedColumnName()).toString()); @@ -936,7 +932,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTotalLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("total <= ").append(column.getEscapedColumnName()).toString()); @@ -983,7 +978,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("discount = ").append(column.getEscapedColumnName()).toString()); @@ -1000,7 +994,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("discount <> ").append(column.getEscapedColumnName()).toString()); @@ -1017,7 +1010,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("discount > ").append(column.getEscapedColumnName()).toString()); @@ -1034,7 +1026,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("discount >= ").append(column.getEscapedColumnName()).toString()); @@ -1051,7 +1042,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("discount < ").append(column.getEscapedColumnName()).toString()); @@ -1068,7 +1058,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("discount <= ").append(column.getEscapedColumnName()).toString()); @@ -1115,7 +1104,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMinEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`min` = ").append(column.getEscapedColumnName()).toString()); @@ -1132,7 +1120,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMinNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`min` <> ").append(column.getEscapedColumnName()).toString()); @@ -1149,7 +1136,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMinGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`min` > ").append(column.getEscapedColumnName()).toString()); @@ -1166,7 +1152,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMinGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`min` >= ").append(column.getEscapedColumnName()).toString()); @@ -1183,7 +1168,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMinLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`min` < ").append(column.getEscapedColumnName()).toString()); @@ -1200,7 +1184,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMinLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`min` <= ").append(column.getEscapedColumnName()).toString()); @@ -1247,7 +1230,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLimitEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`limit` = ").append(column.getEscapedColumnName()).toString()); @@ -1264,7 +1246,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLimitNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`limit` <> ").append(column.getEscapedColumnName()).toString()); @@ -1281,7 +1262,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLimitGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`limit` > ").append(column.getEscapedColumnName()).toString()); @@ -1298,7 +1278,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLimitGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`limit` >= ").append(column.getEscapedColumnName()).toString()); @@ -1315,7 +1294,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLimitLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`limit` < ").append(column.getEscapedColumnName()).toString()); @@ -1332,7 +1310,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLimitLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`limit` <= ").append(column.getEscapedColumnName()).toString()); @@ -1379,7 +1356,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString()); @@ -1396,7 +1372,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString()); @@ -1413,7 +1388,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString()); @@ -1430,7 +1404,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString()); @@ -1447,7 +1420,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString()); @@ -1464,7 +1436,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString()); @@ -1511,7 +1482,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`status` = ").append(column.getEscapedColumnName()).toString()); @@ -1528,7 +1498,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`status` <> ").append(column.getEscapedColumnName()).toString()); @@ -1545,7 +1514,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`status` > ").append(column.getEscapedColumnName()).toString()); @@ -1562,7 +1530,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`status` >= ").append(column.getEscapedColumnName()).toString()); @@ -1579,7 +1546,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`status` < ").append(column.getEscapedColumnName()).toString()); @@ -1596,7 +1562,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`status` <= ").append(column.getEscapedColumnName()).toString()); @@ -1643,7 +1608,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsTypeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_type = ").append(column.getEscapedColumnName()).toString()); @@ -1660,7 +1624,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsTypeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_type <> ").append(column.getEscapedColumnName()).toString()); @@ -1677,7 +1640,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsTypeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_type > ").append(column.getEscapedColumnName()).toString()); @@ -1694,7 +1656,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsTypeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_type >= ").append(column.getEscapedColumnName()).toString()); @@ -1711,7 +1672,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsTypeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_type < ").append(column.getEscapedColumnName()).toString()); @@ -1728,7 +1688,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsTypeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_type <= ").append(column.getEscapedColumnName()).toString()); @@ -1775,7 +1734,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsValueEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_value = ").append(column.getEscapedColumnName()).toString()); @@ -1792,7 +1750,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsValueNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_value <> ").append(column.getEscapedColumnName()).toString()); @@ -1809,7 +1766,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsValueGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_value > ").append(column.getEscapedColumnName()).toString()); @@ -1826,7 +1782,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsValueGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_value >= ").append(column.getEscapedColumnName()).toString()); @@ -1843,7 +1798,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsValueLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_value < ").append(column.getEscapedColumnName()).toString()); @@ -1860,7 +1814,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsValueLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("goods_value <= ").append(column.getEscapedColumnName()).toString()); @@ -1917,7 +1870,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("code = ").append(column.getEscapedColumnName()).toString()); @@ -1934,7 +1886,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("code <> ").append(column.getEscapedColumnName()).toString()); @@ -1951,7 +1902,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("code > ").append(column.getEscapedColumnName()).toString()); @@ -1968,7 +1918,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("code >= ").append(column.getEscapedColumnName()).toString()); @@ -1985,7 +1934,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("code < ").append(column.getEscapedColumnName()).toString()); @@ -2002,7 +1950,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("code <= ").append(column.getEscapedColumnName()).toString()); @@ -2059,7 +2006,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTimeTypeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("time_type = ").append(column.getEscapedColumnName()).toString()); @@ -2076,7 +2022,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTimeTypeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("time_type <> ").append(column.getEscapedColumnName()).toString()); @@ -2093,7 +2038,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTimeTypeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("time_type > ").append(column.getEscapedColumnName()).toString()); @@ -2110,7 +2054,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTimeTypeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("time_type >= ").append(column.getEscapedColumnName()).toString()); @@ -2127,7 +2070,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTimeTypeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("time_type < ").append(column.getEscapedColumnName()).toString()); @@ -2144,7 +2086,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTimeTypeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("time_type <= ").append(column.getEscapedColumnName()).toString()); @@ -2191,7 +2132,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDaysEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`days` = ").append(column.getEscapedColumnName()).toString()); @@ -2208,7 +2148,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDaysNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`days` <> ").append(column.getEscapedColumnName()).toString()); @@ -2225,7 +2164,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDaysGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`days` > ").append(column.getEscapedColumnName()).toString()); @@ -2242,7 +2180,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDaysGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`days` >= ").append(column.getEscapedColumnName()).toString()); @@ -2259,7 +2196,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDaysLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`days` < ").append(column.getEscapedColumnName()).toString()); @@ -2276,7 +2212,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDaysLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("`days` <= ").append(column.getEscapedColumnName()).toString()); @@ -2323,7 +2258,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("start_time = ").append(column.getEscapedColumnName()).toString()); @@ -2340,7 +2274,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("start_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2357,7 +2290,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("start_time > ").append(column.getEscapedColumnName()).toString()); @@ -2374,7 +2306,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("start_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2391,7 +2322,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("start_time < ").append(column.getEscapedColumnName()).toString()); @@ -2408,7 +2338,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("start_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2455,7 +2384,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("end_time = ").append(column.getEscapedColumnName()).toString()); @@ -2472,7 +2400,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("end_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2489,7 +2416,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("end_time > ").append(column.getEscapedColumnName()).toString()); @@ -2506,7 +2432,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("end_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2523,7 +2448,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("end_time < ").append(column.getEscapedColumnName()).toString()); @@ -2540,7 +2464,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("end_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2587,7 +2510,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -2604,7 +2526,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2621,7 +2542,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -2638,7 +2558,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2655,7 +2574,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -2672,7 +2590,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2719,7 +2636,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString()); @@ -2736,7 +2652,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2753,7 +2668,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString()); @@ -2770,7 +2684,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2787,7 +2700,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString()); @@ -2804,7 +2716,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2851,7 +2762,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -2868,7 +2778,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -2885,7 +2794,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -2902,7 +2810,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -2919,7 +2826,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -2936,7 +2842,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallCoupon.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -2976,7 +2881,6 @@ public class LitemallCouponExample { * This field corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallCouponExample example; @@ -2985,7 +2889,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallCouponExample example) { super(); @@ -2997,7 +2900,6 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCouponExample example() { return this.example; @@ -3008,8 +2910,8 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -3022,26 +2924,46 @@ public class LitemallCouponExample { * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_coupon + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCoupon.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallCoupon.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_coupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Criteria add(Criteria add); } @@ -3138,4 +3060,24 @@ public class LitemallCouponExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallCouponExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUser.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUser.java index d54e8456..f5cb6b51 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUser.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUser.java @@ -10,18 +10,16 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -362,6 +360,16 @@ public class LitemallCouponUser { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_coupon_user.deleted @@ -398,6 +406,8 @@ public class LitemallCouponUser { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", couponId=").append(couponId); @@ -469,14 +479,71 @@ public class LitemallCouponUser { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_coupon_user + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -484,7 +551,6 @@ public class LitemallCouponUser { * This enum corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -504,7 +570,6 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -513,7 +578,6 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -522,7 +586,6 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -531,7 +594,6 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -540,7 +602,6 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -549,7 +610,6 @@ public class LitemallCouponUser { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -558,7 +618,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -569,7 +628,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -580,7 +638,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -591,7 +648,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -602,7 +658,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -616,7 +671,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -627,7 +681,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -638,7 +691,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -653,7 +705,6 @@ public class LitemallCouponUser { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -662,5 +713,15 @@ public class LitemallCouponUser { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUserExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUserExample.java index bbe0dfbc..cc0bdea6 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUserExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCouponUserExample.java @@ -116,7 +116,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCouponUserExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCouponUserExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Criteria newAndCreateCriteria() { LitemallCouponUserExample example = new LitemallCouponUserExample(); return example.createCriteria(); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public LitemallCouponUserExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public LitemallCouponUserExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_coupon_user @@ -258,7 +283,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponIdEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("coupon_id = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponIdNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("coupon_id <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponIdGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("coupon_id > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponIdGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("coupon_id >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponIdLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("coupon_id < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponIdLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("coupon_id <= ").append(column.getEscapedColumnName()).toString()); @@ -654,7 +661,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("`status` = ").append(column.getEscapedColumnName()).toString()); @@ -671,7 +677,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("`status` <> ").append(column.getEscapedColumnName()).toString()); @@ -688,7 +693,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("`status` > ").append(column.getEscapedColumnName()).toString()); @@ -705,7 +709,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("`status` >= ").append(column.getEscapedColumnName()).toString()); @@ -722,7 +725,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("`status` < ").append(column.getEscapedColumnName()).toString()); @@ -739,7 +741,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("`status` <= ").append(column.getEscapedColumnName()).toString()); @@ -786,7 +787,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsedTimeEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("used_time = ").append(column.getEscapedColumnName()).toString()); @@ -803,7 +803,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsedTimeNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("used_time <> ").append(column.getEscapedColumnName()).toString()); @@ -820,7 +819,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsedTimeGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("used_time > ").append(column.getEscapedColumnName()).toString()); @@ -837,7 +835,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsedTimeGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("used_time >= ").append(column.getEscapedColumnName()).toString()); @@ -854,7 +851,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsedTimeLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("used_time < ").append(column.getEscapedColumnName()).toString()); @@ -871,7 +867,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsedTimeLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("used_time <= ").append(column.getEscapedColumnName()).toString()); @@ -918,7 +913,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("start_time = ").append(column.getEscapedColumnName()).toString()); @@ -935,7 +929,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("start_time <> ").append(column.getEscapedColumnName()).toString()); @@ -952,7 +945,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("start_time > ").append(column.getEscapedColumnName()).toString()); @@ -969,7 +961,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("start_time >= ").append(column.getEscapedColumnName()).toString()); @@ -986,7 +977,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("start_time < ").append(column.getEscapedColumnName()).toString()); @@ -1003,7 +993,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStartTimeLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("start_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1050,7 +1039,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("end_time = ").append(column.getEscapedColumnName()).toString()); @@ -1067,7 +1055,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("end_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1084,7 +1071,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("end_time > ").append(column.getEscapedColumnName()).toString()); @@ -1101,7 +1087,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("end_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1118,7 +1103,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("end_time < ").append(column.getEscapedColumnName()).toString()); @@ -1135,7 +1119,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("end_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1182,7 +1165,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("order_id = ").append(column.getEscapedColumnName()).toString()); @@ -1199,7 +1181,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("order_id <> ").append(column.getEscapedColumnName()).toString()); @@ -1216,7 +1197,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("order_id > ").append(column.getEscapedColumnName()).toString()); @@ -1233,7 +1213,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("order_id >= ").append(column.getEscapedColumnName()).toString()); @@ -1250,7 +1229,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("order_id < ").append(column.getEscapedColumnName()).toString()); @@ -1267,7 +1245,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("order_id <= ").append(column.getEscapedColumnName()).toString()); @@ -1314,7 +1291,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1331,7 +1307,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1348,7 +1323,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1365,7 +1339,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1382,7 +1355,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1399,7 +1371,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1446,7 +1417,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString()); @@ -1463,7 +1433,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1480,7 +1449,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString()); @@ -1497,7 +1465,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1514,7 +1481,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString()); @@ -1531,7 +1497,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1578,7 +1543,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1595,7 +1559,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1612,7 +1575,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1629,7 +1591,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1646,7 +1607,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1663,7 +1623,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallCouponUser.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1703,7 +1662,6 @@ public class LitemallCouponUserExample { * This field corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallCouponUserExample example; @@ -1712,7 +1670,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallCouponUserExample example) { super(); @@ -1724,7 +1681,6 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallCouponUserExample example() { return this.example; @@ -1735,8 +1691,8 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1749,26 +1705,46 @@ public class LitemallCouponUserExample { * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallCouponUser.IS_DELETED) : andDeletedNotEqualTo(LitemallCouponUser.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_coupon_user + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCouponUser.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallCouponUser.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_coupon_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Criteria add(Criteria add); } @@ -1865,4 +1841,24 @@ public class LitemallCouponUserExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon_user + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallCouponUserExample example); + } } \ No newline at end of file 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 1b990c4c..d423258b 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 @@ -10,18 +10,16 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -395,6 +393,16 @@ public class LitemallFeedback { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_feedback.deleted @@ -431,6 +439,8 @@ public class LitemallFeedback { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", username=").append(username); @@ -505,14 +515,71 @@ public class LitemallFeedback { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_feedback + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -520,7 +587,6 @@ public class LitemallFeedback { * This enum corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -541,7 +607,6 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -550,7 +615,6 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -559,7 +623,6 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -568,7 +631,6 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -577,7 +639,6 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -586,7 +647,6 @@ public class LitemallFeedback { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -595,7 +655,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -606,7 +665,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -617,7 +675,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -628,7 +685,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -639,7 +695,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -653,7 +708,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -664,7 +718,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -675,7 +728,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -690,7 +742,6 @@ public class LitemallFeedback { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -699,5 +750,15 @@ public class LitemallFeedback { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 7849964e..d24e2a11 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 @@ -116,7 +116,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallFeedbackExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallFeedbackExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallFeedbackExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public LitemallFeedbackExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public LitemallFeedbackExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_feedback @@ -292,7 +317,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +333,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +349,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +365,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -360,7 +381,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -377,7 +397,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +443,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +459,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +475,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +491,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -492,7 +507,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -509,7 +523,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +569,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("username = ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +585,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("username <> ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +601,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("username > ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +617,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("username >= ").append(column.getEscapedColumnName()).toString()); @@ -624,7 +633,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("username < ").append(column.getEscapedColumnName()).toString()); @@ -641,7 +649,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("username <= ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +705,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("mobile = ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +721,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("mobile <> ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +737,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("mobile > ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +753,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("mobile >= ").append(column.getEscapedColumnName()).toString()); @@ -766,7 +769,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("mobile < ").append(column.getEscapedColumnName()).toString()); @@ -783,7 +785,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("mobile <= ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +841,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFeedTypeEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("feed_type = ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +857,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFeedTypeNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("feed_type <> ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +873,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFeedTypeGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("feed_type > ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +889,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFeedTypeGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("feed_type >= ").append(column.getEscapedColumnName()).toString()); @@ -908,7 +905,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFeedTypeLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("feed_type < ").append(column.getEscapedColumnName()).toString()); @@ -925,7 +921,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFeedTypeLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("feed_type <= ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +977,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("content = ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +993,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("content <> ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1009,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("content > ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1025,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("content >= ").append(column.getEscapedColumnName()).toString()); @@ -1050,7 +1041,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("content < ").append(column.getEscapedColumnName()).toString()); @@ -1067,7 +1057,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andContentLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("content <= ").append(column.getEscapedColumnName()).toString()); @@ -1124,7 +1113,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("`status` = ").append(column.getEscapedColumnName()).toString()); @@ -1141,7 +1129,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("`status` <> ").append(column.getEscapedColumnName()).toString()); @@ -1158,7 +1145,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("`status` > ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1161,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("`status` >= ").append(column.getEscapedColumnName()).toString()); @@ -1192,7 +1177,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("`status` < ").append(column.getEscapedColumnName()).toString()); @@ -1209,7 +1193,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("`status` <= ").append(column.getEscapedColumnName()).toString()); @@ -1256,7 +1239,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("has_picture = ").append(column.getEscapedColumnName()).toString()); @@ -1273,7 +1255,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("has_picture <> ").append(column.getEscapedColumnName()).toString()); @@ -1290,7 +1271,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("has_picture > ").append(column.getEscapedColumnName()).toString()); @@ -1307,7 +1287,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("has_picture >= ").append(column.getEscapedColumnName()).toString()); @@ -1324,7 +1303,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("has_picture < ").append(column.getEscapedColumnName()).toString()); @@ -1341,7 +1319,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andHasPictureLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("has_picture <= ").append(column.getEscapedColumnName()).toString()); @@ -1388,7 +1365,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("pic_urls = ").append(column.getEscapedColumnName()).toString()); @@ -1405,7 +1381,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("pic_urls <> ").append(column.getEscapedColumnName()).toString()); @@ -1422,7 +1397,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("pic_urls > ").append(column.getEscapedColumnName()).toString()); @@ -1439,7 +1413,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("pic_urls >= ").append(column.getEscapedColumnName()).toString()); @@ -1456,7 +1429,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("pic_urls < ").append(column.getEscapedColumnName()).toString()); @@ -1473,7 +1445,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlsLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("pic_urls <= ").append(column.getEscapedColumnName()).toString()); @@ -1530,7 +1501,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1547,7 +1517,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1564,7 +1533,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1581,7 +1549,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1598,7 +1565,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1615,7 +1581,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1662,7 +1627,6 @@ public class LitemallFeedbackExample { * 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()); @@ -1679,7 +1643,6 @@ public class LitemallFeedbackExample { * 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()); @@ -1696,7 +1659,6 @@ public class LitemallFeedbackExample { * 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()); @@ -1713,7 +1675,6 @@ public class LitemallFeedbackExample { * 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()); @@ -1730,7 +1691,6 @@ public class LitemallFeedbackExample { * 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()); @@ -1747,7 +1707,6 @@ public class LitemallFeedbackExample { * 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()); @@ -1794,7 +1753,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1811,7 +1769,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1828,7 +1785,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1845,7 +1801,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1862,7 +1817,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1879,7 +1833,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallFeedback.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1919,7 +1872,6 @@ public class LitemallFeedbackExample { * This field corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallFeedbackExample example; @@ -1928,7 +1880,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallFeedbackExample example) { super(); @@ -1940,7 +1891,6 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallFeedbackExample example() { return this.example; @@ -1951,8 +1901,8 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1965,26 +1915,46 @@ public class LitemallFeedbackExample { * This method corresponds to the database table litemall_feedback * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallFeedback.IS_DELETED) : andDeletedNotEqualTo(LitemallFeedback.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_feedback + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallFeedback.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallFeedback.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2081,4 +2051,24 @@ public class LitemallFeedbackExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_feedback + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallFeedbackExample example); + } } \ No newline at end of file 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 d3db0bb5..00dd4703 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 @@ -10,18 +10,16 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -197,6 +195,16 @@ public class LitemallFootprint { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_footprint.deleted @@ -233,6 +241,8 @@ public class LitemallFootprint { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", goodsId=").append(goodsId); @@ -289,14 +299,71 @@ public class LitemallFootprint { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_footprint + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -304,7 +371,6 @@ public class LitemallFootprint { * This enum corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -319,7 +385,6 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -328,7 +393,6 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -337,7 +401,6 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -346,7 +409,6 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -355,7 +417,6 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -364,7 +425,6 @@ public class LitemallFootprint { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -373,7 +433,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -384,7 +443,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -395,7 +453,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -406,7 +463,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -417,7 +473,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -431,7 +486,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -442,7 +496,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -453,7 +506,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -468,7 +520,6 @@ public class LitemallFootprint { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -477,5 +528,15 @@ public class LitemallFootprint { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 e61a2b6d..d551e7e9 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 @@ -116,7 +116,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallFootprintExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallFootprintExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallFootprintExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public LitemallFootprintExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public LitemallFootprintExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_footprint @@ -258,7 +283,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -654,7 +661,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -671,7 +677,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -688,7 +693,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -705,7 +709,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -722,7 +725,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -739,7 +741,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -786,7 +787,6 @@ public class LitemallFootprintExample { * 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()); @@ -803,7 +803,6 @@ public class LitemallFootprintExample { * 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()); @@ -820,7 +819,6 @@ public class LitemallFootprintExample { * 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()); @@ -837,7 +835,6 @@ public class LitemallFootprintExample { * 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()); @@ -854,7 +851,6 @@ public class LitemallFootprintExample { * 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()); @@ -871,7 +867,6 @@ public class LitemallFootprintExample { * 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()); @@ -918,7 +913,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -935,7 +929,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -952,7 +945,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -969,7 +961,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -986,7 +977,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1003,7 +993,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallFootprint.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1043,7 +1032,6 @@ public class LitemallFootprintExample { * This field corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallFootprintExample example; @@ -1052,7 +1040,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallFootprintExample example) { super(); @@ -1064,7 +1051,6 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallFootprintExample example() { return this.example; @@ -1075,8 +1061,8 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1089,26 +1075,46 @@ public class LitemallFootprintExample { * This method corresponds to the database table litemall_footprint * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_footprint + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallFootprint.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallFootprint.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1205,4 +1211,24 @@ public class LitemallFootprintExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallFootprintExample example); + } } \ No newline at end of file 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 09fca558..5dc0055b 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 @@ -11,18 +11,16 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -669,6 +667,16 @@ public class LitemallGoods { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_goods.deleted @@ -729,6 +737,8 @@ public class LitemallGoods { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", goodsSn=").append(goodsSn); sb.append(", name=").append(name); @@ -830,14 +840,71 @@ public class LitemallGoods { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -845,7 +912,6 @@ public class LitemallGoods { * This enum corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -875,7 +941,6 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -884,7 +949,6 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -893,7 +957,6 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -902,7 +965,6 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -911,7 +973,6 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -920,7 +981,6 @@ public class LitemallGoods { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -929,7 +989,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -940,7 +999,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -951,7 +1009,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -962,7 +1019,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -973,7 +1029,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -987,7 +1042,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -998,7 +1052,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -1009,7 +1062,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -1024,7 +1076,6 @@ public class LitemallGoods { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -1033,5 +1084,15 @@ public class LitemallGoods { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 3337b8a6..3b17ec6a 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 @@ -10,18 +10,16 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -230,6 +228,16 @@ public class LitemallGoodsAttribute { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_goods_attribute.deleted @@ -266,6 +274,8 @@ public class LitemallGoodsAttribute { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", goodsId=").append(goodsId); sb.append(", attribute=").append(attribute); @@ -325,14 +335,71 @@ public class LitemallGoodsAttribute { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_attribute + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -340,7 +407,6 @@ public class LitemallGoodsAttribute { * This enum corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -356,7 +422,6 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -365,7 +430,6 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -374,7 +438,6 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -383,7 +446,6 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -392,7 +454,6 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -401,7 +462,6 @@ public class LitemallGoodsAttribute { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -410,7 +470,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -421,7 +480,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -432,7 +490,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -443,7 +500,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -454,7 +510,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -468,7 +523,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -479,7 +533,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -490,7 +543,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -505,7 +557,6 @@ public class LitemallGoodsAttribute { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -514,5 +565,15 @@ public class LitemallGoodsAttribute { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 a84b1c91..b63c12c8 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 @@ -116,7 +116,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsAttributeExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallGoodsAttributeExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public LitemallGoodsAttributeExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public LitemallGoodsAttributeExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods_attribute @@ -258,7 +283,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAttributeEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`attribute` = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAttributeNotEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`attribute` <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAttributeGreaterThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`attribute` > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAttributeGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`attribute` >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAttributeLessThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`attribute` < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAttributeLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`attribute` <= ").append(column.getEscapedColumnName()).toString()); @@ -664,7 +671,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`value` = ").append(column.getEscapedColumnName()).toString()); @@ -681,7 +687,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueNotEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`value` <> ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +703,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueGreaterThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`value` > ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +719,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`value` >= ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +735,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueLessThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`value` < ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +751,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("`value` <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -938,7 +933,6 @@ public class LitemallGoodsAttributeExample { * 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()); @@ -955,7 +949,6 @@ public class LitemallGoodsAttributeExample { * 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()); @@ -972,7 +965,6 @@ public class LitemallGoodsAttributeExample { * 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()); @@ -989,7 +981,6 @@ public class LitemallGoodsAttributeExample { * 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()); @@ -1006,7 +997,6 @@ public class LitemallGoodsAttributeExample { * 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()); @@ -1023,7 +1013,6 @@ public class LitemallGoodsAttributeExample { * 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()); @@ -1070,7 +1059,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1087,7 +1075,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1104,7 +1091,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1121,7 +1107,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1138,7 +1123,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1155,7 +1139,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGoodsAttribute.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1195,7 +1178,6 @@ public class LitemallGoodsAttributeExample { * This field corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallGoodsAttributeExample example; @@ -1204,7 +1186,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallGoodsAttributeExample example) { super(); @@ -1216,7 +1197,6 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsAttributeExample example() { return this.example; @@ -1227,8 +1207,8 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1241,26 +1221,46 @@ public class LitemallGoodsAttributeExample { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_goods_attribute + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallGoodsAttribute.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1357,4 +1357,24 @@ public class LitemallGoodsAttributeExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallGoodsAttributeExample example); + } } \ No newline at end of file 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 7cc9a942..d4c331c1 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 @@ -117,7 +117,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallGoodsExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public LitemallGoodsExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public LitemallGoodsExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods @@ -293,7 +318,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +334,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +350,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +366,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -361,7 +382,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -378,7 +398,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +444,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("goods_sn = ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +460,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("goods_sn <> ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +476,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("goods_sn > ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +492,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("goods_sn >= ").append(column.getEscapedColumnName()).toString()); @@ -493,7 +508,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("goods_sn < ").append(column.getEscapedColumnName()).toString()); @@ -510,7 +524,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("goods_sn <= ").append(column.getEscapedColumnName()).toString()); @@ -567,7 +580,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -584,7 +596,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -601,7 +612,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -618,7 +628,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -635,7 +644,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -652,7 +660,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -709,7 +716,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCategoryIdEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("category_id = ").append(column.getEscapedColumnName()).toString()); @@ -726,7 +732,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCategoryIdNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("category_id <> ").append(column.getEscapedColumnName()).toString()); @@ -743,7 +748,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCategoryIdGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("category_id > ").append(column.getEscapedColumnName()).toString()); @@ -760,7 +764,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCategoryIdGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("category_id >= ").append(column.getEscapedColumnName()).toString()); @@ -777,7 +780,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCategoryIdLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("category_id < ").append(column.getEscapedColumnName()).toString()); @@ -794,7 +796,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCategoryIdLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("category_id <= ").append(column.getEscapedColumnName()).toString()); @@ -841,7 +842,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBrandIdEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brand_id = ").append(column.getEscapedColumnName()).toString()); @@ -858,7 +858,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBrandIdNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brand_id <> ").append(column.getEscapedColumnName()).toString()); @@ -875,7 +874,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBrandIdGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brand_id > ").append(column.getEscapedColumnName()).toString()); @@ -892,7 +890,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBrandIdGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brand_id >= ").append(column.getEscapedColumnName()).toString()); @@ -909,7 +906,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBrandIdLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brand_id < ").append(column.getEscapedColumnName()).toString()); @@ -926,7 +922,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBrandIdLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brand_id <= ").append(column.getEscapedColumnName()).toString()); @@ -973,7 +968,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGalleryEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("gallery = ").append(column.getEscapedColumnName()).toString()); @@ -990,7 +984,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGalleryNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("gallery <> ").append(column.getEscapedColumnName()).toString()); @@ -1007,7 +1000,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGalleryGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("gallery > ").append(column.getEscapedColumnName()).toString()); @@ -1024,7 +1016,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGalleryGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("gallery >= ").append(column.getEscapedColumnName()).toString()); @@ -1041,7 +1032,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGalleryLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("gallery < ").append(column.getEscapedColumnName()).toString()); @@ -1058,7 +1048,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGalleryLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("gallery <= ").append(column.getEscapedColumnName()).toString()); @@ -1115,7 +1104,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("keywords = ").append(column.getEscapedColumnName()).toString()); @@ -1132,7 +1120,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("keywords <> ").append(column.getEscapedColumnName()).toString()); @@ -1149,7 +1136,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("keywords > ").append(column.getEscapedColumnName()).toString()); @@ -1166,7 +1152,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("keywords >= ").append(column.getEscapedColumnName()).toString()); @@ -1183,7 +1168,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("keywords < ").append(column.getEscapedColumnName()).toString()); @@ -1200,7 +1184,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordsLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("keywords <= ").append(column.getEscapedColumnName()).toString()); @@ -1257,7 +1240,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBriefEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brief = ").append(column.getEscapedColumnName()).toString()); @@ -1274,7 +1256,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBriefNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brief <> ").append(column.getEscapedColumnName()).toString()); @@ -1291,7 +1272,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBriefGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brief > ").append(column.getEscapedColumnName()).toString()); @@ -1308,7 +1288,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBriefGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brief >= ").append(column.getEscapedColumnName()).toString()); @@ -1325,7 +1304,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBriefLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brief < ").append(column.getEscapedColumnName()).toString()); @@ -1342,7 +1320,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBriefLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("brief <= ").append(column.getEscapedColumnName()).toString()); @@ -1399,7 +1376,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsOnSaleEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_on_sale = ").append(column.getEscapedColumnName()).toString()); @@ -1416,7 +1392,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsOnSaleNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_on_sale <> ").append(column.getEscapedColumnName()).toString()); @@ -1433,7 +1408,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsOnSaleGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_on_sale > ").append(column.getEscapedColumnName()).toString()); @@ -1450,7 +1424,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsOnSaleGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_on_sale >= ").append(column.getEscapedColumnName()).toString()); @@ -1467,7 +1440,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsOnSaleLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_on_sale < ").append(column.getEscapedColumnName()).toString()); @@ -1484,7 +1456,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsOnSaleLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_on_sale <= ").append(column.getEscapedColumnName()).toString()); @@ -1531,7 +1502,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("sort_order = ").append(column.getEscapedColumnName()).toString()); @@ -1548,7 +1518,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("sort_order <> ").append(column.getEscapedColumnName()).toString()); @@ -1565,7 +1534,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("sort_order > ").append(column.getEscapedColumnName()).toString()); @@ -1582,7 +1550,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("sort_order >= ").append(column.getEscapedColumnName()).toString()); @@ -1599,7 +1566,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("sort_order < ").append(column.getEscapedColumnName()).toString()); @@ -1616,7 +1582,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("sort_order <= ").append(column.getEscapedColumnName()).toString()); @@ -1663,7 +1628,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -1680,7 +1644,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1697,7 +1660,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -1714,7 +1676,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1731,7 +1692,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -1748,7 +1708,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1805,7 +1764,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("share_url = ").append(column.getEscapedColumnName()).toString()); @@ -1822,7 +1780,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("share_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1839,7 +1796,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("share_url > ").append(column.getEscapedColumnName()).toString()); @@ -1856,7 +1812,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("share_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1873,7 +1828,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("share_url < ").append(column.getEscapedColumnName()).toString()); @@ -1890,7 +1844,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("share_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1947,7 +1900,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsNewEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_new = ").append(column.getEscapedColumnName()).toString()); @@ -1964,7 +1916,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsNewNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_new <> ").append(column.getEscapedColumnName()).toString()); @@ -1981,7 +1932,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsNewGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_new > ").append(column.getEscapedColumnName()).toString()); @@ -1998,7 +1948,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsNewGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_new >= ").append(column.getEscapedColumnName()).toString()); @@ -2015,7 +1964,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsNewLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_new < ").append(column.getEscapedColumnName()).toString()); @@ -2032,7 +1980,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsNewLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_new <= ").append(column.getEscapedColumnName()).toString()); @@ -2079,7 +2026,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_hot = ").append(column.getEscapedColumnName()).toString()); @@ -2096,7 +2042,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_hot <> ").append(column.getEscapedColumnName()).toString()); @@ -2113,7 +2058,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_hot > ").append(column.getEscapedColumnName()).toString()); @@ -2130,7 +2074,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_hot >= ").append(column.getEscapedColumnName()).toString()); @@ -2147,7 +2090,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_hot < ").append(column.getEscapedColumnName()).toString()); @@ -2164,7 +2106,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("is_hot <= ").append(column.getEscapedColumnName()).toString()); @@ -2211,7 +2152,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUnitEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("unit = ").append(column.getEscapedColumnName()).toString()); @@ -2228,7 +2168,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUnitNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("unit <> ").append(column.getEscapedColumnName()).toString()); @@ -2245,7 +2184,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUnitGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("unit > ").append(column.getEscapedColumnName()).toString()); @@ -2262,7 +2200,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUnitGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("unit >= ").append(column.getEscapedColumnName()).toString()); @@ -2279,7 +2216,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUnitLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("unit < ").append(column.getEscapedColumnName()).toString()); @@ -2296,7 +2232,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUnitLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("unit <= ").append(column.getEscapedColumnName()).toString()); @@ -2353,7 +2288,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCounterPriceEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("counter_price = ").append(column.getEscapedColumnName()).toString()); @@ -2370,7 +2304,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCounterPriceNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("counter_price <> ").append(column.getEscapedColumnName()).toString()); @@ -2387,7 +2320,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCounterPriceGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("counter_price > ").append(column.getEscapedColumnName()).toString()); @@ -2404,7 +2336,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCounterPriceGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("counter_price >= ").append(column.getEscapedColumnName()).toString()); @@ -2421,7 +2352,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCounterPriceLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("counter_price < ").append(column.getEscapedColumnName()).toString()); @@ -2438,7 +2368,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCounterPriceLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("counter_price <= ").append(column.getEscapedColumnName()).toString()); @@ -2485,7 +2414,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRetailPriceEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("retail_price = ").append(column.getEscapedColumnName()).toString()); @@ -2502,7 +2430,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRetailPriceNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("retail_price <> ").append(column.getEscapedColumnName()).toString()); @@ -2519,7 +2446,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRetailPriceGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("retail_price > ").append(column.getEscapedColumnName()).toString()); @@ -2536,7 +2462,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRetailPriceGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("retail_price >= ").append(column.getEscapedColumnName()).toString()); @@ -2553,7 +2478,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRetailPriceLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("retail_price < ").append(column.getEscapedColumnName()).toString()); @@ -2570,7 +2494,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRetailPriceLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("retail_price <= ").append(column.getEscapedColumnName()).toString()); @@ -2617,7 +2540,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -2634,7 +2556,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2651,7 +2572,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -2668,7 +2588,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2685,7 +2604,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -2702,7 +2620,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2749,7 +2666,6 @@ public class LitemallGoodsExample { * 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()); @@ -2766,7 +2682,6 @@ public class LitemallGoodsExample { * 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()); @@ -2783,7 +2698,6 @@ public class LitemallGoodsExample { * 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()); @@ -2800,7 +2714,6 @@ public class LitemallGoodsExample { * 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()); @@ -2817,7 +2730,6 @@ public class LitemallGoodsExample { * 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()); @@ -2834,7 +2746,6 @@ public class LitemallGoodsExample { * 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()); @@ -2881,7 +2792,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -2898,7 +2808,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -2915,7 +2824,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -2932,7 +2840,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -2949,7 +2856,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -2966,7 +2872,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGoods.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -3006,7 +2911,6 @@ public class LitemallGoodsExample { * This field corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallGoodsExample example; @@ -3015,7 +2919,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallGoodsExample example) { super(); @@ -3027,7 +2930,6 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsExample example() { return this.example; @@ -3038,8 +2940,8 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -3052,26 +2954,46 @@ public class LitemallGoodsExample { * This method corresponds to the database table litemall_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_goods + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoods.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallGoods.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -3168,4 +3090,24 @@ public class LitemallGoodsExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallGoodsExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java index 9b37b60b..9be163c4 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProduct.java @@ -11,18 +11,16 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -297,6 +295,16 @@ public class LitemallGoodsProduct { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_goods_product.deleted @@ -333,6 +341,8 @@ public class LitemallGoodsProduct { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", goodsId=").append(goodsId); sb.append(", specifications=").append(specifications); @@ -398,14 +408,71 @@ public class LitemallGoodsProduct { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_product + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -413,7 +480,6 @@ public class LitemallGoodsProduct { * This enum corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -431,7 +497,6 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -440,7 +505,6 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -449,7 +513,6 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -458,7 +521,6 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -467,7 +529,6 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -476,7 +537,6 @@ public class LitemallGoodsProduct { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -485,7 +545,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -496,7 +555,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -507,7 +565,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -518,7 +575,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -529,7 +585,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -543,7 +598,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -554,7 +608,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -565,7 +618,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -580,7 +632,6 @@ public class LitemallGoodsProduct { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -589,5 +640,15 @@ public class LitemallGoodsProduct { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java index 49e1bcbb..f87e6ee4 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoodsProductExample.java @@ -117,7 +117,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsProductExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsProductExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallGoodsProductExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public LitemallGoodsProductExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public LitemallGoodsProductExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods_product @@ -293,7 +318,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +334,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +350,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +366,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -361,7 +382,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -378,7 +398,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +444,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +460,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +476,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +492,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -493,7 +508,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -510,7 +524,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -557,7 +570,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("specifications = ").append(column.getEscapedColumnName()).toString()); @@ -574,7 +586,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("specifications <> ").append(column.getEscapedColumnName()).toString()); @@ -591,7 +602,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("specifications > ").append(column.getEscapedColumnName()).toString()); @@ -608,7 +618,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("specifications >= ").append(column.getEscapedColumnName()).toString()); @@ -625,7 +634,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("specifications < ").append(column.getEscapedColumnName()).toString()); @@ -642,7 +650,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("specifications <= ").append(column.getEscapedColumnName()).toString()); @@ -699,7 +706,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("price = ").append(column.getEscapedColumnName()).toString()); @@ -716,7 +722,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("price <> ").append(column.getEscapedColumnName()).toString()); @@ -733,7 +738,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("price > ").append(column.getEscapedColumnName()).toString()); @@ -750,7 +754,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("price >= ").append(column.getEscapedColumnName()).toString()); @@ -767,7 +770,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("price < ").append(column.getEscapedColumnName()).toString()); @@ -784,7 +786,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("price <= ").append(column.getEscapedColumnName()).toString()); @@ -831,7 +832,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("`number` = ").append(column.getEscapedColumnName()).toString()); @@ -848,7 +848,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("`number` <> ").append(column.getEscapedColumnName()).toString()); @@ -865,7 +864,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("`number` > ").append(column.getEscapedColumnName()).toString()); @@ -882,7 +880,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("`number` >= ").append(column.getEscapedColumnName()).toString()); @@ -899,7 +896,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("`number` < ").append(column.getEscapedColumnName()).toString()); @@ -916,7 +912,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("`number` <= ").append(column.getEscapedColumnName()).toString()); @@ -963,7 +958,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("url = ").append(column.getEscapedColumnName()).toString()); @@ -980,7 +974,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("url <> ").append(column.getEscapedColumnName()).toString()); @@ -997,7 +990,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("url > ").append(column.getEscapedColumnName()).toString()); @@ -1014,7 +1006,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("url >= ").append(column.getEscapedColumnName()).toString()); @@ -1031,7 +1022,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("url < ").append(column.getEscapedColumnName()).toString()); @@ -1048,7 +1038,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("url <= ").append(column.getEscapedColumnName()).toString()); @@ -1105,7 +1094,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1122,7 +1110,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1139,7 +1126,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1156,7 +1142,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1173,7 +1158,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1190,7 +1174,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1237,7 +1220,6 @@ public class LitemallGoodsProductExample { * 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()); @@ -1254,7 +1236,6 @@ public class LitemallGoodsProductExample { * 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()); @@ -1271,7 +1252,6 @@ public class LitemallGoodsProductExample { * 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()); @@ -1288,7 +1268,6 @@ public class LitemallGoodsProductExample { * 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()); @@ -1305,7 +1284,6 @@ public class LitemallGoodsProductExample { * 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()); @@ -1322,7 +1300,6 @@ public class LitemallGoodsProductExample { * 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()); @@ -1369,7 +1346,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1386,7 +1362,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1403,7 +1378,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1420,7 +1394,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1437,7 +1410,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1454,7 +1426,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGoodsProduct.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1494,7 +1465,6 @@ public class LitemallGoodsProductExample { * This field corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallGoodsProductExample example; @@ -1503,7 +1473,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallGoodsProductExample example) { super(); @@ -1515,7 +1484,6 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsProductExample example() { return this.example; @@ -1526,8 +1494,8 @@ public class LitemallGoodsProductExample { * This method corresponds to the database table litemall_goods_product * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1540,26 +1508,46 @@ public class LitemallGoodsProductExample { * 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(LitemallGoodsProduct.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsProduct.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_goods_product + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsProduct.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallGoodsProduct.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1656,4 +1644,24 @@ public class LitemallGoodsProductExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_product + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallGoodsProductExample example); + } } \ No newline at end of file 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 bc6ffa98..505f359b 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 @@ -10,18 +10,16 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -263,6 +261,16 @@ public class LitemallGoodsSpecification { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_goods_specification.deleted @@ -299,6 +307,8 @@ public class LitemallGoodsSpecification { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", goodsId=").append(goodsId); sb.append(", specification=").append(specification); @@ -361,14 +371,71 @@ public class LitemallGoodsSpecification { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_specification + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -376,7 +443,6 @@ public class LitemallGoodsSpecification { * This enum corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -393,7 +459,6 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -402,7 +467,6 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -411,7 +475,6 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -420,7 +483,6 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -429,7 +491,6 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -438,7 +499,6 @@ public class LitemallGoodsSpecification { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -447,7 +507,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -458,7 +517,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -469,7 +527,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -480,7 +537,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -491,7 +547,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -505,7 +560,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -516,7 +570,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -527,7 +580,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -542,7 +594,6 @@ public class LitemallGoodsSpecification { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -551,5 +602,15 @@ public class LitemallGoodsSpecification { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 5b3b38ae..43f61606 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 @@ -116,7 +116,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsSpecificationExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsSpecificationExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallGoodsSpecificationExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public LitemallGoodsSpecificationExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public LitemallGoodsSpecificationExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods_specification @@ -258,7 +283,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("specification = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("specification <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("specification > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("specification >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("specification < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("specification <= ").append(column.getEscapedColumnName()).toString()); @@ -664,7 +671,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("`value` = ").append(column.getEscapedColumnName()).toString()); @@ -681,7 +687,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("`value` <> ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +703,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("`value` > ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +719,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("`value` >= ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +735,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("`value` < ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +751,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andValueLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("`value` <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -948,7 +943,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -965,7 +959,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +975,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +991,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1007,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1023,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1080,7 +1069,6 @@ public class LitemallGoodsSpecificationExample { * 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()); @@ -1097,7 +1085,6 @@ public class LitemallGoodsSpecificationExample { * 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()); @@ -1114,7 +1101,6 @@ public class LitemallGoodsSpecificationExample { * 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()); @@ -1131,7 +1117,6 @@ public class LitemallGoodsSpecificationExample { * 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()); @@ -1148,7 +1133,6 @@ public class LitemallGoodsSpecificationExample { * 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()); @@ -1165,7 +1149,6 @@ public class LitemallGoodsSpecificationExample { * 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()); @@ -1212,7 +1195,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1229,7 +1211,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1246,7 +1227,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1263,7 +1243,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1280,7 +1259,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1297,7 +1275,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGoodsSpecification.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1337,7 +1314,6 @@ public class LitemallGoodsSpecificationExample { * This field corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallGoodsSpecificationExample example; @@ -1346,7 +1322,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallGoodsSpecificationExample example) { super(); @@ -1358,7 +1333,6 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGoodsSpecificationExample example() { return this.example; @@ -1369,8 +1343,8 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1383,26 +1357,46 @@ public class LitemallGoodsSpecificationExample { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallGoodsSpecification.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsSpecification.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_goods_specification + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsSpecification.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallGoodsSpecification.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1499,4 +1493,24 @@ public class LitemallGoodsSpecificationExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallGoodsSpecificationExample example); + } } \ No newline at end of file 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 9f91904d..76b8abd4 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 @@ -10,18 +10,16 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -362,6 +360,16 @@ public class LitemallGroupon { this.payed = payed; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_groupon.deleted @@ -398,6 +406,8 @@ public class LitemallGroupon { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", orderId=").append(orderId); sb.append(", grouponId=").append(grouponId); @@ -469,14 +479,71 @@ public class LitemallGroupon { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_groupon + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -484,7 +551,6 @@ public class LitemallGroupon { * This enum corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -504,7 +570,6 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -513,7 +578,6 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -522,7 +586,6 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -531,7 +594,6 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -540,7 +602,6 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -549,7 +610,6 @@ public class LitemallGroupon { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -558,7 +618,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -569,7 +628,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -580,7 +638,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -591,7 +648,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -602,7 +658,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -616,7 +671,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -627,7 +681,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -638,7 +691,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -653,7 +705,6 @@ public class LitemallGroupon { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -662,5 +713,15 @@ public class LitemallGroupon { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 fe0df7d1..3121693c 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 @@ -116,7 +116,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGrouponExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGrouponExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallGrouponExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public LitemallGrouponExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public LitemallGrouponExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_groupon @@ -258,7 +283,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("order_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("order_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("order_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("order_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("order_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("order_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponIdEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("groupon_id = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponIdNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("groupon_id <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponIdGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("groupon_id > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponIdGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("groupon_id >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponIdLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("groupon_id < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponIdLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("groupon_id <= ").append(column.getEscapedColumnName()).toString()); @@ -654,7 +661,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRulesIdEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("rules_id = ").append(column.getEscapedColumnName()).toString()); @@ -671,7 +677,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRulesIdNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("rules_id <> ").append(column.getEscapedColumnName()).toString()); @@ -688,7 +693,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRulesIdGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("rules_id > ").append(column.getEscapedColumnName()).toString()); @@ -705,7 +709,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRulesIdGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("rules_id >= ").append(column.getEscapedColumnName()).toString()); @@ -722,7 +725,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRulesIdLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("rules_id < ").append(column.getEscapedColumnName()).toString()); @@ -739,7 +741,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRulesIdLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("rules_id <= ").append(column.getEscapedColumnName()).toString()); @@ -786,7 +787,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -803,7 +803,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -820,7 +819,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -837,7 +835,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -854,7 +851,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -871,7 +867,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -918,7 +913,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCreatorUserIdEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("creator_user_id = ").append(column.getEscapedColumnName()).toString()); @@ -935,7 +929,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCreatorUserIdNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("creator_user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -952,7 +945,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCreatorUserIdGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("creator_user_id > ").append(column.getEscapedColumnName()).toString()); @@ -969,7 +961,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCreatorUserIdGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("creator_user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -986,7 +977,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCreatorUserIdLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("creator_user_id < ").append(column.getEscapedColumnName()).toString()); @@ -1003,7 +993,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCreatorUserIdLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("creator_user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -1050,7 +1039,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1067,7 +1055,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1084,7 +1071,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1101,7 +1087,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1118,7 +1103,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1135,7 +1119,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1182,7 +1165,6 @@ public class LitemallGrouponExample { * 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()); @@ -1199,7 +1181,6 @@ public class LitemallGrouponExample { * 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()); @@ -1216,7 +1197,6 @@ public class LitemallGrouponExample { * 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()); @@ -1233,7 +1213,6 @@ public class LitemallGrouponExample { * 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()); @@ -1250,7 +1229,6 @@ public class LitemallGrouponExample { * 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()); @@ -1267,7 +1245,6 @@ public class LitemallGrouponExample { * 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()); @@ -1314,7 +1291,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("share_url = ").append(column.getEscapedColumnName()).toString()); @@ -1331,7 +1307,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("share_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1348,7 +1323,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("share_url > ").append(column.getEscapedColumnName()).toString()); @@ -1365,7 +1339,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("share_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1382,7 +1355,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("share_url < ").append(column.getEscapedColumnName()).toString()); @@ -1399,7 +1371,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShareUrlLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("share_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1456,7 +1427,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayedEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("payed = ").append(column.getEscapedColumnName()).toString()); @@ -1473,7 +1443,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayedNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("payed <> ").append(column.getEscapedColumnName()).toString()); @@ -1490,7 +1459,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayedGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("payed > ").append(column.getEscapedColumnName()).toString()); @@ -1507,7 +1475,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayedGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("payed >= ").append(column.getEscapedColumnName()).toString()); @@ -1524,7 +1491,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayedLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("payed < ").append(column.getEscapedColumnName()).toString()); @@ -1541,7 +1507,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayedLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("payed <= ").append(column.getEscapedColumnName()).toString()); @@ -1588,7 +1553,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1605,7 +1569,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1622,7 +1585,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1639,7 +1601,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1656,7 +1617,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1673,7 +1633,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGroupon.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1713,7 +1672,6 @@ public class LitemallGrouponExample { * This field corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallGrouponExample example; @@ -1722,7 +1680,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallGrouponExample example) { super(); @@ -1734,7 +1691,6 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGrouponExample example() { return this.example; @@ -1745,8 +1701,8 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1759,26 +1715,46 @@ public class LitemallGrouponExample { * This method corresponds to the database table litemall_groupon * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallGroupon.IS_DELETED) : andDeletedNotEqualTo(LitemallGroupon.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_groupon + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGroupon.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallGroupon.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1875,4 +1851,24 @@ public class LitemallGrouponExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallGrouponExample example); + } } \ No newline at end of file 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 378d8eda..1e083003 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 @@ -11,18 +11,16 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -330,6 +328,16 @@ public class LitemallGrouponRules { this.expireTime = expireTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_groupon_rules.deleted @@ -366,6 +374,8 @@ public class LitemallGrouponRules { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", goodsId=").append(goodsId); sb.append(", goodsName=").append(goodsName); @@ -434,14 +444,71 @@ public class LitemallGrouponRules { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_groupon_rules + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -449,7 +516,6 @@ public class LitemallGrouponRules { * This enum corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -468,7 +534,6 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -477,7 +542,6 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -486,7 +550,6 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -495,7 +558,6 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -504,7 +566,6 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -513,7 +574,6 @@ public class LitemallGrouponRules { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -522,7 +582,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -533,7 +592,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -544,7 +602,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -555,7 +612,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -566,7 +622,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -580,7 +635,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -591,7 +645,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -602,7 +655,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -617,7 +669,6 @@ public class LitemallGrouponRules { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -626,5 +677,15 @@ public class LitemallGrouponRules { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 62835388..629a1f2f 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 @@ -117,7 +117,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGrouponRulesExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGrouponRulesExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallGrouponRulesExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public LitemallGrouponRulesExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public LitemallGrouponRulesExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_groupon_rules @@ -259,7 +284,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -276,7 +300,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -293,7 +316,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +332,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +348,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +364,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -391,7 +410,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -408,7 +426,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +442,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +458,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +474,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +490,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -523,7 +536,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_name = ").append(column.getEscapedColumnName()).toString()); @@ -540,7 +552,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_name <> ").append(column.getEscapedColumnName()).toString()); @@ -557,7 +568,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_name > ").append(column.getEscapedColumnName()).toString()); @@ -574,7 +584,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_name >= ").append(column.getEscapedColumnName()).toString()); @@ -591,7 +600,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_name < ").append(column.getEscapedColumnName()).toString()); @@ -608,7 +616,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("goods_name <= ").append(column.getEscapedColumnName()).toString()); @@ -665,7 +672,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -682,7 +688,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -699,7 +704,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -716,7 +720,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -733,7 +736,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -750,7 +752,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -807,7 +808,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount = ").append(column.getEscapedColumnName()).toString()); @@ -824,7 +824,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount <> ").append(column.getEscapedColumnName()).toString()); @@ -841,7 +840,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount > ").append(column.getEscapedColumnName()).toString()); @@ -858,7 +856,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount >= ").append(column.getEscapedColumnName()).toString()); @@ -875,7 +872,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount < ").append(column.getEscapedColumnName()).toString()); @@ -892,7 +888,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount <= ").append(column.getEscapedColumnName()).toString()); @@ -939,7 +934,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountMemberEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount_member = ").append(column.getEscapedColumnName()).toString()); @@ -956,7 +950,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountMemberNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount_member <> ").append(column.getEscapedColumnName()).toString()); @@ -973,7 +966,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountMemberGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount_member > ").append(column.getEscapedColumnName()).toString()); @@ -990,7 +982,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountMemberGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount_member >= ").append(column.getEscapedColumnName()).toString()); @@ -1007,7 +998,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountMemberLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount_member < ").append(column.getEscapedColumnName()).toString()); @@ -1024,7 +1014,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDiscountMemberLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("discount_member <= ").append(column.getEscapedColumnName()).toString()); @@ -1071,7 +1060,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1088,7 +1076,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1105,7 +1092,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1122,7 +1108,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1139,7 +1124,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1156,7 +1140,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1203,7 +1186,6 @@ public class LitemallGrouponRulesExample { * 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()); @@ -1220,7 +1202,6 @@ public class LitemallGrouponRulesExample { * 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()); @@ -1237,7 +1218,6 @@ public class LitemallGrouponRulesExample { * 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()); @@ -1254,7 +1234,6 @@ public class LitemallGrouponRulesExample { * 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()); @@ -1271,7 +1250,6 @@ public class LitemallGrouponRulesExample { * 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()); @@ -1288,7 +1266,6 @@ public class LitemallGrouponRulesExample { * 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()); @@ -1335,7 +1312,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("expire_time = ").append(column.getEscapedColumnName()).toString()); @@ -1352,7 +1328,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("expire_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1369,7 +1344,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("expire_time > ").append(column.getEscapedColumnName()).toString()); @@ -1386,7 +1360,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("expire_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1403,7 +1376,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("expire_time < ").append(column.getEscapedColumnName()).toString()); @@ -1420,7 +1392,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("expire_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1467,7 +1438,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1484,7 +1454,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1501,7 +1470,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1518,7 +1486,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1535,7 +1502,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1552,7 +1518,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallGrouponRules.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1592,7 +1557,6 @@ public class LitemallGrouponRulesExample { * This field corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallGrouponRulesExample example; @@ -1601,7 +1565,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallGrouponRulesExample example) { super(); @@ -1613,7 +1576,6 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallGrouponRulesExample example() { return this.example; @@ -1624,8 +1586,8 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1638,26 +1600,46 @@ public class LitemallGrouponRulesExample { * This method corresponds to the database table litemall_groupon_rules * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallGrouponRules.IS_DELETED) : andDeletedNotEqualTo(LitemallGrouponRules.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_groupon_rules + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGrouponRules.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallGrouponRules.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1754,4 +1736,24 @@ public class LitemallGrouponRulesExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_groupon_rules + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallGrouponRulesExample example); + } } \ No newline at end of file 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 49f4a081..03a69f1f 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 @@ -10,18 +10,16 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -197,6 +195,16 @@ public class LitemallIssue { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_issue.deleted @@ -233,6 +241,8 @@ public class LitemallIssue { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", question=").append(question); sb.append(", answer=").append(answer); @@ -289,14 +299,71 @@ public class LitemallIssue { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_issue + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_issue + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_issue + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -304,7 +371,6 @@ public class LitemallIssue { * This enum corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -319,7 +385,6 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -328,7 +393,6 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -337,7 +401,6 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -346,7 +409,6 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -355,7 +417,6 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -364,7 +425,6 @@ public class LitemallIssue { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -373,7 +433,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -384,7 +443,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -395,7 +453,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -406,7 +463,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -417,7 +473,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -431,7 +486,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -442,7 +496,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -453,7 +506,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -468,7 +520,6 @@ public class LitemallIssue { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -477,5 +528,15 @@ public class LitemallIssue { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 6a739ca5..c2a33ff4 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 @@ -116,7 +116,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallIssueExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallIssueExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallIssueExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public LitemallIssueExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public LitemallIssueExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_issue @@ -258,7 +283,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andQuestionEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("question = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andQuestionNotEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("question <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andQuestionGreaterThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("question > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andQuestionGreaterThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("question >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andQuestionLessThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("question < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andQuestionLessThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("question <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAnswerEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("answer = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAnswerNotEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("answer <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAnswerGreaterThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("answer > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAnswerGreaterThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("answer >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAnswerLessThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("answer < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAnswerLessThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("answer <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallIssueExample { * 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()); @@ -823,7 +823,6 @@ public class LitemallIssueExample { * 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()); @@ -840,7 +839,6 @@ public class LitemallIssueExample { * 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()); @@ -857,7 +855,6 @@ public class LitemallIssueExample { * 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()); @@ -874,7 +871,6 @@ public class LitemallIssueExample { * 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()); @@ -891,7 +887,6 @@ public class LitemallIssueExample { * 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()); @@ -938,7 +933,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -955,7 +949,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -972,7 +965,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -989,7 +981,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1006,7 +997,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1023,7 +1013,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallIssue.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1063,7 +1052,6 @@ public class LitemallIssueExample { * This field corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallIssueExample example; @@ -1072,7 +1060,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallIssueExample example) { super(); @@ -1084,7 +1071,6 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallIssueExample example() { return this.example; @@ -1095,8 +1081,8 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1109,26 +1095,46 @@ public class LitemallIssueExample { * This method corresponds to the database table litemall_issue * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallIssue.IS_DELETED) : andDeletedNotEqualTo(LitemallIssue.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_issue + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallIssue.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallIssue.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1225,4 +1231,24 @@ public class LitemallIssueExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallIssueExample example); + } } \ No newline at end of file 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 6c4a9e50..aa53ee80 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 @@ -10,18 +10,16 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -296,6 +294,16 @@ public class LitemallKeyword { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_keyword.deleted @@ -332,6 +340,8 @@ public class LitemallKeyword { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", keyword=").append(keyword); sb.append(", url=").append(url); @@ -397,14 +407,71 @@ public class LitemallKeyword { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_keyword + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -412,7 +479,6 @@ public class LitemallKeyword { * This enum corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -430,7 +496,6 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -439,7 +504,6 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -448,7 +512,6 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -457,7 +520,6 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -466,7 +528,6 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -475,7 +536,6 @@ public class LitemallKeyword { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -484,7 +544,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -495,7 +554,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -506,7 +564,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -517,7 +574,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -528,7 +584,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -542,7 +597,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -553,7 +607,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -564,7 +617,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -579,7 +631,6 @@ public class LitemallKeyword { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -588,5 +639,15 @@ public class LitemallKeyword { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 08ffe6b8..64fcc92a 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 @@ -116,7 +116,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallKeywordExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallKeywordExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallKeywordExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public LitemallKeywordExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public LitemallKeywordExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_keyword @@ -258,7 +283,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("keyword = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("keyword <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("keyword > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("keyword >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("keyword < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("keyword <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("url = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("url <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("url > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("url >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("url < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("url <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_hot = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_hot <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_hot > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_hot >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_hot < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsHotLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_hot <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_default = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_default <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_default > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_default >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_default < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsDefaultLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("is_default <= ").append(column.getEscapedColumnName()).toString()); @@ -938,7 +933,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("sort_order = ").append(column.getEscapedColumnName()).toString()); @@ -955,7 +949,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("sort_order <> ").append(column.getEscapedColumnName()).toString()); @@ -972,7 +965,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("sort_order > ").append(column.getEscapedColumnName()).toString()); @@ -989,7 +981,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("sort_order >= ").append(column.getEscapedColumnName()).toString()); @@ -1006,7 +997,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("sort_order < ").append(column.getEscapedColumnName()).toString()); @@ -1023,7 +1013,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("sort_order <= ").append(column.getEscapedColumnName()).toString()); @@ -1070,7 +1059,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1087,7 +1075,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1104,7 +1091,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1121,7 +1107,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1138,7 +1123,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1155,7 +1139,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1202,7 +1185,6 @@ public class LitemallKeywordExample { * 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()); @@ -1219,7 +1201,6 @@ public class LitemallKeywordExample { * 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()); @@ -1236,7 +1217,6 @@ public class LitemallKeywordExample { * 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()); @@ -1253,7 +1233,6 @@ public class LitemallKeywordExample { * 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()); @@ -1270,7 +1249,6 @@ public class LitemallKeywordExample { * 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()); @@ -1287,7 +1265,6 @@ public class LitemallKeywordExample { * 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()); @@ -1334,7 +1311,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1351,7 +1327,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1368,7 +1343,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1385,7 +1359,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1402,7 +1375,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1419,7 +1391,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallKeyword.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1459,7 +1430,6 @@ public class LitemallKeywordExample { * This field corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallKeywordExample example; @@ -1468,7 +1438,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallKeywordExample example) { super(); @@ -1480,7 +1449,6 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallKeywordExample example() { return this.example; @@ -1491,8 +1459,8 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1505,26 +1473,46 @@ public class LitemallKeywordExample { * This method corresponds to the database table litemall_keyword * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallKeyword.IS_DELETED) : andDeletedNotEqualTo(LitemallKeyword.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_keyword + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallKeyword.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallKeyword.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1621,4 +1609,24 @@ public class LitemallKeywordExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallKeywordExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLog.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLog.java index 6d714482..eaca17c6 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLog.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLog.java @@ -10,18 +10,16 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -362,6 +360,16 @@ public class LitemallLog { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_log.deleted @@ -398,6 +406,8 @@ public class LitemallLog { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", admin=").append(admin); sb.append(", ip=").append(ip); @@ -469,14 +479,71 @@ public class LitemallLog { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_log + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_log + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_log + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -484,7 +551,6 @@ public class LitemallLog { * This enum corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -504,7 +570,6 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -513,7 +578,6 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -522,7 +586,6 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -531,7 +594,6 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -540,7 +602,6 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -549,7 +610,6 @@ public class LitemallLog { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -558,7 +618,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -569,7 +628,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -580,7 +638,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -591,7 +648,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -602,7 +658,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -616,7 +671,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -627,7 +681,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -638,7 +691,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -653,7 +705,6 @@ public class LitemallLog { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -662,5 +713,15 @@ public class LitemallLog { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLogExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLogExample.java index f2250ba0..56cbf731 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLogExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallLogExample.java @@ -116,7 +116,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallLogExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallLogExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Criteria newAndCreateCriteria() { LitemallLogExample example = new LitemallLogExample(); return example.createCriteria(); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public LitemallLogExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public LitemallLogExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_log @@ -258,7 +283,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAdminEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`admin` = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAdminNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`admin` <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAdminGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`admin` > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAdminGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`admin` >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAdminLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`admin` < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAdminLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`admin` <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIpEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("ip = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIpNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("ip <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIpGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("ip > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIpGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("ip >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIpLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("ip < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIpLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("ip <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActionEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`action` = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActionNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`action` <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActionGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`action` > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActionGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`action` >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActionLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`action` < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActionLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`action` <= ").append(column.getEscapedColumnName()).toString()); @@ -948,7 +943,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`status` = ").append(column.getEscapedColumnName()).toString()); @@ -965,7 +959,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`status` <> ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +975,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`status` > ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +991,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`status` >= ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1007,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`status` < ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1023,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`status` <= ").append(column.getEscapedColumnName()).toString()); @@ -1080,7 +1069,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andResultEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`result` = ").append(column.getEscapedColumnName()).toString()); @@ -1097,7 +1085,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andResultNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`result` <> ").append(column.getEscapedColumnName()).toString()); @@ -1114,7 +1101,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andResultGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`result` > ").append(column.getEscapedColumnName()).toString()); @@ -1131,7 +1117,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andResultGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`result` >= ").append(column.getEscapedColumnName()).toString()); @@ -1148,7 +1133,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andResultLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`result` < ").append(column.getEscapedColumnName()).toString()); @@ -1165,7 +1149,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andResultLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`result` <= ").append(column.getEscapedColumnName()).toString()); @@ -1222,7 +1205,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCommentEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`comment` = ").append(column.getEscapedColumnName()).toString()); @@ -1239,7 +1221,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCommentNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`comment` <> ").append(column.getEscapedColumnName()).toString()); @@ -1256,7 +1237,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCommentGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`comment` > ").append(column.getEscapedColumnName()).toString()); @@ -1273,7 +1253,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCommentGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`comment` >= ").append(column.getEscapedColumnName()).toString()); @@ -1290,7 +1269,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCommentLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`comment` < ").append(column.getEscapedColumnName()).toString()); @@ -1307,7 +1285,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCommentLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("`comment` <= ").append(column.getEscapedColumnName()).toString()); @@ -1364,7 +1341,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1381,7 +1357,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1398,7 +1373,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1415,7 +1389,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1432,7 +1405,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1449,7 +1421,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1496,7 +1467,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString()); @@ -1513,7 +1483,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1530,7 +1499,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString()); @@ -1547,7 +1515,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1564,7 +1531,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString()); @@ -1581,7 +1547,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1628,7 +1593,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1645,7 +1609,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1662,7 +1625,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1679,7 +1641,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1696,7 +1657,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1713,7 +1673,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallLog.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1753,7 +1712,6 @@ public class LitemallLogExample { * This field corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallLogExample example; @@ -1762,7 +1720,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallLogExample example) { super(); @@ -1774,7 +1731,6 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallLogExample example() { return this.example; @@ -1785,8 +1741,8 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1799,26 +1755,46 @@ public class LitemallLogExample { * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallLog.IS_DELETED) : andDeletedNotEqualTo(LitemallLog.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_log + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallLog.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallLog.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_log * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Criteria add(Criteria add); } @@ -1915,4 +1891,24 @@ public class LitemallLogExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_log + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallLogExample example); + } } \ No newline at end of file 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 3cbfca15..a56e1813 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 @@ -11,18 +11,16 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -858,6 +856,16 @@ public class LitemallOrder { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_order.deleted @@ -894,6 +902,8 @@ public class LitemallOrder { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", orderSn=").append(orderSn); @@ -1010,14 +1020,71 @@ public class LitemallOrder { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_order + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_order + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_order + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -1025,7 +1092,6 @@ public class LitemallOrder { * This enum corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -1060,7 +1126,6 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -1069,7 +1134,6 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -1078,7 +1142,6 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -1087,7 +1150,6 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -1096,7 +1158,6 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -1105,7 +1166,6 @@ public class LitemallOrder { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -1114,7 +1174,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -1125,7 +1184,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -1136,7 +1194,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -1147,7 +1204,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -1158,7 +1214,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -1172,7 +1227,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -1183,7 +1237,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -1194,7 +1247,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -1209,7 +1261,6 @@ public class LitemallOrder { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -1218,5 +1269,15 @@ public class LitemallOrder { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 2350f146..9a163746 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 @@ -117,7 +117,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallOrderExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallOrderExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallOrderExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public LitemallOrderExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public LitemallOrderExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_order @@ -259,7 +284,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -276,7 +300,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -293,7 +316,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +332,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +348,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +364,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -391,7 +410,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -408,7 +426,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +442,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +458,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +474,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +490,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -523,7 +536,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderSnEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_sn = ").append(column.getEscapedColumnName()).toString()); @@ -540,7 +552,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderSnNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_sn <> ").append(column.getEscapedColumnName()).toString()); @@ -557,7 +568,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderSnGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_sn > ").append(column.getEscapedColumnName()).toString()); @@ -574,7 +584,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderSnGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_sn >= ").append(column.getEscapedColumnName()).toString()); @@ -591,7 +600,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderSnLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_sn < ").append(column.getEscapedColumnName()).toString()); @@ -608,7 +616,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderSnLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_sn <= ").append(column.getEscapedColumnName()).toString()); @@ -665,7 +672,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderStatusEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_status = ").append(column.getEscapedColumnName()).toString()); @@ -682,7 +688,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderStatusNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_status <> ").append(column.getEscapedColumnName()).toString()); @@ -699,7 +704,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderStatusGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_status > ").append(column.getEscapedColumnName()).toString()); @@ -716,7 +720,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderStatusGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_status >= ").append(column.getEscapedColumnName()).toString()); @@ -733,7 +736,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderStatusLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_status < ").append(column.getEscapedColumnName()).toString()); @@ -750,7 +752,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderStatusLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_status <= ").append(column.getEscapedColumnName()).toString()); @@ -797,7 +798,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConsigneeEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("consignee = ").append(column.getEscapedColumnName()).toString()); @@ -814,7 +814,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConsigneeNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("consignee <> ").append(column.getEscapedColumnName()).toString()); @@ -831,7 +830,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConsigneeGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("consignee > ").append(column.getEscapedColumnName()).toString()); @@ -848,7 +846,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConsigneeGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("consignee >= ").append(column.getEscapedColumnName()).toString()); @@ -865,7 +862,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConsigneeLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("consignee < ").append(column.getEscapedColumnName()).toString()); @@ -882,7 +878,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConsigneeLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("consignee <= ").append(column.getEscapedColumnName()).toString()); @@ -939,7 +934,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("mobile = ").append(column.getEscapedColumnName()).toString()); @@ -956,7 +950,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("mobile <> ").append(column.getEscapedColumnName()).toString()); @@ -973,7 +966,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("mobile > ").append(column.getEscapedColumnName()).toString()); @@ -990,7 +982,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("mobile >= ").append(column.getEscapedColumnName()).toString()); @@ -1007,7 +998,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("mobile < ").append(column.getEscapedColumnName()).toString()); @@ -1024,7 +1014,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("mobile <= ").append(column.getEscapedColumnName()).toString()); @@ -1081,7 +1070,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("address = ").append(column.getEscapedColumnName()).toString()); @@ -1098,7 +1086,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("address <> ").append(column.getEscapedColumnName()).toString()); @@ -1115,7 +1102,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("address > ").append(column.getEscapedColumnName()).toString()); @@ -1132,7 +1118,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("address >= ").append(column.getEscapedColumnName()).toString()); @@ -1149,7 +1134,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("address < ").append(column.getEscapedColumnName()).toString()); @@ -1166,7 +1150,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddressLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("address <= ").append(column.getEscapedColumnName()).toString()); @@ -1223,7 +1206,6 @@ public class LitemallOrderExample { * 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()); @@ -1240,7 +1222,6 @@ public class LitemallOrderExample { * 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()); @@ -1257,7 +1238,6 @@ public class LitemallOrderExample { * 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()); @@ -1274,7 +1254,6 @@ public class LitemallOrderExample { * 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()); @@ -1291,7 +1270,6 @@ public class LitemallOrderExample { * 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()); @@ -1308,7 +1286,6 @@ public class LitemallOrderExample { * 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()); @@ -1365,7 +1342,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("goods_price = ").append(column.getEscapedColumnName()).toString()); @@ -1382,7 +1358,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("goods_price <> ").append(column.getEscapedColumnName()).toString()); @@ -1399,7 +1374,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("goods_price > ").append(column.getEscapedColumnName()).toString()); @@ -1416,7 +1390,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("goods_price >= ").append(column.getEscapedColumnName()).toString()); @@ -1433,7 +1406,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("goods_price < ").append(column.getEscapedColumnName()).toString()); @@ -1450,7 +1422,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("goods_price <= ").append(column.getEscapedColumnName()).toString()); @@ -1497,7 +1468,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFreightPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("freight_price = ").append(column.getEscapedColumnName()).toString()); @@ -1514,7 +1484,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFreightPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("freight_price <> ").append(column.getEscapedColumnName()).toString()); @@ -1531,7 +1500,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFreightPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("freight_price > ").append(column.getEscapedColumnName()).toString()); @@ -1548,7 +1516,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFreightPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("freight_price >= ").append(column.getEscapedColumnName()).toString()); @@ -1565,7 +1532,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFreightPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("freight_price < ").append(column.getEscapedColumnName()).toString()); @@ -1582,7 +1548,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFreightPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("freight_price <= ").append(column.getEscapedColumnName()).toString()); @@ -1629,7 +1594,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("coupon_price = ").append(column.getEscapedColumnName()).toString()); @@ -1646,7 +1610,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("coupon_price <> ").append(column.getEscapedColumnName()).toString()); @@ -1663,7 +1626,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("coupon_price > ").append(column.getEscapedColumnName()).toString()); @@ -1680,7 +1642,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("coupon_price >= ").append(column.getEscapedColumnName()).toString()); @@ -1697,7 +1658,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("coupon_price < ").append(column.getEscapedColumnName()).toString()); @@ -1714,7 +1674,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCouponPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("coupon_price <= ").append(column.getEscapedColumnName()).toString()); @@ -1761,7 +1720,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIntegralPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("integral_price = ").append(column.getEscapedColumnName()).toString()); @@ -1778,7 +1736,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIntegralPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("integral_price <> ").append(column.getEscapedColumnName()).toString()); @@ -1795,7 +1752,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIntegralPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("integral_price > ").append(column.getEscapedColumnName()).toString()); @@ -1812,7 +1768,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIntegralPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("integral_price >= ").append(column.getEscapedColumnName()).toString()); @@ -1829,7 +1784,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIntegralPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("integral_price < ").append(column.getEscapedColumnName()).toString()); @@ -1846,7 +1800,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIntegralPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("integral_price <= ").append(column.getEscapedColumnName()).toString()); @@ -1893,7 +1846,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("groupon_price = ").append(column.getEscapedColumnName()).toString()); @@ -1910,7 +1862,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("groupon_price <> ").append(column.getEscapedColumnName()).toString()); @@ -1927,7 +1878,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("groupon_price > ").append(column.getEscapedColumnName()).toString()); @@ -1944,7 +1894,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("groupon_price >= ").append(column.getEscapedColumnName()).toString()); @@ -1961,7 +1910,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("groupon_price < ").append(column.getEscapedColumnName()).toString()); @@ -1978,7 +1926,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGrouponPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("groupon_price <= ").append(column.getEscapedColumnName()).toString()); @@ -2025,7 +1972,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_price = ").append(column.getEscapedColumnName()).toString()); @@ -2042,7 +1988,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_price <> ").append(column.getEscapedColumnName()).toString()); @@ -2059,7 +2004,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_price > ").append(column.getEscapedColumnName()).toString()); @@ -2076,7 +2020,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_price >= ").append(column.getEscapedColumnName()).toString()); @@ -2093,7 +2036,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_price < ").append(column.getEscapedColumnName()).toString()); @@ -2110,7 +2052,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("order_price <= ").append(column.getEscapedColumnName()).toString()); @@ -2157,7 +2098,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActualPriceEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("actual_price = ").append(column.getEscapedColumnName()).toString()); @@ -2174,7 +2114,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActualPriceNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("actual_price <> ").append(column.getEscapedColumnName()).toString()); @@ -2191,7 +2130,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActualPriceGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("actual_price > ").append(column.getEscapedColumnName()).toString()); @@ -2208,7 +2146,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActualPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("actual_price >= ").append(column.getEscapedColumnName()).toString()); @@ -2225,7 +2162,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActualPriceLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("actual_price < ").append(column.getEscapedColumnName()).toString()); @@ -2242,7 +2178,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andActualPriceLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("actual_price <= ").append(column.getEscapedColumnName()).toString()); @@ -2289,7 +2224,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayIdEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_id = ").append(column.getEscapedColumnName()).toString()); @@ -2306,7 +2240,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayIdNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_id <> ").append(column.getEscapedColumnName()).toString()); @@ -2323,7 +2256,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayIdGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_id > ").append(column.getEscapedColumnName()).toString()); @@ -2340,7 +2272,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayIdGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_id >= ").append(column.getEscapedColumnName()).toString()); @@ -2357,7 +2288,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayIdLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_id < ").append(column.getEscapedColumnName()).toString()); @@ -2374,7 +2304,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayIdLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_id <= ").append(column.getEscapedColumnName()).toString()); @@ -2431,7 +2360,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayTimeEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_time = ").append(column.getEscapedColumnName()).toString()); @@ -2448,7 +2376,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayTimeNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2465,7 +2392,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayTimeGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_time > ").append(column.getEscapedColumnName()).toString()); @@ -2482,7 +2408,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayTimeGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2499,7 +2424,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayTimeLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_time < ").append(column.getEscapedColumnName()).toString()); @@ -2516,7 +2440,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPayTimeLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("pay_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2563,7 +2486,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipSnEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_sn = ").append(column.getEscapedColumnName()).toString()); @@ -2580,7 +2502,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipSnNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_sn <> ").append(column.getEscapedColumnName()).toString()); @@ -2597,7 +2518,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipSnGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_sn > ").append(column.getEscapedColumnName()).toString()); @@ -2614,7 +2534,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipSnGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_sn >= ").append(column.getEscapedColumnName()).toString()); @@ -2631,7 +2550,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipSnLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_sn < ").append(column.getEscapedColumnName()).toString()); @@ -2648,7 +2566,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipSnLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_sn <= ").append(column.getEscapedColumnName()).toString()); @@ -2705,7 +2622,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipChannelEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_channel = ").append(column.getEscapedColumnName()).toString()); @@ -2722,7 +2638,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipChannelNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_channel <> ").append(column.getEscapedColumnName()).toString()); @@ -2739,7 +2654,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipChannelGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_channel > ").append(column.getEscapedColumnName()).toString()); @@ -2756,7 +2670,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipChannelGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_channel >= ").append(column.getEscapedColumnName()).toString()); @@ -2773,7 +2686,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipChannelLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_channel < ").append(column.getEscapedColumnName()).toString()); @@ -2790,7 +2702,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipChannelLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_channel <= ").append(column.getEscapedColumnName()).toString()); @@ -2847,7 +2758,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipTimeEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_time = ").append(column.getEscapedColumnName()).toString()); @@ -2864,7 +2774,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipTimeNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2881,7 +2790,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipTimeGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_time > ").append(column.getEscapedColumnName()).toString()); @@ -2898,7 +2806,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipTimeGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2915,7 +2822,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipTimeLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_time < ").append(column.getEscapedColumnName()).toString()); @@ -2932,7 +2838,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andShipTimeLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("ship_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2979,7 +2884,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConfirmTimeEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("confirm_time = ").append(column.getEscapedColumnName()).toString()); @@ -2996,7 +2900,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConfirmTimeNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("confirm_time <> ").append(column.getEscapedColumnName()).toString()); @@ -3013,7 +2916,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConfirmTimeGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("confirm_time > ").append(column.getEscapedColumnName()).toString()); @@ -3030,7 +2932,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConfirmTimeGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("confirm_time >= ").append(column.getEscapedColumnName()).toString()); @@ -3047,7 +2948,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConfirmTimeLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("confirm_time < ").append(column.getEscapedColumnName()).toString()); @@ -3064,7 +2964,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andConfirmTimeLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("confirm_time <= ").append(column.getEscapedColumnName()).toString()); @@ -3111,7 +3010,6 @@ public class LitemallOrderExample { * 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()); @@ -3128,7 +3026,6 @@ public class LitemallOrderExample { * 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()); @@ -3145,7 +3042,6 @@ public class LitemallOrderExample { * 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()); @@ -3162,7 +3058,6 @@ public class LitemallOrderExample { * 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()); @@ -3179,7 +3074,6 @@ public class LitemallOrderExample { * 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()); @@ -3196,7 +3090,6 @@ public class LitemallOrderExample { * 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()); @@ -3243,7 +3136,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("end_time = ").append(column.getEscapedColumnName()).toString()); @@ -3260,7 +3152,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("end_time <> ").append(column.getEscapedColumnName()).toString()); @@ -3277,7 +3168,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("end_time > ").append(column.getEscapedColumnName()).toString()); @@ -3294,7 +3184,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("end_time >= ").append(column.getEscapedColumnName()).toString()); @@ -3311,7 +3200,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("end_time < ").append(column.getEscapedColumnName()).toString()); @@ -3328,7 +3216,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEndTimeLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("end_time <= ").append(column.getEscapedColumnName()).toString()); @@ -3375,7 +3262,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -3392,7 +3278,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -3409,7 +3294,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -3426,7 +3310,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -3443,7 +3326,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -3460,7 +3342,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -3507,7 +3388,6 @@ public class LitemallOrderExample { * 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()); @@ -3524,7 +3404,6 @@ public class LitemallOrderExample { * 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()); @@ -3541,7 +3420,6 @@ public class LitemallOrderExample { * 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()); @@ -3558,7 +3436,6 @@ public class LitemallOrderExample { * 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()); @@ -3575,7 +3452,6 @@ public class LitemallOrderExample { * 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()); @@ -3592,7 +3468,6 @@ public class LitemallOrderExample { * 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()); @@ -3639,7 +3514,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -3656,7 +3530,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -3673,7 +3546,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -3690,7 +3562,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -3707,7 +3578,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -3724,7 +3594,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallOrder.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -3764,7 +3633,6 @@ public class LitemallOrderExample { * This field corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallOrderExample example; @@ -3773,7 +3641,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallOrderExample example) { super(); @@ -3785,7 +3652,6 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallOrderExample example() { return this.example; @@ -3796,8 +3662,8 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -3810,26 +3676,46 @@ public class LitemallOrderExample { * This method corresponds to the database table litemall_order * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallOrder.IS_DELETED) : andDeletedNotEqualTo(LitemallOrder.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_order + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallOrder.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallOrder.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -3926,4 +3812,24 @@ public class LitemallOrderExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallOrderExample example); + } } \ No newline at end of file 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 c909fb5b..8a996e6e 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 @@ -11,18 +11,16 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -462,6 +460,16 @@ public class LitemallOrderGoods { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_order_goods.deleted @@ -498,6 +506,8 @@ public class LitemallOrderGoods { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", orderId=").append(orderId); sb.append(", goodsId=").append(goodsId); @@ -578,14 +588,71 @@ public class LitemallOrderGoods { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_order_goods + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -593,7 +660,6 @@ public class LitemallOrderGoods { * This enum corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -616,7 +682,6 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -625,7 +690,6 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -634,7 +698,6 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -643,7 +706,6 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -652,7 +714,6 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -661,7 +722,6 @@ public class LitemallOrderGoods { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -670,7 +730,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -681,7 +740,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -692,7 +750,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -703,7 +760,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -714,7 +770,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -728,7 +783,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -739,7 +793,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -750,7 +803,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -765,7 +817,6 @@ public class LitemallOrderGoods { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -774,5 +825,15 @@ public class LitemallOrderGoods { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 d0093fd7..62982796 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 @@ -117,7 +117,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallOrderGoodsExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallOrderGoodsExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallOrderGoodsExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public LitemallOrderGoodsExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public LitemallOrderGoodsExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_order_goods @@ -293,7 +318,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +334,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +350,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +366,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -361,7 +382,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -378,7 +398,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +444,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("order_id = ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +460,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("order_id <> ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +476,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("order_id > ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +492,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("order_id >= ").append(column.getEscapedColumnName()).toString()); @@ -493,7 +508,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("order_id < ").append(column.getEscapedColumnName()).toString()); @@ -510,7 +524,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOrderIdLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("order_id <= ").append(column.getEscapedColumnName()).toString()); @@ -557,7 +570,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_id = ").append(column.getEscapedColumnName()).toString()); @@ -574,7 +586,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_id <> ").append(column.getEscapedColumnName()).toString()); @@ -591,7 +602,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_id > ").append(column.getEscapedColumnName()).toString()); @@ -608,7 +618,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_id >= ").append(column.getEscapedColumnName()).toString()); @@ -625,7 +634,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_id < ").append(column.getEscapedColumnName()).toString()); @@ -642,7 +650,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsIdLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_id <= ").append(column.getEscapedColumnName()).toString()); @@ -689,7 +696,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_name = ").append(column.getEscapedColumnName()).toString()); @@ -706,7 +712,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_name <> ").append(column.getEscapedColumnName()).toString()); @@ -723,7 +728,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_name > ").append(column.getEscapedColumnName()).toString()); @@ -740,7 +744,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_name >= ").append(column.getEscapedColumnName()).toString()); @@ -757,7 +760,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_name < ").append(column.getEscapedColumnName()).toString()); @@ -774,7 +776,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNameLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_name <= ").append(column.getEscapedColumnName()).toString()); @@ -831,7 +832,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_sn = ").append(column.getEscapedColumnName()).toString()); @@ -848,7 +848,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_sn <> ").append(column.getEscapedColumnName()).toString()); @@ -865,7 +864,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_sn > ").append(column.getEscapedColumnName()).toString()); @@ -882,7 +880,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_sn >= ").append(column.getEscapedColumnName()).toString()); @@ -899,7 +896,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_sn < ").append(column.getEscapedColumnName()).toString()); @@ -916,7 +912,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsSnLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("goods_sn <= ").append(column.getEscapedColumnName()).toString()); @@ -973,7 +968,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("product_id = ").append(column.getEscapedColumnName()).toString()); @@ -990,7 +984,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("product_id <> ").append(column.getEscapedColumnName()).toString()); @@ -1007,7 +1000,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("product_id > ").append(column.getEscapedColumnName()).toString()); @@ -1024,7 +1016,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("product_id >= ").append(column.getEscapedColumnName()).toString()); @@ -1041,7 +1032,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("product_id < ").append(column.getEscapedColumnName()).toString()); @@ -1058,7 +1048,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andProductIdLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("product_id <= ").append(column.getEscapedColumnName()).toString()); @@ -1105,7 +1094,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("`number` = ").append(column.getEscapedColumnName()).toString()); @@ -1122,7 +1110,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("`number` <> ").append(column.getEscapedColumnName()).toString()); @@ -1139,7 +1126,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("`number` > ").append(column.getEscapedColumnName()).toString()); @@ -1156,7 +1142,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("`number` >= ").append(column.getEscapedColumnName()).toString()); @@ -1173,7 +1158,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("`number` < ").append(column.getEscapedColumnName()).toString()); @@ -1190,7 +1174,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNumberLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("`number` <= ").append(column.getEscapedColumnName()).toString()); @@ -1237,7 +1220,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("price = ").append(column.getEscapedColumnName()).toString()); @@ -1254,7 +1236,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("price <> ").append(column.getEscapedColumnName()).toString()); @@ -1271,7 +1252,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("price > ").append(column.getEscapedColumnName()).toString()); @@ -1288,7 +1268,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("price >= ").append(column.getEscapedColumnName()).toString()); @@ -1305,7 +1284,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("price < ").append(column.getEscapedColumnName()).toString()); @@ -1322,7 +1300,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("price <= ").append(column.getEscapedColumnName()).toString()); @@ -1369,7 +1346,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("specifications = ").append(column.getEscapedColumnName()).toString()); @@ -1386,7 +1362,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("specifications <> ").append(column.getEscapedColumnName()).toString()); @@ -1403,7 +1378,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("specifications > ").append(column.getEscapedColumnName()).toString()); @@ -1420,7 +1394,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("specifications >= ").append(column.getEscapedColumnName()).toString()); @@ -1437,7 +1410,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("specifications < ").append(column.getEscapedColumnName()).toString()); @@ -1454,7 +1426,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSpecificationsLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("specifications <= ").append(column.getEscapedColumnName()).toString()); @@ -1511,7 +1482,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -1528,7 +1498,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1545,7 +1514,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -1562,7 +1530,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1579,7 +1546,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -1596,7 +1562,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1653,7 +1618,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1670,7 +1634,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1687,7 +1650,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1704,7 +1666,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1721,7 +1682,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1738,7 +1698,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1785,7 +1744,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1802,7 +1760,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1819,7 +1776,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1836,7 +1792,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1853,7 +1808,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1870,7 +1824,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1917,7 +1870,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1934,7 +1886,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1951,7 +1902,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1968,7 +1918,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -1985,7 +1934,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -2002,7 +1950,6 @@ public class LitemallOrderGoodsExample { * 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()); @@ -2049,7 +1996,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -2066,7 +2012,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -2083,7 +2028,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -2100,7 +2044,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -2117,7 +2060,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -2134,7 +2076,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallOrderGoods.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -2174,7 +2115,6 @@ public class LitemallOrderGoodsExample { * This field corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallOrderGoodsExample example; @@ -2183,7 +2123,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallOrderGoodsExample example) { super(); @@ -2195,7 +2134,6 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallOrderGoodsExample example() { return this.example; @@ -2206,8 +2144,8 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -2220,26 +2158,46 @@ public class LitemallOrderGoodsExample { * This method corresponds to the database table litemall_order_goods * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallOrderGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallOrderGoods.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_order_goods + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallOrderGoods.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallOrderGoods.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2336,4 +2294,24 @@ public class LitemallOrderGoodsExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallOrderGoodsExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermission.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermission.java index 1d2166ed..b478e176 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermission.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermission.java @@ -10,18 +10,16 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -197,6 +195,16 @@ public class LitemallPermission { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_permission.deleted @@ -233,6 +241,8 @@ public class LitemallPermission { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", roleId=").append(roleId); sb.append(", permission=").append(permission); @@ -289,14 +299,71 @@ public class LitemallPermission { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_permission + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_permission + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_permission + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -304,7 +371,6 @@ public class LitemallPermission { * This enum corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -319,7 +385,6 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -328,7 +393,6 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -337,7 +401,6 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -346,7 +409,6 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -355,7 +417,6 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -364,7 +425,6 @@ public class LitemallPermission { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -373,7 +433,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -384,7 +443,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -395,7 +453,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -406,7 +463,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -417,7 +473,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -431,7 +486,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -442,7 +496,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -453,7 +506,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -468,7 +520,6 @@ public class LitemallPermission { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -477,5 +528,15 @@ public class LitemallPermission { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermissionExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermissionExample.java index d1c5bcf0..2554ef94 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermissionExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallPermissionExample.java @@ -116,7 +116,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallPermissionExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallPermissionExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Criteria newAndCreateCriteria() { LitemallPermissionExample example = new LitemallPermissionExample(); return example.createCriteria(); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public LitemallPermissionExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public LitemallPermissionExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_permission @@ -258,7 +283,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("role_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdNotEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("role_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdGreaterThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("role_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdGreaterThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("role_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdLessThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("role_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andRoleIdLessThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("role_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPermissionEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("permission = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPermissionNotEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("permission <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPermissionGreaterThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("permission > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPermissionGreaterThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("permission >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPermissionLessThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("permission < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPermissionLessThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("permission <= ").append(column.getEscapedColumnName()).toString()); @@ -664,7 +671,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -681,7 +687,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +703,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +719,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +735,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +751,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -796,7 +797,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString()); @@ -813,7 +813,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeNotEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString()); @@ -830,7 +829,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString()); @@ -847,7 +845,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString()); @@ -864,7 +861,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString()); @@ -881,7 +877,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString()); @@ -928,7 +923,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -945,7 +939,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -962,7 +955,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -979,7 +971,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -996,7 +987,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1013,7 +1003,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallPermission.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1053,7 +1042,6 @@ public class LitemallPermissionExample { * This field corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallPermissionExample example; @@ -1062,7 +1050,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallPermissionExample example) { super(); @@ -1074,7 +1061,6 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallPermissionExample example() { return this.example; @@ -1085,8 +1071,8 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1099,26 +1085,46 @@ public class LitemallPermissionExample { * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallPermission.IS_DELETED) : andDeletedNotEqualTo(LitemallPermission.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_permission + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallPermission.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallPermission.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_permission * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Criteria add(Criteria add); } @@ -1215,4 +1221,24 @@ public class LitemallPermissionExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_permission + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallPermissionExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegion.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegion.java index 1b2f81fc..dca284ca 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegion.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegion.java @@ -238,7 +238,6 @@ public class LitemallRegion { * This enum corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -252,7 +251,6 @@ public class LitemallRegion { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -261,7 +259,6 @@ public class LitemallRegion { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -270,7 +267,6 @@ public class LitemallRegion { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -279,7 +275,6 @@ public class LitemallRegion { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -288,7 +283,6 @@ public class LitemallRegion { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -297,7 +291,6 @@ public class LitemallRegion { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -306,7 +299,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -317,7 +309,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -328,7 +319,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -339,7 +329,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -350,7 +339,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -364,7 +352,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -375,7 +362,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -386,7 +372,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -401,7 +386,6 @@ public class LitemallRegion { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -410,5 +394,15 @@ public class LitemallRegion { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 14ff7d19..aeca6b0c 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 @@ -115,7 +115,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallRegionExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -127,7 +126,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallRegionExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -183,13 +181,40 @@ public class LitemallRegionExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + public LitemallRegionExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + public LitemallRegionExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_region @@ -257,7 +282,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -274,7 +298,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -291,7 +314,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -308,7 +330,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -325,7 +346,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -342,7 +362,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -389,7 +408,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("pid = ").append(column.getEscapedColumnName()).toString()); @@ -406,7 +424,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidNotEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("pid <> ").append(column.getEscapedColumnName()).toString()); @@ -423,7 +440,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidGreaterThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("pid > ").append(column.getEscapedColumnName()).toString()); @@ -440,7 +456,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidGreaterThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("pid >= ").append(column.getEscapedColumnName()).toString()); @@ -457,7 +472,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidLessThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("pid < ").append(column.getEscapedColumnName()).toString()); @@ -474,7 +488,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPidLessThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("pid <= ").append(column.getEscapedColumnName()).toString()); @@ -521,7 +534,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -538,7 +550,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -555,7 +566,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -572,7 +582,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -589,7 +598,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -606,7 +614,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -663,7 +670,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString()); @@ -680,7 +686,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeNotEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString()); @@ -697,7 +702,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString()); @@ -714,7 +718,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString()); @@ -731,7 +734,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString()); @@ -748,7 +750,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString()); @@ -795,7 +796,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("code = ").append(column.getEscapedColumnName()).toString()); @@ -812,7 +812,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeNotEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("code <> ").append(column.getEscapedColumnName()).toString()); @@ -829,7 +828,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeGreaterThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("code > ").append(column.getEscapedColumnName()).toString()); @@ -846,7 +844,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeGreaterThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("code >= ").append(column.getEscapedColumnName()).toString()); @@ -863,7 +860,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeLessThanColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("code < ").append(column.getEscapedColumnName()).toString()); @@ -880,7 +876,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andCodeLessThanOrEqualToColumn(LitemallRegion.Column column) { addCriterion(new StringBuilder("code <= ").append(column.getEscapedColumnName()).toString()); @@ -920,7 +915,6 @@ public class LitemallRegionExample { * This field corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallRegionExample example; @@ -929,7 +923,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallRegionExample example) { super(); @@ -941,7 +934,6 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallRegionExample example() { return this.example; @@ -952,8 +944,8 @@ public class LitemallRegionExample { * This method corresponds to the database table litemall_region * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -962,19 +954,40 @@ public class LitemallRegionExample { } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_region + * 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 Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1071,4 +1084,24 @@ public class LitemallRegionExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallRegionExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRole.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRole.java index 1dccac01..4ac2769c 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRole.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRole.java @@ -10,18 +10,16 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -230,6 +228,16 @@ public class LitemallRole { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_role.deleted @@ -266,6 +274,8 @@ public class LitemallRole { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", desc=").append(desc); @@ -325,14 +335,71 @@ public class LitemallRole { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_role + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_role + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_role + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -340,7 +407,6 @@ public class LitemallRole { * This enum corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -356,7 +422,6 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -365,7 +430,6 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -374,7 +438,6 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -383,7 +446,6 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -392,7 +454,6 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -401,7 +462,6 @@ public class LitemallRole { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -410,7 +470,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -421,7 +480,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -432,7 +490,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -443,7 +500,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -454,7 +510,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -468,7 +523,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -479,7 +533,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -490,7 +543,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -505,7 +557,6 @@ public class LitemallRole { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -514,5 +565,15 @@ public class LitemallRole { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRoleExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRoleExample.java index c6f49d3a..33805d37 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRoleExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRoleExample.java @@ -116,7 +116,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallRoleExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallRoleExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Criteria newAndCreateCriteria() { LitemallRoleExample example = new LitemallRoleExample(); return example.createCriteria(); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public LitemallRoleExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public LitemallRoleExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_role @@ -258,7 +283,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`desc` = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`desc` <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`desc` > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`desc` >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`desc` < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDescLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("`desc` <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("enabled = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("enabled <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("enabled > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("enabled >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("enabled < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andEnabledLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("enabled <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -938,7 +933,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString()); @@ -955,7 +949,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString()); @@ -972,7 +965,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString()); @@ -989,7 +981,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1006,7 +997,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString()); @@ -1023,7 +1013,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1070,7 +1059,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1087,7 +1075,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1104,7 +1091,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1121,7 +1107,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1138,7 +1123,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1155,7 +1139,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallRole.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1195,7 +1178,6 @@ public class LitemallRoleExample { * This field corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallRoleExample example; @@ -1204,7 +1186,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallRoleExample example) { super(); @@ -1216,7 +1197,6 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallRoleExample example() { return this.example; @@ -1227,8 +1207,8 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1241,26 +1221,46 @@ public class LitemallRoleExample { * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallRole.IS_DELETED) : andDeletedNotEqualTo(LitemallRole.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_role + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallRole.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallRole.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_role * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Criteria add(Criteria add); } @@ -1357,4 +1357,24 @@ public class LitemallRoleExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_role + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallRoleExample example); + } } \ No newline at end of file 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 e1246c5c..c1d8463a 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 @@ -10,18 +10,16 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -230,6 +228,16 @@ public class LitemallSearchHistory { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_search_history.deleted @@ -266,6 +274,8 @@ public class LitemallSearchHistory { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", userId=").append(userId); sb.append(", keyword=").append(keyword); @@ -325,14 +335,71 @@ public class LitemallSearchHistory { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_search_history + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -340,7 +407,6 @@ public class LitemallSearchHistory { * This enum corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -356,7 +422,6 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -365,7 +430,6 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -374,7 +438,6 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -383,7 +446,6 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -392,7 +454,6 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -401,7 +462,6 @@ public class LitemallSearchHistory { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -410,7 +470,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -421,7 +480,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -432,7 +490,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -443,7 +500,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -454,7 +510,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -468,7 +523,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -479,7 +533,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -490,7 +543,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -505,7 +557,6 @@ public class LitemallSearchHistory { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -514,5 +565,15 @@ public class LitemallSearchHistory { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 5dda515d..a1c2ed85 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 @@ -116,7 +116,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallSearchHistoryExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallSearchHistoryExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallSearchHistoryExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public LitemallSearchHistoryExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public LitemallSearchHistoryExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_search_history @@ -258,7 +283,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdNotEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserIdLessThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString()); @@ -522,7 +535,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("keyword = ").append(column.getEscapedColumnName()).toString()); @@ -539,7 +551,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordNotEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("keyword <> ").append(column.getEscapedColumnName()).toString()); @@ -556,7 +567,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordGreaterThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("keyword > ").append(column.getEscapedColumnName()).toString()); @@ -573,7 +583,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("keyword >= ").append(column.getEscapedColumnName()).toString()); @@ -590,7 +599,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordLessThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("keyword < ").append(column.getEscapedColumnName()).toString()); @@ -607,7 +615,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeywordLessThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("keyword <= ").append(column.getEscapedColumnName()).toString()); @@ -664,7 +671,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFromEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("`from` = ").append(column.getEscapedColumnName()).toString()); @@ -681,7 +687,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFromNotEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("`from` <> ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +703,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFromGreaterThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("`from` > ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +719,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFromGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("`from` >= ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +735,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFromLessThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("`from` < ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +751,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFromLessThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("`from` <= ").append(column.getEscapedColumnName()).toString()); @@ -806,7 +807,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -823,7 +823,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -840,7 +839,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -857,7 +855,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -874,7 +871,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -891,7 +887,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -938,7 +933,6 @@ public class LitemallSearchHistoryExample { * 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()); @@ -955,7 +949,6 @@ public class LitemallSearchHistoryExample { * 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()); @@ -972,7 +965,6 @@ public class LitemallSearchHistoryExample { * 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()); @@ -989,7 +981,6 @@ public class LitemallSearchHistoryExample { * 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()); @@ -1006,7 +997,6 @@ public class LitemallSearchHistoryExample { * 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()); @@ -1023,7 +1013,6 @@ public class LitemallSearchHistoryExample { * 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()); @@ -1070,7 +1059,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1087,7 +1075,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1104,7 +1091,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1121,7 +1107,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1138,7 +1123,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1155,7 +1139,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallSearchHistory.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1195,7 +1178,6 @@ public class LitemallSearchHistoryExample { * This field corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallSearchHistoryExample example; @@ -1204,7 +1186,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallSearchHistoryExample example) { super(); @@ -1216,7 +1197,6 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallSearchHistoryExample example() { return this.example; @@ -1227,8 +1207,8 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1241,26 +1221,46 @@ public class LitemallSearchHistoryExample { * This method corresponds to the database table litemall_search_history * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallSearchHistory.IS_DELETED) : andDeletedNotEqualTo(LitemallSearchHistory.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_search_history + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallSearchHistory.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallSearchHistory.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1357,4 +1357,24 @@ public class LitemallSearchHistoryExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallSearchHistoryExample example); + } } \ No newline at end of file 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 57c3bff6..203affe2 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 @@ -10,18 +10,16 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -296,6 +294,16 @@ public class LitemallStorage { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_storage.deleted @@ -332,6 +340,8 @@ public class LitemallStorage { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", key=").append(key); sb.append(", name=").append(name); @@ -397,14 +407,71 @@ public class LitemallStorage { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_storage + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_storage + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_storage + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -412,7 +479,6 @@ public class LitemallStorage { * This enum corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -430,7 +496,6 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -439,7 +504,6 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -448,7 +512,6 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -457,7 +520,6 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -466,7 +528,6 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -475,7 +536,6 @@ public class LitemallStorage { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -484,7 +544,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -495,7 +554,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -506,7 +564,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -517,7 +574,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -528,7 +584,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -542,7 +597,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -553,7 +607,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -564,7 +617,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -579,7 +631,6 @@ public class LitemallStorage { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -588,5 +639,15 @@ public class LitemallStorage { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 53030dec..98dbb8bb 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 @@ -116,7 +116,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallStorageExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallStorageExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallStorageExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public LitemallStorageExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public LitemallStorageExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_storage @@ -258,7 +283,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`key` = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`key` <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`key` > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`key` >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`key` < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`key` <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNameLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString()); @@ -691,7 +697,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString()); @@ -708,7 +713,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString()); @@ -725,7 +729,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString()); @@ -742,7 +745,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString()); @@ -759,7 +761,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTypeLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString()); @@ -816,7 +817,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSizeEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`size` = ").append(column.getEscapedColumnName()).toString()); @@ -833,7 +833,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSizeNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`size` <> ").append(column.getEscapedColumnName()).toString()); @@ -850,7 +849,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSizeGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`size` > ").append(column.getEscapedColumnName()).toString()); @@ -867,7 +865,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSizeGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`size` >= ").append(column.getEscapedColumnName()).toString()); @@ -884,7 +881,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSizeLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`size` < ").append(column.getEscapedColumnName()).toString()); @@ -901,7 +897,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSizeLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("`size` <= ").append(column.getEscapedColumnName()).toString()); @@ -948,7 +943,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("url = ").append(column.getEscapedColumnName()).toString()); @@ -965,7 +959,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("url <> ").append(column.getEscapedColumnName()).toString()); @@ -982,7 +975,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("url > ").append(column.getEscapedColumnName()).toString()); @@ -999,7 +991,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("url >= ").append(column.getEscapedColumnName()).toString()); @@ -1016,7 +1007,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("url < ").append(column.getEscapedColumnName()).toString()); @@ -1033,7 +1023,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUrlLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("url <= ").append(column.getEscapedColumnName()).toString()); @@ -1090,7 +1079,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1107,7 +1095,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1124,7 +1111,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1141,7 +1127,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1158,7 +1143,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1175,7 +1159,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1222,7 +1205,6 @@ public class LitemallStorageExample { * 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()); @@ -1239,7 +1221,6 @@ public class LitemallStorageExample { * 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()); @@ -1256,7 +1237,6 @@ public class LitemallStorageExample { * 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()); @@ -1273,7 +1253,6 @@ public class LitemallStorageExample { * 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()); @@ -1290,7 +1269,6 @@ public class LitemallStorageExample { * 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()); @@ -1307,7 +1285,6 @@ public class LitemallStorageExample { * 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()); @@ -1354,7 +1331,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1371,7 +1347,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1388,7 +1363,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1405,7 +1379,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1422,7 +1395,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1439,7 +1411,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallStorage.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1479,7 +1450,6 @@ public class LitemallStorageExample { * This field corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallStorageExample example; @@ -1488,7 +1458,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallStorageExample example) { super(); @@ -1500,7 +1469,6 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallStorageExample example() { return this.example; @@ -1511,8 +1479,8 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1525,26 +1493,46 @@ public class LitemallStorageExample { * This method corresponds to the database table litemall_storage * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallStorage.IS_DELETED) : andDeletedNotEqualTo(LitemallStorage.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_storage + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallStorage.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallStorage.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1641,4 +1629,24 @@ public class LitemallStorageExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallStorageExample example); + } } \ No newline at end of file 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 3a7cb04a..047bc4ea 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 @@ -10,18 +10,16 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -197,6 +195,16 @@ public class LitemallSystem { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_system.deleted @@ -233,6 +241,8 @@ public class LitemallSystem { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", keyName=").append(keyName); sb.append(", keyValue=").append(keyValue); @@ -289,14 +299,71 @@ public class LitemallSystem { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_system + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_system + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_system + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -304,7 +371,6 @@ public class LitemallSystem { * This enum corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -319,7 +385,6 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -328,7 +393,6 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -337,7 +401,6 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -346,7 +409,6 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -355,7 +417,6 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -364,7 +425,6 @@ public class LitemallSystem { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -373,7 +433,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -384,7 +443,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -395,7 +453,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -406,7 +463,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -417,7 +473,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -431,7 +486,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -442,7 +496,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -453,7 +506,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -468,7 +520,6 @@ public class LitemallSystem { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -477,5 +528,15 @@ public class LitemallSystem { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 40e620aa..acf5a596 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 @@ -116,7 +116,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallSystemExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallSystemExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallSystemExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public LitemallSystemExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public LitemallSystemExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_system @@ -258,7 +283,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNameEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_name = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNameNotEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_name <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNameGreaterThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_name > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNameGreaterThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_name >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNameLessThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_name < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyNameLessThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_name <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyValueEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_value = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyValueNotEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_value <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyValueGreaterThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_value > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyValueGreaterThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_value >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyValueLessThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_value < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andKeyValueLessThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("key_value <= ").append(column.getEscapedColumnName()).toString()); @@ -674,7 +681,6 @@ public class LitemallSystemExample { * 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()); @@ -691,7 +697,6 @@ public class LitemallSystemExample { * 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()); @@ -708,7 +713,6 @@ public class LitemallSystemExample { * 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()); @@ -725,7 +729,6 @@ public class LitemallSystemExample { * 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()); @@ -742,7 +745,6 @@ public class LitemallSystemExample { * 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()); @@ -759,7 +761,6 @@ public class LitemallSystemExample { * 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()); @@ -806,7 +807,6 @@ public class LitemallSystemExample { * 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()); @@ -823,7 +823,6 @@ public class LitemallSystemExample { * 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()); @@ -840,7 +839,6 @@ public class LitemallSystemExample { * 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()); @@ -857,7 +855,6 @@ public class LitemallSystemExample { * 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()); @@ -874,7 +871,6 @@ public class LitemallSystemExample { * 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()); @@ -891,7 +887,6 @@ public class LitemallSystemExample { * 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()); @@ -938,7 +933,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -955,7 +949,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -972,7 +965,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -989,7 +981,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1006,7 +997,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1023,7 +1013,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallSystem.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1063,7 +1052,6 @@ public class LitemallSystemExample { * This field corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallSystemExample example; @@ -1072,7 +1060,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallSystemExample example) { super(); @@ -1084,7 +1071,6 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallSystemExample example() { return this.example; @@ -1095,8 +1081,8 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1109,26 +1095,46 @@ public class LitemallSystemExample { * This method corresponds to the database table litemall_system * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallSystem.IS_DELETED) : andDeletedNotEqualTo(LitemallSystem.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_system + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallSystem.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallSystem.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1225,4 +1231,24 @@ public class LitemallSystemExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_system + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallSystemExample example); + } } \ No newline at end of file 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 5b511ecb..9c763aba 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 @@ -11,18 +11,16 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -372,6 +370,16 @@ public class LitemallTopic { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_topic.deleted @@ -432,6 +440,8 @@ public class LitemallTopic { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", title=").append(title); sb.append(", subtitle=").append(subtitle); @@ -506,14 +516,71 @@ public class LitemallTopic { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_topic + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_topic + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_topic + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -521,7 +588,6 @@ public class LitemallTopic { * This enum corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -542,7 +608,6 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -551,7 +616,6 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -560,7 +624,6 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -569,7 +632,6 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -578,7 +640,6 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -587,7 +648,6 @@ public class LitemallTopic { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -596,7 +656,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -607,7 +666,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -618,7 +676,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -629,7 +686,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -640,7 +696,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -654,7 +709,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -665,7 +719,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -676,7 +729,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -691,7 +743,6 @@ public class LitemallTopic { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -700,5 +751,15 @@ public class LitemallTopic { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 22275fdd..9d4d848e 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 @@ -117,7 +117,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallTopicExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallTopicExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallTopicExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public LitemallTopicExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public LitemallTopicExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_topic @@ -293,7 +318,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +334,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +350,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +366,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -361,7 +382,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -378,7 +398,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +444,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTitleEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("title = ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +460,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTitleNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("title <> ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +476,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTitleGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("title > ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +492,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTitleGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("title >= ").append(column.getEscapedColumnName()).toString()); @@ -493,7 +508,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTitleLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("title < ").append(column.getEscapedColumnName()).toString()); @@ -510,7 +524,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andTitleLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("title <= ").append(column.getEscapedColumnName()).toString()); @@ -567,7 +580,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSubtitleEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("subtitle = ").append(column.getEscapedColumnName()).toString()); @@ -584,7 +596,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSubtitleNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("subtitle <> ").append(column.getEscapedColumnName()).toString()); @@ -601,7 +612,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSubtitleGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("subtitle > ").append(column.getEscapedColumnName()).toString()); @@ -618,7 +628,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSubtitleGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("subtitle >= ").append(column.getEscapedColumnName()).toString()); @@ -635,7 +644,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSubtitleLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("subtitle < ").append(column.getEscapedColumnName()).toString()); @@ -652,7 +660,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSubtitleLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("subtitle <= ").append(column.getEscapedColumnName()).toString()); @@ -709,7 +716,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("price = ").append(column.getEscapedColumnName()).toString()); @@ -726,7 +732,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("price <> ").append(column.getEscapedColumnName()).toString()); @@ -743,7 +748,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("price > ").append(column.getEscapedColumnName()).toString()); @@ -760,7 +764,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("price >= ").append(column.getEscapedColumnName()).toString()); @@ -777,7 +780,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("price < ").append(column.getEscapedColumnName()).toString()); @@ -794,7 +796,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPriceLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("price <= ").append(column.getEscapedColumnName()).toString()); @@ -841,7 +842,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andReadCountEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("read_count = ").append(column.getEscapedColumnName()).toString()); @@ -858,7 +858,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andReadCountNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("read_count <> ").append(column.getEscapedColumnName()).toString()); @@ -875,7 +874,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andReadCountGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("read_count > ").append(column.getEscapedColumnName()).toString()); @@ -892,7 +890,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andReadCountGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("read_count >= ").append(column.getEscapedColumnName()).toString()); @@ -909,7 +906,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andReadCountLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("read_count < ").append(column.getEscapedColumnName()).toString()); @@ -926,7 +922,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andReadCountLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("read_count <= ").append(column.getEscapedColumnName()).toString()); @@ -983,7 +978,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("pic_url = ").append(column.getEscapedColumnName()).toString()); @@ -1000,7 +994,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("pic_url <> ").append(column.getEscapedColumnName()).toString()); @@ -1017,7 +1010,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("pic_url > ").append(column.getEscapedColumnName()).toString()); @@ -1034,7 +1026,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("pic_url >= ").append(column.getEscapedColumnName()).toString()); @@ -1051,7 +1042,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("pic_url < ").append(column.getEscapedColumnName()).toString()); @@ -1068,7 +1058,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPicUrlLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("pic_url <= ").append(column.getEscapedColumnName()).toString()); @@ -1125,7 +1114,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("sort_order = ").append(column.getEscapedColumnName()).toString()); @@ -1142,7 +1130,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("sort_order <> ").append(column.getEscapedColumnName()).toString()); @@ -1159,7 +1146,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("sort_order > ").append(column.getEscapedColumnName()).toString()); @@ -1176,7 +1162,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("sort_order >= ").append(column.getEscapedColumnName()).toString()); @@ -1193,7 +1178,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("sort_order < ").append(column.getEscapedColumnName()).toString()); @@ -1210,7 +1194,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSortOrderLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("sort_order <= ").append(column.getEscapedColumnName()).toString()); @@ -1257,7 +1240,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("goods = ").append(column.getEscapedColumnName()).toString()); @@ -1274,7 +1256,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("goods <> ").append(column.getEscapedColumnName()).toString()); @@ -1291,7 +1272,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("goods > ").append(column.getEscapedColumnName()).toString()); @@ -1308,7 +1288,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("goods >= ").append(column.getEscapedColumnName()).toString()); @@ -1325,7 +1304,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("goods < ").append(column.getEscapedColumnName()).toString()); @@ -1342,7 +1320,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGoodsLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("goods <= ").append(column.getEscapedColumnName()).toString()); @@ -1399,7 +1376,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1416,7 +1392,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1433,7 +1408,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1450,7 +1424,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1467,7 +1440,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1484,7 +1456,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1531,7 +1502,6 @@ public class LitemallTopicExample { * 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()); @@ -1548,7 +1518,6 @@ public class LitemallTopicExample { * 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()); @@ -1565,7 +1534,6 @@ public class LitemallTopicExample { * 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()); @@ -1582,7 +1550,6 @@ public class LitemallTopicExample { * 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()); @@ -1599,7 +1566,6 @@ public class LitemallTopicExample { * 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()); @@ -1616,7 +1582,6 @@ public class LitemallTopicExample { * 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()); @@ -1663,7 +1628,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -1680,7 +1644,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -1697,7 +1660,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -1714,7 +1676,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -1731,7 +1692,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -1748,7 +1708,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallTopic.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -1788,7 +1747,6 @@ public class LitemallTopicExample { * This field corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallTopicExample example; @@ -1797,7 +1755,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallTopicExample example) { super(); @@ -1809,7 +1766,6 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallTopicExample example() { return this.example; @@ -1820,8 +1776,8 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1834,26 +1790,46 @@ public class LitemallTopicExample { * This method corresponds to the database table litemall_topic * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallTopic.IS_DELETED) : andDeletedNotEqualTo(LitemallTopic.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_topic + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallTopic.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallTopic.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1950,4 +1926,24 @@ public class LitemallTopicExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallTopicExample example); + } } \ No newline at end of file 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 6f7b3809..2da90579 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 @@ -11,18 +11,16 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean NOT_DELETED = false; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public static final Boolean IS_DELETED = true; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -561,6 +559,16 @@ public class LitemallUser { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_user.deleted @@ -597,6 +605,8 @@ public class LitemallUser { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", username=").append(username); sb.append(", password=").append(password); @@ -686,14 +696,71 @@ public class LitemallUser { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_user + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public void andLogicalDeleted(boolean deleted) { - setDeleted(deleted ? IS_DELETED : NOT_DELETED); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -701,7 +768,6 @@ public class LitemallUser { * This enum corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -727,7 +793,6 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -736,7 +801,6 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -745,7 +809,6 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -754,7 +817,6 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -763,7 +825,6 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -772,7 +833,6 @@ public class LitemallUser { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -781,7 +841,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -792,7 +851,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -803,7 +861,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -814,7 +871,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -825,7 +881,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -839,7 +894,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -850,7 +904,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -861,7 +914,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -876,7 +928,6 @@ public class LitemallUser { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -885,5 +936,15 @@ public class LitemallUser { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 bbf9c450..8976d291 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 @@ -117,7 +117,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallUserExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -129,7 +128,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallUserExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -185,13 +183,40 @@ public class LitemallUserExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public LitemallUserExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public LitemallUserExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_user @@ -259,7 +284,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -276,7 +300,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -293,7 +316,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -310,7 +332,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -327,7 +348,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -344,7 +364,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -391,7 +410,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("username = ").append(column.getEscapedColumnName()).toString()); @@ -408,7 +426,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("username <> ").append(column.getEscapedColumnName()).toString()); @@ -425,7 +442,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("username > ").append(column.getEscapedColumnName()).toString()); @@ -442,7 +458,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("username >= ").append(column.getEscapedColumnName()).toString()); @@ -459,7 +474,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("username < ").append(column.getEscapedColumnName()).toString()); @@ -476,7 +490,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUsernameLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("username <= ").append(column.getEscapedColumnName()).toString()); @@ -533,7 +546,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`password` = ").append(column.getEscapedColumnName()).toString()); @@ -550,7 +562,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`password` <> ").append(column.getEscapedColumnName()).toString()); @@ -567,7 +578,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`password` > ").append(column.getEscapedColumnName()).toString()); @@ -584,7 +594,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`password` >= ").append(column.getEscapedColumnName()).toString()); @@ -601,7 +610,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`password` < ").append(column.getEscapedColumnName()).toString()); @@ -618,7 +626,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andPasswordLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`password` <= ").append(column.getEscapedColumnName()).toString()); @@ -675,7 +682,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGenderEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("gender = ").append(column.getEscapedColumnName()).toString()); @@ -692,7 +698,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGenderNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("gender <> ").append(column.getEscapedColumnName()).toString()); @@ -709,7 +714,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGenderGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("gender > ").append(column.getEscapedColumnName()).toString()); @@ -726,7 +730,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGenderGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("gender >= ").append(column.getEscapedColumnName()).toString()); @@ -743,7 +746,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGenderLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("gender < ").append(column.getEscapedColumnName()).toString()); @@ -760,7 +762,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andGenderLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("gender <= ").append(column.getEscapedColumnName()).toString()); @@ -807,7 +808,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBirthdayEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("birthday = ").append(column.getEscapedColumnName()).toString()); @@ -824,7 +824,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBirthdayNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("birthday <> ").append(column.getEscapedColumnName()).toString()); @@ -841,7 +840,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBirthdayGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("birthday > ").append(column.getEscapedColumnName()).toString()); @@ -858,7 +856,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBirthdayGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("birthday >= ").append(column.getEscapedColumnName()).toString()); @@ -875,7 +872,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBirthdayLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("birthday < ").append(column.getEscapedColumnName()).toString()); @@ -892,7 +888,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andBirthdayLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("birthday <= ").append(column.getEscapedColumnName()).toString()); @@ -939,7 +934,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_time = ").append(column.getEscapedColumnName()).toString()); @@ -956,7 +950,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_time <> ").append(column.getEscapedColumnName()).toString()); @@ -973,7 +966,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_time > ").append(column.getEscapedColumnName()).toString()); @@ -990,7 +982,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1007,7 +998,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_time < ").append(column.getEscapedColumnName()).toString()); @@ -1024,7 +1014,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginTimeLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1071,7 +1060,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_ip = ").append(column.getEscapedColumnName()).toString()); @@ -1088,7 +1076,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_ip <> ").append(column.getEscapedColumnName()).toString()); @@ -1105,7 +1092,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_ip > ").append(column.getEscapedColumnName()).toString()); @@ -1122,7 +1108,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_ip >= ").append(column.getEscapedColumnName()).toString()); @@ -1139,7 +1124,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_ip < ").append(column.getEscapedColumnName()).toString()); @@ -1156,7 +1140,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andLastLoginIpLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("last_login_ip <= ").append(column.getEscapedColumnName()).toString()); @@ -1213,7 +1196,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserLevelEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("user_level = ").append(column.getEscapedColumnName()).toString()); @@ -1230,7 +1212,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserLevelNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("user_level <> ").append(column.getEscapedColumnName()).toString()); @@ -1247,7 +1228,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserLevelGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("user_level > ").append(column.getEscapedColumnName()).toString()); @@ -1264,7 +1244,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserLevelGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("user_level >= ").append(column.getEscapedColumnName()).toString()); @@ -1281,7 +1260,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserLevelLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("user_level < ").append(column.getEscapedColumnName()).toString()); @@ -1298,7 +1276,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUserLevelLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("user_level <= ").append(column.getEscapedColumnName()).toString()); @@ -1345,7 +1322,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNicknameEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("nickname = ").append(column.getEscapedColumnName()).toString()); @@ -1362,7 +1338,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNicknameNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("nickname <> ").append(column.getEscapedColumnName()).toString()); @@ -1379,7 +1354,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNicknameGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("nickname > ").append(column.getEscapedColumnName()).toString()); @@ -1396,7 +1370,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNicknameGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("nickname >= ").append(column.getEscapedColumnName()).toString()); @@ -1413,7 +1386,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNicknameLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("nickname < ").append(column.getEscapedColumnName()).toString()); @@ -1430,7 +1402,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andNicknameLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("nickname <= ").append(column.getEscapedColumnName()).toString()); @@ -1487,7 +1458,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("mobile = ").append(column.getEscapedColumnName()).toString()); @@ -1504,7 +1474,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("mobile <> ").append(column.getEscapedColumnName()).toString()); @@ -1521,7 +1490,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("mobile > ").append(column.getEscapedColumnName()).toString()); @@ -1538,7 +1506,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("mobile >= ").append(column.getEscapedColumnName()).toString()); @@ -1555,7 +1522,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("mobile < ").append(column.getEscapedColumnName()).toString()); @@ -1572,7 +1538,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andMobileLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("mobile <= ").append(column.getEscapedColumnName()).toString()); @@ -1629,7 +1594,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("avatar = ").append(column.getEscapedColumnName()).toString()); @@ -1646,7 +1610,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("avatar <> ").append(column.getEscapedColumnName()).toString()); @@ -1663,7 +1626,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("avatar > ").append(column.getEscapedColumnName()).toString()); @@ -1680,7 +1642,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("avatar >= ").append(column.getEscapedColumnName()).toString()); @@ -1697,7 +1658,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("avatar < ").append(column.getEscapedColumnName()).toString()); @@ -1714,7 +1674,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAvatarLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("avatar <= ").append(column.getEscapedColumnName()).toString()); @@ -1771,7 +1730,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andWeixinOpenidEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("weixin_openid = ").append(column.getEscapedColumnName()).toString()); @@ -1788,7 +1746,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andWeixinOpenidNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("weixin_openid <> ").append(column.getEscapedColumnName()).toString()); @@ -1805,7 +1762,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andWeixinOpenidGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("weixin_openid > ").append(column.getEscapedColumnName()).toString()); @@ -1822,7 +1778,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andWeixinOpenidGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("weixin_openid >= ").append(column.getEscapedColumnName()).toString()); @@ -1839,7 +1794,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andWeixinOpenidLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("weixin_openid < ").append(column.getEscapedColumnName()).toString()); @@ -1856,7 +1810,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andWeixinOpenidLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("weixin_openid <= ").append(column.getEscapedColumnName()).toString()); @@ -1913,7 +1866,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSessionKeyEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("session_key = ").append(column.getEscapedColumnName()).toString()); @@ -1930,7 +1882,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSessionKeyNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("session_key <> ").append(column.getEscapedColumnName()).toString()); @@ -1947,7 +1898,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSessionKeyGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("session_key > ").append(column.getEscapedColumnName()).toString()); @@ -1964,7 +1914,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSessionKeyGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("session_key >= ").append(column.getEscapedColumnName()).toString()); @@ -1981,7 +1930,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSessionKeyLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("session_key < ").append(column.getEscapedColumnName()).toString()); @@ -1998,7 +1946,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andSessionKeyLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("session_key <= ").append(column.getEscapedColumnName()).toString()); @@ -2055,7 +2002,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`status` = ").append(column.getEscapedColumnName()).toString()); @@ -2072,7 +2018,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`status` <> ").append(column.getEscapedColumnName()).toString()); @@ -2089,7 +2034,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`status` > ").append(column.getEscapedColumnName()).toString()); @@ -2106,7 +2050,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`status` >= ").append(column.getEscapedColumnName()).toString()); @@ -2123,7 +2066,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`status` < ").append(column.getEscapedColumnName()).toString()); @@ -2140,7 +2082,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andStatusLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("`status` <= ").append(column.getEscapedColumnName()).toString()); @@ -2187,7 +2128,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -2204,7 +2144,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -2221,7 +2160,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -2238,7 +2176,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -2255,7 +2192,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -2272,7 +2208,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -2319,7 +2254,6 @@ public class LitemallUserExample { * 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()); @@ -2336,7 +2270,6 @@ public class LitemallUserExample { * 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()); @@ -2353,7 +2286,6 @@ public class LitemallUserExample { * 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()); @@ -2370,7 +2302,6 @@ public class LitemallUserExample { * 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()); @@ -2387,7 +2318,6 @@ public class LitemallUserExample { * 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()); @@ -2404,7 +2334,6 @@ public class LitemallUserExample { * 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()); @@ -2451,7 +2380,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString()); @@ -2468,7 +2396,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedNotEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString()); @@ -2485,7 +2412,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString()); @@ -2502,7 +2428,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString()); @@ -2519,7 +2444,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString()); @@ -2536,7 +2460,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andDeletedLessThanOrEqualToColumn(LitemallUser.Column column) { addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString()); @@ -2576,7 +2499,6 @@ public class LitemallUserExample { * This field corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallUserExample example; @@ -2585,7 +2507,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallUserExample example) { super(); @@ -2597,7 +2518,6 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallUserExample example() { return this.example; @@ -2608,8 +2528,8 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -2622,26 +2542,46 @@ public class LitemallUserExample { * This method corresponds to the database table litemall_user * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ - public Criteria andLogicalDeleted(boolean deleted) { - return deleted ? andDeletedEqualTo(LitemallUser.IS_DELETED) : andDeletedNotEqualTo(LitemallUser.IS_DELETED); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_user + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallUser.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallUser.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -2738,4 +2678,24 @@ public class LitemallUserExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallUserExample example); + } } \ No newline at end of file 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 1d1d99a9..998b877e 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 @@ -10,18 +10,16 @@ public class LitemallUserFormid { * 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; + public static final Boolean IS_DELETED = Deleted.IS_DELETED.value(); /** * 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; + public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value(); /** * @@ -296,6 +294,16 @@ public class LitemallUserFormid { this.updateTime = updateTime; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value()); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_user_formid.deleted @@ -332,6 +340,8 @@ public class LitemallUserFormid { sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); + sb.append(", IS_DELETED=").append(IS_DELETED); + sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", formid=").append(formid); sb.append(", isprepay=").append(isprepay); @@ -397,14 +407,71 @@ public class LitemallUserFormid { } /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_user_formid + * This enum was generated by MyBatis Generator. + * This enum 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); + public enum Deleted { + NOT_DELETED(new Boolean("0"), "未删除"), + IS_DELETED(new Boolean("1"), "已删除"); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + private final Boolean value; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + private final String name; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + Deleted(Boolean value, String name) { + this.value = value; + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public Boolean getValue() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public Boolean value() { + return this.value; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public String getName() { + return this.name; + } } /** @@ -412,7 +479,6 @@ public class LitemallUserFormid { * This enum corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), @@ -430,7 +496,6 @@ public class LitemallUserFormid { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; @@ -439,7 +504,6 @@ public class LitemallUserFormid { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; @@ -448,7 +512,6 @@ public class LitemallUserFormid { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; @@ -457,7 +520,6 @@ public class LitemallUserFormid { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; @@ -466,7 +528,6 @@ public class LitemallUserFormid { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; @@ -475,7 +536,6 @@ public class LitemallUserFormid { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; @@ -484,7 +544,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; @@ -495,7 +554,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; @@ -506,7 +564,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; @@ -517,7 +574,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; @@ -528,7 +584,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; @@ -542,7 +597,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; @@ -553,7 +607,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; @@ -564,7 +617,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); @@ -579,7 +631,6 @@ public class LitemallUserFormid { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { @@ -588,5 +639,15 @@ public class LitemallUserFormid { return this.column; } } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public String getAliasedEscapedColumnName() { + return this.getEscapedColumnName(); + } } } \ No newline at end of file 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 5ed0d160..145feed1 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 @@ -116,7 +116,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallUserFormidExample orderBy(String orderByClause) { this.setOrderByClause(orderByClause); @@ -128,7 +127,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallUserFormidExample orderBy(String ... orderByClauses) { StringBuffer sb = new StringBuffer(); @@ -184,13 +182,40 @@ public class LitemallUserFormidExample { * 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 method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public LitemallUserFormidExample when(boolean condition, IExampleWhen then) { + if (condition) { + then.example(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public LitemallUserFormidExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) { + if (condition) { + then.example(this); + } else { + otherwise.example(this); + } + return this; + } + /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_user_formid @@ -258,7 +283,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString()); @@ -275,7 +299,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString()); @@ -292,7 +315,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString()); @@ -309,7 +331,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString()); @@ -326,7 +347,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString()); @@ -343,7 +363,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIdLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString()); @@ -390,7 +409,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFormidEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("formId = ").append(column.getEscapedColumnName()).toString()); @@ -407,7 +425,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFormidNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("formId <> ").append(column.getEscapedColumnName()).toString()); @@ -424,7 +441,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFormidGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("formId > ").append(column.getEscapedColumnName()).toString()); @@ -441,7 +457,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFormidGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("formId >= ").append(column.getEscapedColumnName()).toString()); @@ -458,7 +473,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFormidLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("formId < ").append(column.getEscapedColumnName()).toString()); @@ -475,7 +489,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andFormidLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("formId <= ").append(column.getEscapedColumnName()).toString()); @@ -532,7 +545,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsprepayEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("isprepay = ").append(column.getEscapedColumnName()).toString()); @@ -549,7 +561,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsprepayNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("isprepay <> ").append(column.getEscapedColumnName()).toString()); @@ -566,7 +577,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsprepayGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("isprepay > ").append(column.getEscapedColumnName()).toString()); @@ -583,7 +593,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsprepayGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("isprepay >= ").append(column.getEscapedColumnName()).toString()); @@ -600,7 +609,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsprepayLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("isprepay < ").append(column.getEscapedColumnName()).toString()); @@ -617,7 +625,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andIsprepayLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("isprepay <= ").append(column.getEscapedColumnName()).toString()); @@ -664,7 +671,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUseamountEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("useAmount = ").append(column.getEscapedColumnName()).toString()); @@ -681,7 +687,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUseamountNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("useAmount <> ").append(column.getEscapedColumnName()).toString()); @@ -698,7 +703,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUseamountGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("useAmount > ").append(column.getEscapedColumnName()).toString()); @@ -715,7 +719,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUseamountGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("useAmount >= ").append(column.getEscapedColumnName()).toString()); @@ -732,7 +735,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUseamountLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("useAmount < ").append(column.getEscapedColumnName()).toString()); @@ -749,7 +751,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andUseamountLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("useAmount <= ").append(column.getEscapedColumnName()).toString()); @@ -796,7 +797,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("expire_time = ").append(column.getEscapedColumnName()).toString()); @@ -813,7 +813,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("expire_time <> ").append(column.getEscapedColumnName()).toString()); @@ -830,7 +829,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("expire_time > ").append(column.getEscapedColumnName()).toString()); @@ -847,7 +845,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("expire_time >= ").append(column.getEscapedColumnName()).toString()); @@ -864,7 +861,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("expire_time < ").append(column.getEscapedColumnName()).toString()); @@ -881,7 +877,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andExpireTimeLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("expire_time <= ").append(column.getEscapedColumnName()).toString()); @@ -928,7 +923,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOpenidEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("openId = ").append(column.getEscapedColumnName()).toString()); @@ -945,7 +939,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOpenidNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("openId <> ").append(column.getEscapedColumnName()).toString()); @@ -962,7 +955,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOpenidGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("openId > ").append(column.getEscapedColumnName()).toString()); @@ -979,7 +971,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOpenidGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("openId >= ").append(column.getEscapedColumnName()).toString()); @@ -996,7 +987,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOpenidLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("openId < ").append(column.getEscapedColumnName()).toString()); @@ -1013,7 +1003,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andOpenidLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("openId <= ").append(column.getEscapedColumnName()).toString()); @@ -1070,7 +1059,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString()); @@ -1087,7 +1075,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeNotEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString()); @@ -1104,7 +1091,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString()); @@ -1121,7 +1107,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString()); @@ -1138,7 +1123,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString()); @@ -1155,7 +1139,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallUserFormid.Column column) { addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString()); @@ -1202,7 +1185,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1219,7 +1201,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1236,7 +1217,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1253,7 +1233,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1270,7 +1249,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1287,7 +1265,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1334,7 +1311,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1351,7 +1327,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1368,7 +1343,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1385,7 +1359,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1402,7 +1375,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1419,7 +1391,6 @@ public class LitemallUserFormidExample { * 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()); @@ -1459,7 +1430,6 @@ public class LitemallUserFormidExample { * This field corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ private LitemallUserFormidExample example; @@ -1468,7 +1438,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ protected Criteria(LitemallUserFormidExample example) { super(); @@ -1480,7 +1449,6 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ public LitemallUserFormidExample example() { return this.example; @@ -1491,8 +1459,8 @@ public class LitemallUserFormidExample { * This method corresponds to the database table litemall_user_formid * * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin */ + @Deprecated public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { if (ifAdd) { add.add(this); @@ -1505,26 +1473,46 @@ public class LitemallUserFormidExample { * 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); + public Criteria when(boolean condition, ICriteriaWhen then) { + if (condition) { + then.criteria(this); + } + return this; } /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_user_formid + * 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 when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) { + if (condition) { + then.criteria(this); + } else { + otherwise.criteria(this); + } + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallUserFormid.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallUserFormid.Deleted.IS_DELETED.value()); + } + + @Deprecated public interface ICriteriaAdd { /** * 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 */ Criteria add(Criteria add); } @@ -1621,4 +1609,24 @@ public class LitemallUserFormidExample { this(condition, value, secondValue, null); } } + + public interface ICriteriaWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + void criteria(Criteria criteria); + } + + public interface IExampleWhen { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_formid + * + * @mbg.generated + */ + void example(org.linlinjava.litemall.db.domain.LitemallUserFormidExample example); + } } \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdMapper.xml index edd1fea7..97fa36e6 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdMapper.xml @@ -115,7 +115,6 @@ select @@ -124,12 +123,11 @@ - ${column.escapedColumnName} + ${column.aliasedEscapedColumnName} - id, `name`, link, url, `position`, content, start_time, end_time, enabled, add_time, - update_time, deleted + from litemall_ad @@ -151,11 +149,6 @@ where id = #{id,jdbcType=INTEGER}