diff --git a/litemall-db/mybatis-generator/generatorConfig.xml b/litemall-db/mybatis-generator/generatorConfig.xml index c535ecc8..49390e4b 100644 --- a/litemall-db/mybatis-generator/generatorConfig.xml +++ b/litemall-db/mybatis-generator/generatorConfig.xml @@ -25,6 +25,18 @@ + + + + + + + + + + + + diff --git a/litemall-db/pom.xml b/litemall-db/pom.xml index cf29ad2e..1b1b63b8 100644 --- a/litemall-db/pom.xml +++ b/litemall-db/pom.xml @@ -62,7 +62,7 @@ com.itfsw mybatis-generator-plugin - 1.1.2 + 1.2.3 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 f11c4c62..184f60b3 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdMapper.java @@ -51,8 +51,18 @@ public interface LitemallAdMapper { * This method corresponds to the database table litemall_ad * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallAdExample example); + LitemallAd selectOneByExample(LitemallAdExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallAd selectOneByExampleSelective(@Param("example") LitemallAdExample example, @Param("selective") LitemallAd.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallAdMapper { * * @mbg.generated */ - LitemallAd selectByPrimaryKey(Integer id); + List selectByExample(LitemallAdExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallAdMapper { */ LitemallAd selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallAd.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + */ + LitemallAd selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallAd selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_ad @@ -119,7 +146,7 @@ public interface LitemallAdMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallAd selectOneByExample(LitemallAdExample example); + int logicalDeleteByExample(@Param("example") LitemallAdExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallAdMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallAd selectOneByExampleSelective(@Param("example") LitemallAdExample example, @Param("selective") LitemallAd.Column ... selective); + 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 cb141d49..0c89add9 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAddressMapper.java @@ -51,8 +51,18 @@ public interface LitemallAddressMapper { * This method corresponds to the database table litemall_address * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallAddressExample example); + LitemallAddress selectOneByExample(LitemallAddressExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallAddress selectOneByExampleSelective(@Param("example") LitemallAddressExample example, @Param("selective") LitemallAddress.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallAddressMapper { * * @mbg.generated */ - LitemallAddress selectByPrimaryKey(Integer id); + List selectByExample(LitemallAddressExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallAddressMapper { */ LitemallAddress selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallAddress.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + */ + LitemallAddress selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallAddress selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address @@ -119,7 +146,7 @@ public interface LitemallAddressMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallAddress selectOneByExample(LitemallAddressExample example); + int logicalDeleteByExample(@Param("example") LitemallAddressExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallAddressMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallAddress selectOneByExampleSelective(@Param("example") LitemallAddressExample example, @Param("selective") LitemallAddress.Column ... selective); + 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 3753ea88..296be640 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallAdminMapper.java @@ -51,8 +51,18 @@ public interface LitemallAdminMapper { * This method corresponds to the database table litemall_admin * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallAdminExample example); + LitemallAdmin selectOneByExample(LitemallAdminExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallAdmin selectOneByExampleSelective(@Param("example") LitemallAdminExample example, @Param("selective") LitemallAdmin.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallAdminMapper { * * @mbg.generated */ - LitemallAdmin selectByPrimaryKey(Integer id); + List selectByExample(LitemallAdminExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallAdminMapper { */ LitemallAdmin selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallAdmin.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + */ + LitemallAdmin selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallAdmin selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_admin @@ -119,7 +146,7 @@ public interface LitemallAdminMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallAdmin selectOneByExample(LitemallAdminExample example); + int logicalDeleteByExample(@Param("example") LitemallAdminExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallAdminMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallAdmin selectOneByExampleSelective(@Param("example") LitemallAdminExample example, @Param("selective") LitemallAdmin.Column ... selective); + 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 c7e58004..b21ddd4f 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallBrandMapper.java @@ -51,8 +51,18 @@ public interface LitemallBrandMapper { * This method corresponds to the database table litemall_brand * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallBrandExample example); + LitemallBrand selectOneByExample(LitemallBrandExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallBrand selectOneByExampleSelective(@Param("example") LitemallBrandExample example, @Param("selective") LitemallBrand.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallBrandMapper { * * @mbg.generated */ - LitemallBrand selectByPrimaryKey(Integer id); + List selectByExample(LitemallBrandExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallBrandMapper { */ LitemallBrand selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallBrand.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + */ + LitemallBrand selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallBrand selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_brand @@ -119,7 +146,7 @@ public interface LitemallBrandMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallBrand selectOneByExample(LitemallBrandExample example); + int logicalDeleteByExample(@Param("example") LitemallBrandExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallBrandMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallBrand selectOneByExampleSelective(@Param("example") LitemallBrandExample example, @Param("selective") LitemallBrand.Column ... selective); + 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 42418cfa..451d20fa 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCartMapper.java @@ -51,8 +51,18 @@ public interface LitemallCartMapper { * This method corresponds to the database table litemall_cart * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallCartExample example); + LitemallCart selectOneByExample(LitemallCartExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallCart selectOneByExampleSelective(@Param("example") LitemallCartExample example, @Param("selective") LitemallCart.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallCartMapper { * * @mbg.generated */ - LitemallCart selectByPrimaryKey(Integer id); + List selectByExample(LitemallCartExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallCartMapper { */ LitemallCart selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCart.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + */ + LitemallCart selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallCart selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_cart @@ -119,7 +146,7 @@ public interface LitemallCartMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCart selectOneByExample(LitemallCartExample example); + int logicalDeleteByExample(@Param("example") LitemallCartExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallCartMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCart selectOneByExampleSelective(@Param("example") LitemallCartExample example, @Param("selective") LitemallCart.Column ... selective); + 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 e87228fa..0c2c15f6 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.java @@ -51,8 +51,18 @@ public interface LitemallCategoryMapper { * This method corresponds to the database table litemall_category * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallCategoryExample example); + LitemallCategory selectOneByExample(LitemallCategoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallCategory selectOneByExampleSelective(@Param("example") LitemallCategoryExample example, @Param("selective") LitemallCategory.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallCategoryMapper { * * @mbg.generated */ - LitemallCategory selectByPrimaryKey(Integer id); + List selectByExample(LitemallCategoryExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallCategoryMapper { */ LitemallCategory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCategory.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + */ + LitemallCategory selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallCategory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_category @@ -119,7 +146,7 @@ public interface LitemallCategoryMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCategory selectOneByExample(LitemallCategoryExample example); + int logicalDeleteByExample(@Param("example") LitemallCategoryExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallCategoryMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCategory selectOneByExampleSelective(@Param("example") LitemallCategoryExample example, @Param("selective") LitemallCategory.Column ... selective); + 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 0a608ce1..1056e055 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCollectMapper.java @@ -51,8 +51,18 @@ public interface LitemallCollectMapper { * This method corresponds to the database table litemall_collect * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallCollectExample example); + LitemallCollect selectOneByExample(LitemallCollectExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallCollect selectOneByExampleSelective(@Param("example") LitemallCollectExample example, @Param("selective") LitemallCollect.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallCollectMapper { * * @mbg.generated */ - LitemallCollect selectByPrimaryKey(Integer id); + List selectByExample(LitemallCollectExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallCollectMapper { */ LitemallCollect selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCollect.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + */ + LitemallCollect selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallCollect selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_collect @@ -119,7 +146,7 @@ public interface LitemallCollectMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCollect selectOneByExample(LitemallCollectExample example); + int logicalDeleteByExample(@Param("example") LitemallCollectExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallCollectMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCollect selectOneByExampleSelective(@Param("example") LitemallCollectExample example, @Param("selective") LitemallCollect.Column ... selective); + 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 037c2710..3bdafcd1 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallCommentMapper.java @@ -51,8 +51,18 @@ public interface LitemallCommentMapper { * This method corresponds to the database table litemall_comment * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallCommentExample example); + LitemallComment selectOneByExample(LitemallCommentExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallComment selectOneByExampleSelective(@Param("example") LitemallCommentExample example, @Param("selective") LitemallComment.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallCommentMapper { * * @mbg.generated */ - LitemallComment selectByPrimaryKey(Integer id); + List selectByExample(LitemallCommentExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallCommentMapper { */ LitemallComment selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallComment.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + */ + LitemallComment selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallComment selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_comment @@ -119,7 +146,7 @@ public interface LitemallCommentMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallComment selectOneByExample(LitemallCommentExample example); + int logicalDeleteByExample(@Param("example") LitemallCommentExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallCommentMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallComment selectOneByExampleSelective(@Param("example") LitemallCommentExample example, @Param("selective") LitemallComment.Column ... selective); + 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 adc596a3..83785c6f 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,8 +51,18 @@ public interface LitemallCouponMapper { * This method corresponds to the database table litemall_coupon * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallCouponExample example); + LitemallCoupon selectOneByExample(LitemallCouponExample example); + + /** + * 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 + */ + LitemallCoupon selectOneByExampleSelective(@Param("example") LitemallCouponExample example, @Param("selective") LitemallCoupon.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallCouponMapper { * * @mbg.generated */ - LitemallCoupon selectByPrimaryKey(Integer id); + List selectByExample(LitemallCouponExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallCouponMapper { */ LitemallCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCoupon.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + */ + LitemallCoupon selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_coupon @@ -119,7 +146,7 @@ public interface LitemallCouponMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCoupon selectOneByExample(LitemallCouponExample example); + int logicalDeleteByExample(@Param("example") LitemallCouponExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallCouponMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallCoupon selectOneByExampleSelective(@Param("example") LitemallCouponExample example, @Param("selective") LitemallCoupon.Column ... selective); + 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 dd321244..98464094 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.java @@ -51,8 +51,18 @@ public interface LitemallFootprintMapper { * This method corresponds to the database table litemall_footprint * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallFootprintExample example); + LitemallFootprint selectOneByExample(LitemallFootprintExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallFootprint selectOneByExampleSelective(@Param("example") LitemallFootprintExample example, @Param("selective") LitemallFootprint.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallFootprintMapper { * * @mbg.generated */ - LitemallFootprint selectByPrimaryKey(Integer id); + List selectByExample(LitemallFootprintExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallFootprintMapper { */ LitemallFootprint selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallFootprint.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + */ + LitemallFootprint selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallFootprint selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_footprint @@ -119,7 +146,7 @@ public interface LitemallFootprintMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallFootprint selectOneByExample(LitemallFootprintExample example); + int logicalDeleteByExample(@Param("example") LitemallFootprintExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallFootprintMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallFootprint selectOneByExampleSelective(@Param("example") LitemallFootprintExample example, @Param("selective") LitemallFootprint.Column ... selective); + 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 bb543862..a6b5d2ed 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.java @@ -51,8 +51,18 @@ public interface LitemallGoodsAttributeMapper { * This method corresponds to the database table litemall_goods_attribute * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallGoodsAttributeExample example); + LitemallGoodsAttribute selectOneByExample(LitemallGoodsAttributeExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallGoodsAttribute selectOneByExampleSelective(@Param("example") LitemallGoodsAttributeExample example, @Param("selective") LitemallGoodsAttribute.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallGoodsAttributeMapper { * * @mbg.generated */ - LitemallGoodsAttribute selectByPrimaryKey(Integer id); + List selectByExample(LitemallGoodsAttributeExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallGoodsAttributeMapper { */ LitemallGoodsAttribute selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoodsAttribute.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + */ + LitemallGoodsAttribute selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallGoodsAttribute selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods_attribute @@ -119,7 +146,7 @@ public interface LitemallGoodsAttributeMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoodsAttribute selectOneByExample(LitemallGoodsAttributeExample example); + int logicalDeleteByExample(@Param("example") LitemallGoodsAttributeExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallGoodsAttributeMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoodsAttribute selectOneByExampleSelective(@Param("example") LitemallGoodsAttributeExample example, @Param("selective") LitemallGoodsAttribute.Column ... selective); + 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 a34ae04b..3e4194d5 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.java @@ -46,6 +46,42 @@ public interface LitemallGoodsMapper { */ int insertSelective(LitemallGoods record); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallGoods selectOneByExample(LitemallGoodsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallGoods selectOneByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective); + + /** + * 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 + */ + LitemallGoods selectOneByExampleWithBLOBs(LitemallGoodsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + List selectByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods @@ -69,7 +105,7 @@ public interface LitemallGoodsMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective); + LitemallGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoods.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -86,7 +122,7 @@ public interface LitemallGoodsMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoods.Column ... selective); + LitemallGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); /** * This method was generated by MyBatis Generator. @@ -143,7 +179,7 @@ public interface LitemallGoodsMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoods selectOneByExample(LitemallGoodsExample example); + int logicalDeleteByExample(@Param("example") LitemallGoodsExample example); /** * This method was generated by MyBatis Generator. @@ -152,14 +188,5 @@ public interface LitemallGoodsMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoods selectOneByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective); - - /** - * 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 - */ - LitemallGoods selectOneByExampleWithBLOBs(LitemallGoodsExample example); + 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 fcf1c028..fc459271 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.java @@ -51,8 +51,18 @@ public interface LitemallGoodsSpecificationMapper { * This method corresponds to the database table litemall_goods_specification * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallGoodsSpecificationExample example); + LitemallGoodsSpecification selectOneByExample(LitemallGoodsSpecificationExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallGoodsSpecification selectOneByExampleSelective(@Param("example") LitemallGoodsSpecificationExample example, @Param("selective") LitemallGoodsSpecification.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallGoodsSpecificationMapper { * * @mbg.generated */ - LitemallGoodsSpecification selectByPrimaryKey(Integer id); + List selectByExample(LitemallGoodsSpecificationExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallGoodsSpecificationMapper { */ LitemallGoodsSpecification selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoodsSpecification.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + */ + LitemallGoodsSpecification selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallGoodsSpecification selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods_specification @@ -119,7 +146,7 @@ public interface LitemallGoodsSpecificationMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoodsSpecification selectOneByExample(LitemallGoodsSpecificationExample example); + int logicalDeleteByExample(@Param("example") LitemallGoodsSpecificationExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallGoodsSpecificationMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallGoodsSpecification selectOneByExampleSelective(@Param("example") LitemallGoodsSpecificationExample example, @Param("selective") LitemallGoodsSpecification.Column ... selective); + 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 a7c0d053..4052fc3e 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallIssueMapper.java @@ -51,8 +51,18 @@ public interface LitemallIssueMapper { * This method corresponds to the database table litemall_issue * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallIssueExample example); + LitemallIssue selectOneByExample(LitemallIssueExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallIssue selectOneByExampleSelective(@Param("example") LitemallIssueExample example, @Param("selective") LitemallIssue.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallIssueMapper { * * @mbg.generated */ - LitemallIssue selectByPrimaryKey(Integer id); + List selectByExample(LitemallIssueExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallIssueMapper { */ LitemallIssue selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallIssue.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + */ + LitemallIssue selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallIssue selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_issue @@ -119,7 +146,7 @@ public interface LitemallIssueMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallIssue selectOneByExample(LitemallIssueExample example); + int logicalDeleteByExample(@Param("example") LitemallIssueExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallIssueMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallIssue selectOneByExampleSelective(@Param("example") LitemallIssueExample example, @Param("selective") LitemallIssue.Column ... selective); + 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 2aa7e70d..bb7e8dd6 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.java @@ -51,8 +51,18 @@ public interface LitemallKeywordMapper { * This method corresponds to the database table litemall_keyword * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallKeywordExample example); + LitemallKeyword selectOneByExample(LitemallKeywordExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallKeyword selectOneByExampleSelective(@Param("example") LitemallKeywordExample example, @Param("selective") LitemallKeyword.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallKeywordMapper { * * @mbg.generated */ - LitemallKeyword selectByPrimaryKey(Integer id); + List selectByExample(LitemallKeywordExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallKeywordMapper { */ LitemallKeyword selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallKeyword.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + */ + LitemallKeyword selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallKeyword selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_keyword @@ -119,7 +146,7 @@ public interface LitemallKeywordMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallKeyword selectOneByExample(LitemallKeywordExample example); + int logicalDeleteByExample(@Param("example") LitemallKeywordExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallKeywordMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallKeyword selectOneByExampleSelective(@Param("example") LitemallKeywordExample example, @Param("selective") LitemallKeyword.Column ... selective); + 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 60d0a6f9..515549b4 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.java @@ -51,8 +51,18 @@ public interface LitemallOrderGoodsMapper { * This method corresponds to the database table litemall_order_goods * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallOrderGoodsExample example); + LitemallOrderGoods selectOneByExample(LitemallOrderGoodsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallOrderGoods selectOneByExampleSelective(@Param("example") LitemallOrderGoodsExample example, @Param("selective") LitemallOrderGoods.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallOrderGoodsMapper { * * @mbg.generated */ - LitemallOrderGoods selectByPrimaryKey(Integer id); + List selectByExample(LitemallOrderGoodsExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallOrderGoodsMapper { */ LitemallOrderGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallOrderGoods.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + */ + LitemallOrderGoods selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallOrderGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_order_goods @@ -119,7 +146,7 @@ public interface LitemallOrderGoodsMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallOrderGoods selectOneByExample(LitemallOrderGoodsExample example); + int logicalDeleteByExample(@Param("example") LitemallOrderGoodsExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallOrderGoodsMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallOrderGoods selectOneByExampleSelective(@Param("example") LitemallOrderGoodsExample example, @Param("selective") LitemallOrderGoods.Column ... selective); + 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 810cedfb..02a65ed2 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallOrderMapper.java @@ -51,8 +51,18 @@ public interface LitemallOrderMapper { * This method corresponds to the database table litemall_order * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallOrderExample example); + LitemallOrder selectOneByExample(LitemallOrderExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallOrder selectOneByExampleSelective(@Param("example") LitemallOrderExample example, @Param("selective") LitemallOrder.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallOrderMapper { * * @mbg.generated */ - LitemallOrder selectByPrimaryKey(Integer id); + List selectByExample(LitemallOrderExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallOrderMapper { */ LitemallOrder selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallOrder.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + */ + LitemallOrder selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallOrder selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_order @@ -119,7 +146,7 @@ public interface LitemallOrderMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallOrder selectOneByExample(LitemallOrderExample example); + int logicalDeleteByExample(@Param("example") LitemallOrderExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallOrderMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallOrder selectOneByExampleSelective(@Param("example") LitemallOrderExample example, @Param("selective") LitemallOrder.Column ... selective); + int logicalDeleteByPrimaryKey(Integer id); } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java index 5efd4ca6..48355421 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallProductMapper.java @@ -51,8 +51,18 @@ public interface LitemallProductMapper { * This method corresponds to the database table litemall_product * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallProductExample example); + LitemallProduct selectOneByExample(LitemallProductExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallProduct selectOneByExampleSelective(@Param("example") LitemallProductExample example, @Param("selective") LitemallProduct.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallProductMapper { * * @mbg.generated */ - LitemallProduct selectByPrimaryKey(Integer id); + List selectByExample(LitemallProductExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallProductMapper { */ LitemallProduct selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallProduct.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + */ + LitemallProduct selectByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallProduct selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_product @@ -119,7 +146,7 @@ public interface LitemallProductMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallProduct selectOneByExample(LitemallProductExample example); + int logicalDeleteByExample(@Param("example") LitemallProductExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallProductMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallProduct selectOneByExampleSelective(@Param("example") LitemallProductExample example, @Param("selective") LitemallProduct.Column ... selective); + 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 af7e0d3b..177d56e0 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,8 +51,18 @@ public interface LitemallRegionMapper { * This method corresponds to the database table litemall_region * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallRegionExample example); + LitemallRegion selectOneByExample(LitemallRegionExample example); + + /** + * 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 + */ + LitemallRegion selectOneByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallRegionMapper { * * @mbg.generated */ - LitemallRegion selectByPrimaryKey(Integer id); + List selectByExample(LitemallRegionExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,14 @@ public interface LitemallRegionMapper { */ LitemallRegion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRegion.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + */ + LitemallRegion selectByPrimaryKey(Integer id); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_region @@ -111,22 +129,4 @@ public interface LitemallRegionMapper { * @mbg.generated */ int updateByPrimaryKey(LitemallRegion record); - - /** - * 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 - */ - LitemallRegion selectOneByExample(LitemallRegionExample example); - - /** - * 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 - */ - LitemallRegion selectOneByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective); } \ 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 984c6039..b4413d71 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.java @@ -51,8 +51,18 @@ public interface LitemallSearchHistoryMapper { * This method corresponds to the database table litemall_search_history * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallSearchHistoryExample example); + LitemallSearchHistory selectOneByExample(LitemallSearchHistoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallSearchHistory selectOneByExampleSelective(@Param("example") LitemallSearchHistoryExample example, @Param("selective") LitemallSearchHistory.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallSearchHistoryMapper { * * @mbg.generated */ - LitemallSearchHistory selectByPrimaryKey(Integer id); + List selectByExample(LitemallSearchHistoryExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallSearchHistoryMapper { */ LitemallSearchHistory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallSearchHistory.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + */ + LitemallSearchHistory selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallSearchHistory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_search_history @@ -119,7 +146,7 @@ public interface LitemallSearchHistoryMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallSearchHistory selectOneByExample(LitemallSearchHistoryExample example); + int logicalDeleteByExample(@Param("example") LitemallSearchHistoryExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallSearchHistoryMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallSearchHistory selectOneByExampleSelective(@Param("example") LitemallSearchHistoryExample example, @Param("selective") LitemallSearchHistory.Column ... selective); + 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 40a20cf1..668be6f2 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallStorageMapper.java @@ -51,8 +51,18 @@ public interface LitemallStorageMapper { * This method corresponds to the database table litemall_storage * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallStorageExample example); + LitemallStorage selectOneByExample(LitemallStorageExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallStorage selectOneByExampleSelective(@Param("example") LitemallStorageExample example, @Param("selective") LitemallStorage.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallStorageMapper { * * @mbg.generated */ - LitemallStorage selectByPrimaryKey(Integer id); + List selectByExample(LitemallStorageExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallStorageMapper { */ LitemallStorage selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallStorage.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + */ + LitemallStorage selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallStorage selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_storage @@ -119,7 +146,7 @@ public interface LitemallStorageMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallStorage selectOneByExample(LitemallStorageExample example); + int logicalDeleteByExample(@Param("example") LitemallStorageExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallStorageMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallStorage selectOneByExampleSelective(@Param("example") LitemallStorageExample example, @Param("selective") LitemallStorage.Column ... selective); + 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 8b72e9a6..79b8def2 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallTopicMapper.java @@ -46,6 +46,42 @@ public interface LitemallTopicMapper { */ int insertSelective(LitemallTopic record); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallTopic selectOneByExample(LitemallTopicExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallTopic selectOneByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); + + /** + * 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 + */ + LitemallTopic selectOneByExampleWithBLOBs(LitemallTopicExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + List selectByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_topic @@ -69,7 +105,7 @@ public interface LitemallTopicMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); + LitemallTopic selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallTopic.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -86,7 +122,7 @@ public interface LitemallTopicMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallTopic selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallTopic.Column ... selective); + LitemallTopic selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); /** * This method was generated by MyBatis Generator. @@ -143,7 +179,7 @@ public interface LitemallTopicMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallTopic selectOneByExample(LitemallTopicExample example); + int logicalDeleteByExample(@Param("example") LitemallTopicExample example); /** * This method was generated by MyBatis Generator. @@ -152,14 +188,5 @@ public interface LitemallTopicMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallTopic selectOneByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); - - /** - * 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 - */ - LitemallTopic selectOneByExampleWithBLOBs(LitemallTopicExample example); + int logicalDeleteByPrimaryKey(Integer id); } \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.java index 1aa7ccfd..6e8c1a37 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.java @@ -51,8 +51,18 @@ public interface LitemallUserCouponMapper { * This method corresponds to the database table litemall_user_coupon * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallUserCouponExample example); + LitemallUserCoupon selectOneByExample(LitemallUserCouponExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallUserCoupon selectOneByExampleSelective(@Param("example") LitemallUserCouponExample example, @Param("selective") LitemallUserCoupon.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallUserCouponMapper { * * @mbg.generated */ - LitemallUserCoupon selectByPrimaryKey(Integer id); + List selectByExample(LitemallUserCouponExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallUserCouponMapper { */ LitemallUserCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUserCoupon.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + */ + LitemallUserCoupon selectByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallUserCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_user_coupon @@ -119,7 +146,7 @@ public interface LitemallUserCouponMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallUserCoupon selectOneByExample(LitemallUserCouponExample example); + int logicalDeleteByExample(@Param("example") LitemallUserCouponExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallUserCouponMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallUserCoupon selectOneByExampleSelective(@Param("example") LitemallUserCouponExample example, @Param("selective") LitemallUserCoupon.Column ... selective); + 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 cbd1a284..9b311679 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserMapper.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallUserMapper.java @@ -51,8 +51,18 @@ public interface LitemallUserMapper { * This method corresponds to the database table litemall_user * * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin */ - List selectByExample(LitemallUserExample example); + LitemallUser selectOneByExample(LitemallUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + LitemallUser selectOneByExampleSelective(@Param("example") LitemallUserExample example, @Param("selective") LitemallUser.Column ... selective); /** * This method was generated by MyBatis Generator. @@ -69,7 +79,7 @@ public interface LitemallUserMapper { * * @mbg.generated */ - LitemallUser selectByPrimaryKey(Integer id); + List selectByExample(LitemallUserExample example); /** * This method was generated by MyBatis Generator. @@ -80,6 +90,23 @@ public interface LitemallUserMapper { */ LitemallUser selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUser.Column ... selective); + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + */ + LitemallUser selectByPrimaryKey(Integer id); + + /** + * 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 + */ + LitemallUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted); + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_user @@ -119,7 +146,7 @@ public interface LitemallUserMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallUser selectOneByExample(LitemallUserExample example); + int logicalDeleteByExample(@Param("example") LitemallUserExample example); /** * This method was generated by MyBatis Generator. @@ -128,5 +155,5 @@ public interface LitemallUserMapper { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - LitemallUser selectOneByExampleSelective(@Param("example") LitemallUserExample example, @Param("selective") LitemallUser.Column ... selective); + 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 62845e05..e36b8919 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallAd { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -448,6 +486,17 @@ public class LitemallAd { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_ad @@ -456,17 +505,17 @@ public class LitemallAd { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - position("position"), - name("name"), - link("link"), - url("url"), - content("content"), - startTime("start_time"), - endTime("end_time"), - enabled("enabled"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + position("position", "position", "INTEGER"), + name("name", "name", "VARCHAR"), + link("link", "link", "VARCHAR"), + url("url", "url", "VARCHAR"), + content("content", "content", "VARCHAR"), + startTime("start_time", "startTime", "TIMESTAMP"), + endTime("end_time", "endTime", "TIMESTAMP"), + enabled("enabled", "enabled", "BIT"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -477,6 +526,24 @@ public class LitemallAd { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_ad @@ -506,8 +573,32 @@ public class LitemallAd { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 c0d6e588..e1dfdf75 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 @@ -111,6 +111,37 @@ public class LitemallAdExample { return criteria; } + /** + * 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 LitemallAdExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallAdExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_ad @@ -148,37 +179,6 @@ public class LitemallAdExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_ad - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallAdExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_ad - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallAdExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_ad @@ -980,6 +980,29 @@ public class LitemallAdExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_ad + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAd.IS_DELETED) : andDeletedNotEqualTo(LitemallAd.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAd.IS_DELETED) : andDeletedNotEqualTo(LitemallAd.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_ad 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 02cf8fef..cf02f8d9 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallAddress { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -448,6 +486,17 @@ public class LitemallAddress { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_address @@ -456,17 +505,17 @@ public class LitemallAddress { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - name("name"), - userId("user_id"), - provinceId("province_id"), - cityId("city_id"), - areaId("area_id"), - address("address"), - mobile("mobile"), - isDefault("is_default"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + name("name", "name", "VARCHAR"), + userId("user_id", "userId", "INTEGER"), + provinceId("province_id", "provinceId", "INTEGER"), + cityId("city_id", "cityId", "INTEGER"), + areaId("area_id", "areaId", "INTEGER"), + address("address", "address", "VARCHAR"), + mobile("mobile", "mobile", "VARCHAR"), + isDefault("is_default", "isDefault", "BIT"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -477,6 +526,24 @@ public class LitemallAddress { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address @@ -506,8 +573,32 @@ public class LitemallAddress { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 d9073526..aa12fa9c 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 @@ -111,6 +111,37 @@ public class LitemallAddressExample { return criteria; } + /** + * 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 LitemallAddressExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallAddressExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address @@ -148,37 +179,6 @@ public class LitemallAddressExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_address - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallAddressExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_address - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallAddressExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_address @@ -970,6 +970,29 @@ public class LitemallAddressExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_address + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAddress.IS_DELETED) : andDeletedNotEqualTo(LitemallAddress.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAddress.IS_DELETED) : andDeletedNotEqualTo(LitemallAddress.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_address 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 2cbb9c18..7c733cd4 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallAdmin { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -376,6 +414,17 @@ public class LitemallAdmin { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_admin @@ -384,15 +433,15 @@ public class LitemallAdmin { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - username("username"), - password("password"), - lastLoginIp("last_login_ip"), - lastLoginTime("last_login_time"), - updateTime("update_time"), - avatar("avatar"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + username("username", "username", "VARCHAR"), + password("password", "password", "VARCHAR"), + lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR"), + lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP"), + updateTime("update_time", "updateTime", "TIMESTAMP"), + avatar("avatar", "avatar", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -403,6 +452,24 @@ public class LitemallAdmin { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_admin @@ -432,8 +499,32 @@ public class LitemallAdmin { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 45633f71..dd94872d 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 @@ -111,6 +111,37 @@ public class LitemallAdminExample { return criteria; } + /** + * 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 LitemallAdminExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallAdminExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_admin @@ -148,37 +179,6 @@ public class LitemallAdminExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_admin - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallAdminExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_admin - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallAdminExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_admin @@ -860,6 +860,29 @@ public class LitemallAdminExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_admin + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAdmin.IS_DELETED) : andDeletedNotEqualTo(LitemallAdmin.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallAdmin.IS_DELETED) : andDeletedNotEqualTo(LitemallAdmin.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_admin 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 feabedf0..21afd775 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 @@ -4,6 +4,44 @@ import java.math.BigDecimal; import java.time.LocalDateTime; public class LitemallBrand { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -557,6 +595,17 @@ public class LitemallBrand { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_brand @@ -565,20 +614,20 @@ public class LitemallBrand { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - name("name"), - listPicUrl("list_pic_url"), - simpleDesc("simple_desc"), - picUrl("pic_url"), - sortOrder("sort_order"), - isShow("is_show"), - floorPrice("floor_price"), - appListPicUrl("app_list_pic_url"), - isNew("is_new"), - newPicUrl("new_pic_url"), - newSortOrder("new_sort_order"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + name("name", "name", "VARCHAR"), + listPicUrl("list_pic_url", "listPicUrl", "VARCHAR"), + simpleDesc("simple_desc", "simpleDesc", "VARCHAR"), + picUrl("pic_url", "picUrl", "VARCHAR"), + sortOrder("sort_order", "sortOrder", "TINYINT"), + isShow("is_show", "isShow", "BIT"), + floorPrice("floor_price", "floorPrice", "DECIMAL"), + appListPicUrl("app_list_pic_url", "appListPicUrl", "VARCHAR"), + isNew("is_new", "isNew", "BIT"), + newPicUrl("new_pic_url", "newPicUrl", "VARCHAR"), + newSortOrder("new_sort_order", "newSortOrder", "TINYINT"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -589,6 +638,24 @@ public class LitemallBrand { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_brand @@ -618,8 +685,32 @@ public class LitemallBrand { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 3b63beda..7b7cd00c 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 @@ -112,6 +112,37 @@ public class LitemallBrandExample { return criteria; } + /** + * 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 LitemallBrandExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallBrandExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_brand @@ -149,37 +180,6 @@ public class LitemallBrandExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_brand - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallBrandExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_brand - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallBrandExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_brand @@ -1181,6 +1181,29 @@ public class LitemallBrandExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_brand + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallBrand.IS_DELETED) : andDeletedNotEqualTo(LitemallBrand.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallBrand.IS_DELETED) : andDeletedNotEqualTo(LitemallBrand.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_brand 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 144553dd..15711ceb 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 @@ -5,6 +5,44 @@ import java.time.LocalDateTime; import java.util.Arrays; public class LitemallCart { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -558,6 +596,17 @@ public class LitemallCart { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_cart @@ -566,20 +615,20 @@ public class LitemallCart { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - userId("user_id"), - goodsId("goods_id"), - goodsSn("goods_sn"), - productId("product_id"), - goodsName("goods_name"), - retailPrice("retail_price"), - number("number"), - goodsSpecificationValues("goods_specification_values"), - goodsSpecificationIds("goods_specification_ids"), - checked("checked"), - picUrl("pic_url"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + userId("user_id", "userId", "INTEGER"), + goodsId("goods_id", "goodsId", "INTEGER"), + goodsSn("goods_sn", "goodsSn", "VARCHAR"), + productId("product_id", "productId", "INTEGER"), + goodsName("goods_name", "goodsName", "VARCHAR"), + retailPrice("retail_price", "retailPrice", "DECIMAL"), + number("number", "number", "SMALLINT"), + goodsSpecificationValues("goods_specification_values", "goodsSpecificationValues", "VARCHAR"), + goodsSpecificationIds("goods_specification_ids", "goodsSpecificationIds", "CHAR"), + checked("checked", "checked", "BIT"), + picUrl("pic_url", "picUrl", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -590,6 +639,24 @@ public class LitemallCart { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_cart @@ -619,8 +686,32 @@ public class LitemallCart { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 fef526e3..ded773cc 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 @@ -112,6 +112,37 @@ public class LitemallCartExample { return criteria; } + /** + * 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 LitemallCartExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallCartExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_cart @@ -149,37 +180,6 @@ public class LitemallCartExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_cart - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCartExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_cart - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCartExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_cart @@ -1205,6 +1205,29 @@ public class LitemallCartExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_cart + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCart.IS_DELETED) : andDeletedNotEqualTo(LitemallCart.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCart.IS_DELETED) : andDeletedNotEqualTo(LitemallCart.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_cart 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 42278004..1711a385 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallCategory { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -664,6 +702,17 @@ public class LitemallCategory { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_category @@ -672,23 +721,23 @@ public class LitemallCategory { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - name("name"), - keywords("keywords"), - frontDesc("front_desc"), - parentId("parent_id"), - sortOrder("sort_order"), - showIndex("show_index"), - isShow("is_show"), - bannerUrl("banner_url"), - iconUrl("icon_url"), - imgUrl("img_url"), - wapBannerUrl("wap_banner_url"), - level("level"), - type("type"), - frontName("front_name"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + name("name", "name", "VARCHAR"), + keywords("keywords", "keywords", "VARCHAR"), + frontDesc("front_desc", "frontDesc", "VARCHAR"), + parentId("parent_id", "parentId", "INTEGER"), + sortOrder("sort_order", "sortOrder", "TINYINT"), + showIndex("show_index", "showIndex", "TINYINT"), + isShow("is_show", "isShow", "BIT"), + bannerUrl("banner_url", "bannerUrl", "VARCHAR"), + iconUrl("icon_url", "iconUrl", "VARCHAR"), + imgUrl("img_url", "imgUrl", "VARCHAR"), + wapBannerUrl("wap_banner_url", "wapBannerUrl", "VARCHAR"), + level("level", "level", "VARCHAR"), + type("type", "type", "INTEGER"), + frontName("front_name", "frontName", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -699,6 +748,24 @@ public class LitemallCategory { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_category @@ -728,8 +795,32 @@ public class LitemallCategory { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 25ba218a..7a13760a 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 @@ -111,6 +111,37 @@ public class LitemallCategoryExample { return criteria; } + /** + * 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 LitemallCategoryExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallCategoryExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_category @@ -148,37 +179,6 @@ public class LitemallCategoryExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_category - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCategoryExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_category - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCategoryExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_category @@ -1390,6 +1390,29 @@ public class LitemallCategoryExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_category + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCategory.IS_DELETED) : andDeletedNotEqualTo(LitemallCategory.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCategory.IS_DELETED) : andDeletedNotEqualTo(LitemallCategory.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_category 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 0e1788c4..6349e375 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallCollect { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -304,6 +342,17 @@ public class LitemallCollect { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_collect @@ -312,13 +361,13 @@ public class LitemallCollect { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - userId("user_id"), - valueId("value_id"), - isAttention("is_attention"), - typeId("type_id"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + userId("user_id", "userId", "INTEGER"), + valueId("value_id", "valueId", "INTEGER"), + isAttention("is_attention", "isAttention", "BIT"), + typeId("type_id", "typeId", "INTEGER"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -329,6 +378,24 @@ public class LitemallCollect { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_collect @@ -358,8 +425,32 @@ public class LitemallCollect { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 b825874e..0542c4ec 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 @@ -111,6 +111,37 @@ public class LitemallCollectExample { return criteria; } + /** + * 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 LitemallCollectExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallCollectExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_collect @@ -148,37 +179,6 @@ public class LitemallCollectExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_collect - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCollectExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_collect - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCollectExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_collect @@ -700,6 +700,29 @@ public class LitemallCollectExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_collect + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCollect.IS_DELETED) : andDeletedNotEqualTo(LitemallCollect.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCollect.IS_DELETED) : andDeletedNotEqualTo(LitemallCollect.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_collect 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 57c92e36..78518135 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 @@ -4,6 +4,44 @@ import java.time.LocalDateTime; import java.util.Arrays; public class LitemallComment { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -413,6 +451,17 @@ public class LitemallComment { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_comment @@ -421,16 +470,16 @@ public class LitemallComment { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - typeId("type_id"), - valueId("value_id"), - content("content"), - userId("user_id"), - hasPicture("has_picture"), - picUrls("pic_urls"), - star("star"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + typeId("type_id", "typeId", "TINYINT"), + valueId("value_id", "valueId", "INTEGER"), + content("content", "content", "VARCHAR"), + userId("user_id", "userId", "INTEGER"), + hasPicture("has_picture", "hasPicture", "BIT"), + picUrls("pic_urls", "picUrls", "CHAR"), + star("star", "star", "SMALLINT"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -441,6 +490,24 @@ public class LitemallComment { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_comment @@ -470,8 +537,32 @@ public class LitemallComment { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 839e3c57..7852e70d 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 @@ -111,6 +111,37 @@ public class LitemallCommentExample { return criteria; } + /** + * 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 LitemallCommentExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallCommentExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_comment @@ -148,37 +179,6 @@ public class LitemallCommentExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_comment - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCommentExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_comment - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCommentExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_comment @@ -934,6 +934,29 @@ public class LitemallCommentExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_comment + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_comment 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 66529887..ecfb0abe 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 @@ -4,6 +4,44 @@ import java.math.BigDecimal; import java.time.LocalDateTime; public class LitemallCoupon { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -521,6 +559,17 @@ public class LitemallCoupon { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_coupon @@ -529,19 +578,19 @@ public class LitemallCoupon { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - name("name"), - typeMoney("type_money"), - sendType("send_type"), - minAmount("min_amount"), - maxAmount("max_amount"), - minGoodsAmount("min_goods_amount"), - sendStart("send_start"), - sendEnd("send_end"), - useStart("use_start"), - useEnd("use_end"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + name("name", "name", "VARCHAR"), + typeMoney("type_money", "typeMoney", "DECIMAL"), + sendType("send_type", "sendType", "TINYINT"), + minAmount("min_amount", "minAmount", "DECIMAL"), + maxAmount("max_amount", "maxAmount", "DECIMAL"), + minGoodsAmount("min_goods_amount", "minGoodsAmount", "DECIMAL"), + sendStart("send_start", "sendStart", "TIMESTAMP"), + sendEnd("send_end", "sendEnd", "TIMESTAMP"), + useStart("use_start", "useStart", "TIMESTAMP"), + useEnd("use_end", "useEnd", "TIMESTAMP"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -552,6 +601,24 @@ public class LitemallCoupon { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_coupon @@ -581,8 +648,32 @@ public class LitemallCoupon { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 2945cdb1..3290878b 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 @@ -112,6 +112,37 @@ public class LitemallCouponExample { return criteria; } + /** + * 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 LitemallCouponExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallCouponExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_coupon @@ -149,37 +180,6 @@ public class LitemallCouponExample { distinct = false; } - /** - * 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 LitemallCouponExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_coupon - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallCouponExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_coupon @@ -1071,6 +1071,29 @@ public class LitemallCouponExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_coupon 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 465d97c9..88a2a9f2 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallFootprint { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -232,6 +270,17 @@ public class LitemallFootprint { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_footprint @@ -240,11 +289,11 @@ public class LitemallFootprint { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - userId("user_id"), - goodsId("goods_id"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + userId("user_id", "userId", "INTEGER"), + goodsId("goods_id", "goodsId", "INTEGER"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -255,6 +304,24 @@ public class LitemallFootprint { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_footprint @@ -284,8 +351,32 @@ public class LitemallFootprint { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 18eafe89..fe4bac26 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 @@ -111,6 +111,37 @@ public class LitemallFootprintExample { return criteria; } + /** + * 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 LitemallFootprintExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallFootprintExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_footprint @@ -148,37 +179,6 @@ public class LitemallFootprintExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_footprint - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallFootprintExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_footprint - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallFootprintExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_footprint @@ -580,6 +580,29 @@ public class LitemallFootprintExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_footprint + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_footprint 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 5ecbfa98..e83139be 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 @@ -5,6 +5,44 @@ import java.time.LocalDateTime; import java.util.Arrays; public class LitemallGoods { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -774,6 +812,17 @@ public class LitemallGoods { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_goods @@ -782,26 +831,26 @@ public class LitemallGoods { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - goodsSn("goods_sn"), - name("name"), - categoryId("category_id"), - brandId("brand_id"), - gallery("gallery"), - keywords("keywords"), - goodsBrief("goods_brief"), - isOnSale("is_on_sale"), - sortOrder("sort_order"), - counterPrice("counter_price"), - isNew("is_new"), - primaryPicUrl("primary_pic_url"), - listPicUrl("list_pic_url"), - isHot("is_hot"), - goodsUnit("goods_unit"), - retailPrice("retail_price"), - addTime("add_time"), - deleted("deleted"), - goodsDesc("goods_desc"); + id("id", "id", "INTEGER"), + goodsSn("goods_sn", "goodsSn", "VARCHAR"), + name("name", "name", "VARCHAR"), + categoryId("category_id", "categoryId", "INTEGER"), + brandId("brand_id", "brandId", "INTEGER"), + gallery("gallery", "gallery", "CHAR"), + keywords("keywords", "keywords", "VARCHAR"), + goodsBrief("goods_brief", "goodsBrief", "VARCHAR"), + isOnSale("is_on_sale", "isOnSale", "BIT"), + sortOrder("sort_order", "sortOrder", "SMALLINT"), + counterPrice("counter_price", "counterPrice", "DECIMAL"), + isNew("is_new", "isNew", "BIT"), + primaryPicUrl("primary_pic_url", "primaryPicUrl", "VARCHAR"), + listPicUrl("list_pic_url", "listPicUrl", "VARCHAR"), + isHot("is_hot", "isHot", "BIT"), + goodsUnit("goods_unit", "goodsUnit", "VARCHAR"), + retailPrice("retail_price", "retailPrice", "DECIMAL"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"), + goodsDesc("goods_desc", "goodsDesc", "LONGVARCHAR"); /** * This field was generated by MyBatis Generator. @@ -812,6 +861,24 @@ public class LitemallGoods { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods @@ -841,8 +908,32 @@ public class LitemallGoods { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 4159de04..9523a9e4 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallGoodsAttribute { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -268,6 +306,17 @@ public class LitemallGoodsAttribute { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_goods_attribute @@ -276,12 +325,12 @@ public class LitemallGoodsAttribute { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - goodsId("goods_id"), - value("value"), - attribute("attribute"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + goodsId("goods_id", "goodsId", "INTEGER"), + value("value", "value", "VARCHAR"), + attribute("attribute", "attribute", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -292,6 +341,24 @@ public class LitemallGoodsAttribute { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods_attribute @@ -321,8 +388,32 @@ public class LitemallGoodsAttribute { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 783cb7fc..ff200720 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 @@ -111,6 +111,37 @@ public class LitemallGoodsAttributeExample { return criteria; } + /** + * 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 LitemallGoodsAttributeExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods_attribute @@ -148,37 +179,6 @@ public class LitemallGoodsAttributeExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_attribute - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallGoodsAttributeExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_attribute - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods_attribute @@ -660,6 +660,29 @@ public class LitemallGoodsAttributeExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_attribute + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_goods_attribute 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 23809917..44432cfb 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 @@ -112,6 +112,37 @@ public class LitemallGoodsExample { return criteria; } + /** + * 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 LitemallGoodsExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallGoodsExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods @@ -149,37 +180,6 @@ public class LitemallGoodsExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallGoodsExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallGoodsExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods @@ -1535,6 +1535,29 @@ public class LitemallGoodsExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_goods 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 ac59f601..e6c38383 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallGoodsSpecification { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -304,6 +342,17 @@ public class LitemallGoodsSpecification { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_goods_specification @@ -312,13 +361,13 @@ public class LitemallGoodsSpecification { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - goodsId("goods_id"), - value("value"), - picUrl("pic_url"), - specification("specification"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + goodsId("goods_id", "goodsId", "INTEGER"), + value("value", "value", "VARCHAR"), + picUrl("pic_url", "picUrl", "VARCHAR"), + specification("specification", "specification", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -329,6 +378,24 @@ public class LitemallGoodsSpecification { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods_specification @@ -358,8 +425,32 @@ public class LitemallGoodsSpecification { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 fa5916da..61a5d939 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 @@ -111,6 +111,37 @@ public class LitemallGoodsSpecificationExample { return criteria; } + /** + * 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 LitemallGoodsSpecificationExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallGoodsSpecificationExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_goods_specification @@ -148,37 +179,6 @@ public class LitemallGoodsSpecificationExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_specification - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallGoodsSpecificationExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_goods_specification - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallGoodsSpecificationExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_goods_specification @@ -730,6 +730,29 @@ public class LitemallGoodsSpecificationExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_goods_specification + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsSpecification.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsSpecification.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallGoodsSpecification.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsSpecification.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_goods_specification 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 7726801f..6486a014 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallIssue { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -232,6 +270,17 @@ public class LitemallIssue { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_issue @@ -240,11 +289,11 @@ public class LitemallIssue { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - question("question"), - answer("answer"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + question("question", "question", "VARCHAR"), + answer("answer", "answer", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -255,6 +304,24 @@ public class LitemallIssue { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_issue @@ -284,8 +351,32 @@ public class LitemallIssue { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 70db76f8..4d32a493 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 @@ -111,6 +111,37 @@ public class LitemallIssueExample { return criteria; } + /** + * 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 LitemallIssueExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallIssueExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_issue @@ -148,37 +179,6 @@ public class LitemallIssueExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_issue - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallIssueExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_issue - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallIssueExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_issue @@ -600,6 +600,29 @@ public class LitemallIssueExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_issue + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallIssue.IS_DELETED) : andDeletedNotEqualTo(LitemallIssue.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallIssue.IS_DELETED) : andDeletedNotEqualTo(LitemallIssue.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_issue 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 5c0bd0b9..d6bf6698 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallKeyword { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -376,6 +414,17 @@ public class LitemallKeyword { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_keyword @@ -384,15 +433,15 @@ public class LitemallKeyword { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - keyword("keyword"), - url("url"), - isHot("is_hot"), - isDefault("is_default"), - isShow("is_show"), - sortOrder("sort_order"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + keyword("keyword", "keyword", "VARCHAR"), + url("url", "url", "VARCHAR"), + isHot("is_hot", "isHot", "BIT"), + isDefault("is_default", "isDefault", "BIT"), + isShow("is_show", "isShow", "BIT"), + sortOrder("sort_order", "sortOrder", "INTEGER"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -403,6 +452,24 @@ public class LitemallKeyword { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_keyword @@ -432,8 +499,32 @@ public class LitemallKeyword { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 960c2c01..586bfba1 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 @@ -111,6 +111,37 @@ public class LitemallKeywordExample { return criteria; } + /** + * 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 LitemallKeywordExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallKeywordExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_keyword @@ -148,37 +179,6 @@ public class LitemallKeywordExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_keyword - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallKeywordExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_keyword - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallKeywordExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_keyword @@ -840,6 +840,29 @@ public class LitemallKeywordExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_keyword + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallKeyword.IS_DELETED) : andDeletedNotEqualTo(LitemallKeyword.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallKeyword.IS_DELETED) : andDeletedNotEqualTo(LitemallKeyword.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_keyword 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 10195bdc..d1652ba4 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 @@ -4,6 +4,44 @@ import java.math.BigDecimal; import java.time.LocalDateTime; public class LitemallOrder { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -917,6 +955,17 @@ public class LitemallOrder { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_order @@ -925,30 +974,30 @@ public class LitemallOrder { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - userId("user_id"), - orderSn("order_sn"), - orderStatus("order_status"), - consignee("consignee"), - mobile("mobile"), - address("address"), - goodsPrice("goods_price"), - freightPrice("freight_price"), - couponPrice("coupon_price"), - integralPrice("integral_price"), - orderPrice("order_price"), - actualPrice("actual_price"), - payId("pay_id"), - payStatus("pay_status"), - payTime("pay_time"), - shipSn("ship_sn"), - shipChannel("ship_channel"), - shipStartTime("ship_start_time"), - shipEndTime("ship_end_time"), - confirmTime("confirm_time"), - endTime("end_time"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + userId("user_id", "userId", "INTEGER"), + orderSn("order_sn", "orderSn", "VARCHAR"), + orderStatus("order_status", "orderStatus", "SMALLINT"), + consignee("consignee", "consignee", "VARCHAR"), + mobile("mobile", "mobile", "VARCHAR"), + address("address", "address", "VARCHAR"), + goodsPrice("goods_price", "goodsPrice", "DECIMAL"), + freightPrice("freight_price", "freightPrice", "DECIMAL"), + couponPrice("coupon_price", "couponPrice", "DECIMAL"), + integralPrice("integral_price", "integralPrice", "DECIMAL"), + orderPrice("order_price", "orderPrice", "DECIMAL"), + actualPrice("actual_price", "actualPrice", "DECIMAL"), + payId("pay_id", "payId", "VARCHAR"), + payStatus("pay_status", "payStatus", "SMALLINT"), + payTime("pay_time", "payTime", "TIMESTAMP"), + shipSn("ship_sn", "shipSn", "VARCHAR"), + shipChannel("ship_channel", "shipChannel", "VARCHAR"), + shipStartTime("ship_start_time", "shipStartTime", "TIMESTAMP"), + shipEndTime("ship_end_time", "shipEndTime", "TIMESTAMP"), + confirmTime("confirm_time", "confirmTime", "TIMESTAMP"), + endTime("end_time", "endTime", "TIMESTAMP"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -959,6 +1008,24 @@ public class LitemallOrder { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_order @@ -988,8 +1055,32 @@ public class LitemallOrder { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 d3f5b3ee..4c645a92 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 @@ -112,6 +112,37 @@ public class LitemallOrderExample { return criteria; } + /** + * 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 LitemallOrderExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallOrderExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_order @@ -149,37 +180,6 @@ public class LitemallOrderExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_order - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallOrderExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_order - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallOrderExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_order @@ -1791,6 +1791,29 @@ public class LitemallOrderExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallOrder.IS_DELETED) : andDeletedNotEqualTo(LitemallOrder.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallOrder.IS_DELETED) : andDeletedNotEqualTo(LitemallOrder.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_order 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 5d82e877..9b2ecf9f 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 @@ -5,6 +5,44 @@ import java.time.LocalDateTime; import java.util.Arrays; public class LitemallOrderGoods { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -522,6 +560,17 @@ public class LitemallOrderGoods { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_order_goods @@ -530,19 +579,19 @@ public class LitemallOrderGoods { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - orderId("order_id"), - goodsId("goods_id"), - goodsName("goods_name"), - goodsSn("goods_sn"), - productId("product_id"), - number("number"), - retailPrice("retail_price"), - goodsSpecificationValues("goods_specification_values"), - goodsSpecificationIds("goods_specification_ids"), - picUrl("pic_url"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + orderId("order_id", "orderId", "INTEGER"), + goodsId("goods_id", "goodsId", "INTEGER"), + goodsName("goods_name", "goodsName", "VARCHAR"), + goodsSn("goods_sn", "goodsSn", "VARCHAR"), + productId("product_id", "productId", "INTEGER"), + number("number", "number", "SMALLINT"), + retailPrice("retail_price", "retailPrice", "DECIMAL"), + goodsSpecificationValues("goods_specification_values", "goodsSpecificationValues", "VARCHAR"), + goodsSpecificationIds("goods_specification_ids", "goodsSpecificationIds", "CHAR"), + picUrl("pic_url", "picUrl", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -553,6 +602,24 @@ public class LitemallOrderGoods { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_order_goods @@ -582,8 +649,32 @@ public class LitemallOrderGoods { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 e4a31027..d4d5fd33 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 @@ -112,6 +112,37 @@ public class LitemallOrderGoodsExample { return criteria; } + /** + * 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 LitemallOrderGoodsExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallOrderGoodsExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_order_goods @@ -149,37 +180,6 @@ public class LitemallOrderGoodsExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_order_goods - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallOrderGoodsExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_order_goods - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallOrderGoodsExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_order_goods @@ -1145,6 +1145,29 @@ public class LitemallOrderGoodsExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_order_goods + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallOrderGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallOrderGoods.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallOrderGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallOrderGoods.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_order_goods diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java index 3a50fbf2..6761222d 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProduct.java @@ -5,6 +5,44 @@ import java.time.LocalDateTime; import java.util.Arrays; public class LitemallProduct { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -342,6 +380,17 @@ public class LitemallProduct { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_product @@ -350,14 +399,14 @@ public class LitemallProduct { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - goodsId("goods_id"), - goodsSpecificationIds("goods_specification_ids"), - goodsNumber("goods_number"), - retailPrice("retail_price"), - url("url"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + goodsId("goods_id", "goodsId", "INTEGER"), + goodsSpecificationIds("goods_specification_ids", "goodsSpecificationIds", "CHAR"), + goodsNumber("goods_number", "goodsNumber", "INTEGER"), + retailPrice("retail_price", "retailPrice", "DECIMAL"), + url("url", "url", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -368,6 +417,24 @@ public class LitemallProduct { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_product @@ -397,8 +464,32 @@ public class LitemallProduct { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java index b8ac3d76..6af871d8 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallProductExample.java @@ -112,6 +112,37 @@ public class LitemallProductExample { return criteria; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallProductExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallProductExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_product @@ -149,37 +180,6 @@ public class LitemallProductExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_product - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallProductExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_product - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallProductExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_product @@ -815,6 +815,29 @@ public class LitemallProductExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallProduct.IS_DELETED) : andDeletedNotEqualTo(LitemallProduct.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_product + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallProduct.IS_DELETED) : andDeletedNotEqualTo(LitemallProduct.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_product 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 00ebf149..e6010ac4 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,11 +238,11 @@ public class LitemallRegion { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - pid("pid"), - name("name"), - type("type"), - code("code"); + id("id", "id", "INTEGER"), + pid("pid", "pid", "INTEGER"), + name("name", "name", "VARCHAR"), + type("type", "type", "TINYINT"), + code("code", "code", "INTEGER"); /** * This field was generated by MyBatis Generator. @@ -253,6 +253,24 @@ public class LitemallRegion { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_region + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_region + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_region @@ -282,8 +300,32 @@ public class LitemallRegion { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_region + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 e57f6b79..f3ccdb0d 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 @@ -110,6 +110,37 @@ public class LitemallRegionExample { return criteria; } + /** + * 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 LitemallRegionExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * 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 LitemallRegionExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_region @@ -147,37 +178,6 @@ public class LitemallRegionExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * 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 LitemallRegionExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_region diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistory.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallSearchHistory.java index 9c51d606..59343d29 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallSearchHistory { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -268,6 +306,17 @@ public class LitemallSearchHistory { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_search_history @@ -276,12 +325,12 @@ public class LitemallSearchHistory { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - userId("user_id"), - keyword("keyword"), - from("from"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + userId("user_id", "userId", "INTEGER"), + keyword("keyword", "keyword", "CHAR"), + from("from", "from", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -292,6 +341,24 @@ public class LitemallSearchHistory { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_search_history @@ -321,8 +388,32 @@ public class LitemallSearchHistory { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 e20bc309..297379d7 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 @@ -111,6 +111,37 @@ public class LitemallSearchHistoryExample { return criteria; } + /** + * 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 LitemallSearchHistoryExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallSearchHistoryExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_search_history @@ -148,37 +179,6 @@ public class LitemallSearchHistoryExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_search_history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallSearchHistoryExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_search_history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallSearchHistoryExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_search_history @@ -660,6 +660,29 @@ public class LitemallSearchHistoryExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_search_history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallSearchHistory.IS_DELETED) : andDeletedNotEqualTo(LitemallSearchHistory.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallSearchHistory.IS_DELETED) : andDeletedNotEqualTo(LitemallSearchHistory.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_search_history 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 bf2c7331..3fa3c9ed 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 @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallStorage { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -376,6 +414,17 @@ public class LitemallStorage { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_storage @@ -384,15 +433,15 @@ public class LitemallStorage { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - key("key"), - name("name"), - type("type"), - size("size"), - modified("modified"), - url("url"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + key("key", "key", "VARCHAR"), + name("name", "name", "VARCHAR"), + type("type", "type", "VARCHAR"), + size("size", "size", "INTEGER"), + modified("modified", "modified", "TIMESTAMP"), + url("url", "url", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -403,6 +452,24 @@ public class LitemallStorage { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_storage @@ -432,8 +499,32 @@ public class LitemallStorage { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 a3070738..0c2a35f9 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 @@ -111,6 +111,37 @@ public class LitemallStorageExample { return criteria; } + /** + * 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 LitemallStorageExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallStorageExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_storage @@ -148,37 +179,6 @@ public class LitemallStorageExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_storage - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallStorageExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_storage - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallStorageExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_storage @@ -860,6 +860,29 @@ public class LitemallStorageExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_storage + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallStorage.IS_DELETED) : andDeletedNotEqualTo(LitemallStorage.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallStorage.IS_DELETED) : andDeletedNotEqualTo(LitemallStorage.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_storage 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 b64f4f6f..69e926d6 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 @@ -4,6 +4,44 @@ import java.math.BigDecimal; import java.time.LocalDateTime; public class LitemallTopic { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -521,6 +559,17 @@ public class LitemallTopic { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_topic @@ -529,19 +578,19 @@ public class LitemallTopic { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - title("title"), - avatar("avatar"), - itemPicUrl("item_pic_url"), - subtitle("subtitle"), - priceInfo("price_info"), - readCount("read_count"), - scenePicUrl("scene_pic_url"), - sortOrder("sort_order"), - isShow("is_show"), - addTime("add_time"), - deleted("deleted"), - content("content"); + id("id", "id", "INTEGER"), + title("title", "title", "VARCHAR"), + avatar("avatar", "avatar", "VARCHAR"), + itemPicUrl("item_pic_url", "itemPicUrl", "VARCHAR"), + subtitle("subtitle", "subtitle", "VARCHAR"), + priceInfo("price_info", "priceInfo", "DECIMAL"), + readCount("read_count", "readCount", "VARCHAR"), + scenePicUrl("scene_pic_url", "scenePicUrl", "VARCHAR"), + sortOrder("sort_order", "sortOrder", "INTEGER"), + isShow("is_show", "isShow", "BIT"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"), + content("content", "content", "LONGVARCHAR"); /** * This field was generated by MyBatis Generator. @@ -552,6 +601,24 @@ public class LitemallTopic { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_topic @@ -581,8 +648,32 @@ public class LitemallTopic { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** 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 efe28355..ba67d8aa 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 @@ -112,6 +112,37 @@ public class LitemallTopicExample { return criteria; } + /** + * 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 LitemallTopicExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallTopicExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_topic @@ -149,37 +180,6 @@ public class LitemallTopicExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_topic - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallTopicExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_topic - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallTopicExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_topic @@ -1061,6 +1061,29 @@ public class LitemallTopicExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_topic + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallTopic.IS_DELETED) : andDeletedNotEqualTo(LitemallTopic.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallTopic.IS_DELETED) : andDeletedNotEqualTo(LitemallTopic.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_topic 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 b79a929f..1ed51d22 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 @@ -4,6 +4,44 @@ import java.time.LocalDate; import java.time.LocalDateTime; public class LitemallUser { + /** + * 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 NOT_DELETED = false; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * 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; + + /** + * 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 + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -629,6 +667,17 @@ public class LitemallUser { return result; } + /** + * 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 void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_user @@ -637,22 +686,22 @@ public class LitemallUser { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - username("username"), - password("password"), - gender("gender"), - birthday("birthday"), - lastLoginTime("last_login_time"), - lastLoginIp("last_login_ip"), - userLevel("user_level"), - nickname("nickname"), - mobile("mobile"), - registerIp("register_ip"), - avatar("avatar"), - weixinOpenid("weixin_openid"), - status("status"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + username("username", "username", "VARCHAR"), + password("password", "password", "VARCHAR"), + gender("gender", "gender", "VARCHAR"), + birthday("birthday", "birthday", "DATE"), + lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP"), + lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR"), + userLevel("user_level", "userLevel", "VARCHAR"), + nickname("nickname", "nickname", "VARCHAR"), + mobile("mobile", "mobile", "VARCHAR"), + registerIp("register_ip", "registerIp", "VARCHAR"), + avatar("avatar", "avatar", "VARCHAR"), + weixinOpenid("weixin_openid", "weixinOpenid", "VARCHAR"), + status("status", "status", "VARCHAR"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -663,6 +712,24 @@ public class LitemallUser { */ private final String column; + /** + * 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 + */ + private final String javaProperty; + + /** + * 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 + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_user @@ -692,8 +759,32 @@ public class LitemallUser { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCoupon.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCoupon.java index 9c956257..c40984dc 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCoupon.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCoupon.java @@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; import java.time.LocalDateTime; public class LitemallUserCoupon { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean NOT_DELETED = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_ON = false; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static final Boolean IS_DELETED = true; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public static final Boolean DEL_FLAG_OFF = true; + /** * * This field was generated by MyBatis Generator. @@ -304,6 +342,17 @@ public class LitemallUserCoupon { return result; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public void andLogicalDeleted(boolean deleted) { + setDeleted(deleted ? IS_DELETED : NOT_DELETED); + } + /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_user_coupon @@ -312,13 +361,13 @@ public class LitemallUserCoupon { * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { - id("id"), - couponId("coupon_id"), - userId("user_id"), - orderId("order_id"), - usedTime("used_time"), - addTime("add_time"), - deleted("deleted"); + id("id", "id", "INTEGER"), + couponId("coupon_id", "couponId", "INTEGER"), + userId("user_id", "userId", "INTEGER"), + orderId("order_id", "orderId", "INTEGER"), + usedTime("used_time", "usedTime", "TIMESTAMP"), + addTime("add_time", "addTime", "TIMESTAMP"), + deleted("deleted", "deleted", "BIT"); /** * This field was generated by MyBatis Generator. @@ -329,6 +378,24 @@ public class LitemallUserCoupon { */ private final String column; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_user_coupon @@ -358,8 +425,32 @@ public class LitemallUserCoupon { * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ - Column(String column) { + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType) { this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; } /** diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCouponExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCouponExample.java index 3ecf446c..790f7638 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCouponExample.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallUserCouponExample.java @@ -111,6 +111,37 @@ public class LitemallUserCouponExample { return criteria; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallUserCouponExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallUserCouponExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_user_coupon @@ -148,37 +179,6 @@ public class LitemallUserCouponExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_user_coupon - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallUserCouponExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_user_coupon - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallUserCouponExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_user_coupon @@ -700,6 +700,29 @@ public class LitemallUserCouponExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallUserCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallUserCoupon.IS_DELETED); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user_coupon + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallUserCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallUserCoupon.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_user_coupon 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 4ceba39c..ca23a96e 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 @@ -112,6 +112,37 @@ public class LitemallUserExample { return criteria; } + /** + * 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 LitemallUserExample orderBy(String orderByClause) { + this.setOrderByClause(orderByClause); + return this; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public LitemallUserExample orderBy(String ... orderByClauses) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < orderByClauses.length; i++) { + sb.append(orderByClauses[i]); + if (i < orderByClauses.length - 1) { + sb.append(" , "); + } + } + this.setOrderByClause(sb.toString()); + return this; + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_user @@ -149,37 +180,6 @@ public class LitemallUserExample { distinct = false; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallUserExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallUserExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - /** * This class was generated by MyBatis Generator. * This class corresponds to the database table litemall_user @@ -1351,6 +1351,29 @@ public class LitemallUserExample { return this; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table litemall_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public Criteria andLogicalDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallUser.IS_DELETED) : andDeletedNotEqualTo(LitemallUser.IS_DELETED); + } + + /** + * 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 + */ + @Deprecated + public Criteria andDeleted(boolean deleted) { + return deleted ? andDeletedEqualTo(LitemallUser.IS_DELETED) : andDeletedNotEqualTo(LitemallUser.IS_DELETED); + } + /** * This interface was generated by MyBatis Generator. * This interface corresponds to the database table litemall_user 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 84a025df..a996b1b0 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 @@ -120,9 +120,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, `position`, `name`, link, url, content, start_time, end_time, enabled, add_time, + deleted + + from litemall_ad @@ -141,6 +149,30 @@ from litemall_ad where id = #{id,jdbcType=INTEGER} + @@ -421,9 +461,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, `position`, `name`, link, url, content, start_time, end_time, enabled, add_time, + deleted + + from litemall_ad @@ -433,4 +481,24 @@ limit 1 + + + update litemall_ad set deleted = 1 + + + + + + + update litemall_ad set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAddressMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAddressMapper.xml index 7f29cb0b..b287b539 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAddressMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAddressMapper.xml @@ -120,9 +120,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, `name`, user_id, province_id, city_id, area_id, address, mobile, is_default, + add_time, deleted + + from litemall_address @@ -141,6 +149,30 @@ from litemall_address where id = #{id,jdbcType=INTEGER} + @@ -421,9 +461,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, `name`, user_id, province_id, city_id, area_id, address, mobile, is_default, + add_time, deleted + + from litemall_address @@ -433,4 +481,24 @@ limit 1 + + + update litemall_address set deleted = 1 + + + + + + + update litemall_address set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdminMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdminMapper.xml index e7e988d7..c94073cb 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdminMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallAdminMapper.xml @@ -118,9 +118,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, username, `password`, last_login_ip, last_login_time, update_time, avatar, add_time, + deleted + + from litemall_admin @@ -139,6 +147,30 @@ from litemall_admin where id = #{id,jdbcType=INTEGER} + @@ -389,9 +429,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, username, `password`, last_login_ip, last_login_time, update_time, avatar, add_time, + deleted + + from litemall_admin @@ -401,4 +449,24 @@ limit 1 + + + update litemall_admin set deleted = 1 + + + + + + + update litemall_admin set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallBrandMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallBrandMapper.xml index 23aa3918..253b3407 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallBrandMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallBrandMapper.xml @@ -123,9 +123,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, `name`, list_pic_url, simple_desc, pic_url, sort_order, is_show, floor_price, + app_list_pic_url, is_new, new_pic_url, new_sort_order, add_time, deleted + + from litemall_brand @@ -144,6 +152,30 @@ from litemall_brand where id = #{id,jdbcType=INTEGER} + @@ -468,9 +508,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, `name`, list_pic_url, simple_desc, pic_url, sort_order, is_show, floor_price, + app_list_pic_url, is_new, new_pic_url, new_sort_order, add_time, deleted + + from litemall_brand @@ -480,4 +528,24 @@ limit 1 + + + update litemall_brand set deleted = 1 + + + + + + + update litemall_brand set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCartMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCartMapper.xml index 4ca2c7a3..7426219a 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCartMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCartMapper.xml @@ -162,9 +162,18 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, user_id, goods_id, goods_sn, product_id, goods_name, retail_price, `number`, + goods_specification_values, goods_specification_ids, `checked`, pic_url, add_time, + deleted + + from litemall_cart @@ -183,6 +192,30 @@ from litemall_cart where id = #{id,jdbcType=INTEGER} + @@ -507,9 +549,18 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, user_id, goods_id, goods_sn, product_id, goods_name, retail_price, `number`, + goods_specification_values, goods_specification_ids, `checked`, pic_url, add_time, + deleted + + from litemall_cart @@ -519,4 +570,24 @@ limit 1 + + + update litemall_cart set deleted = 1 + + + + + + + update litemall_cart set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.xml index 3daca795..05cf514a 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCategoryMapper.xml @@ -126,9 +126,18 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, `name`, keywords, front_desc, parent_id, sort_order, show_index, is_show, banner_url, + icon_url, img_url, wap_banner_url, `level`, `type`, front_name, add_time, deleted + + + from litemall_category @@ -147,6 +156,30 @@ from litemall_category where id = #{id,jdbcType=INTEGER} + @@ -515,9 +557,18 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, `name`, keywords, front_desc, parent_id, sort_order, show_index, is_show, banner_url, + icon_url, img_url, wap_banner_url, `level`, `type`, front_name, add_time, deleted + + + from litemall_category @@ -527,4 +578,24 @@ limit 1 + + + update litemall_category set deleted = 1 + + + + + + + update litemall_category set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCollectMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCollectMapper.xml index 4da20ad0..12b87777 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCollectMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCollectMapper.xml @@ -115,9 +115,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, user_id, value_id, is_attention, type_id, add_time, deleted + + from litemall_collect @@ -136,6 +143,30 @@ from litemall_collect where id = #{id,jdbcType=INTEGER} + @@ -358,9 +396,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, user_id, value_id, is_attention, type_id, add_time, deleted + + from litemall_collect @@ -370,4 +415,24 @@ limit 1 + + + update litemall_collect set deleted = 1 + + + + + + + update litemall_collect set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCommentMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCommentMapper.xml index 6d3eb9f3..34c16f6e 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCommentMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCommentMapper.xml @@ -156,9 +156,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, type_id, value_id, content, user_id, has_picture, pic_urls, star, add_time, deleted + + + from litemall_comment @@ -177,6 +185,30 @@ from litemall_comment where id = #{id,jdbcType=INTEGER} + @@ -443,9 +483,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, type_id, value_id, content, user_id, has_picture, pic_urls, star, add_time, deleted + + + from litemall_comment @@ -455,4 +503,24 @@ limit 1 + + + update litemall_comment set deleted = 1 + + + + + + + update litemall_comment set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCouponMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCouponMapper.xml index 433dd8f5..bfb27e54 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCouponMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCouponMapper.xml @@ -122,9 +122,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, `name`, type_money, send_type, min_amount, max_amount, min_goods_amount, send_start, + send_end, use_start, use_end, add_time, deleted + + from litemall_coupon @@ -143,6 +151,30 @@ from litemall_coupon where id = #{id,jdbcType=INTEGER} + @@ -453,9 +493,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, `name`, type_money, send_type, min_amount, max_amount, min_goods_amount, send_start, + send_end, use_start, use_end, add_time, deleted + + from litemall_coupon @@ -465,4 +513,24 @@ limit 1 + + + update litemall_coupon set deleted = 1 + + + + + + + update litemall_coupon set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.xml index 61dd882f..3e08eb2d 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.xml @@ -113,9 +113,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, user_id, goods_id, add_time, deleted + + from litemall_footprint @@ -134,6 +141,30 @@ from litemall_footprint where id = #{id,jdbcType=INTEGER} + @@ -326,9 +364,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, user_id, goods_id, add_time, deleted + + from litemall_footprint @@ -338,4 +383,24 @@ limit 1 + + + update litemall_footprint set deleted = 1 + + + + + + + update litemall_footprint set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.xml index 3e49a91b..6a20e24e 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.xml @@ -114,9 +114,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, goods_id, `value`, `attribute`, add_time, deleted + + from litemall_goods_attribute @@ -135,6 +142,30 @@ from litemall_goods_attribute where id = #{id,jdbcType=INTEGER} + @@ -341,9 +379,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, goods_id, `value`, `attribute`, add_time, deleted + + from litemall_goods_attribute @@ -353,4 +398,24 @@ limit 1 + + + update litemall_goods_attribute set deleted = 1 + + + + + + + update litemall_goods_attribute set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.xml index ab2ddd69..c8fd6a13 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.xml @@ -191,7 +191,7 @@ order by ${orderByClause} - + + select + + , + + from litemall_goods + where id = #{id,jdbcType=INTEGER} + and deleted = + + + '1' + + + '0' + + + + @@ -684,25 +728,6 @@ limit 1 - + + + update litemall_goods set deleted = 1 + + + + + + + update litemall_goods set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.xml index 897fe562..4699a139 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.xml @@ -115,9 +115,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, goods_id, `value`, pic_url, specification, add_time, deleted + + from litemall_goods_specification @@ -136,6 +143,30 @@ from litemall_goods_specification where id = #{id,jdbcType=INTEGER} + @@ -358,9 +396,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, goods_id, `value`, pic_url, specification, add_time, deleted + + from litemall_goods_specification @@ -370,4 +415,24 @@ limit 1 + + + update litemall_goods_specification set deleted = 1 + + + + + + + update litemall_goods_specification set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallIssueMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallIssueMapper.xml index f5ef9732..59a6074a 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallIssueMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallIssueMapper.xml @@ -113,9 +113,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, question, answer, add_time, deleted + + from litemall_issue @@ -134,6 +141,30 @@ from litemall_issue where id = #{id,jdbcType=INTEGER} + @@ -326,9 +364,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, question, answer, add_time, deleted + + from litemall_issue @@ -338,4 +383,24 @@ limit 1 + + + update litemall_issue set deleted = 1 + + + + + + + update litemall_issue set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.xml index ef348625..f07f66a2 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.xml @@ -117,9 +117,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, keyword, url, is_hot, is_default, is_show, sort_order, add_time, deleted + + from litemall_keyword @@ -138,6 +145,30 @@ from litemall_keyword where id = #{id,jdbcType=INTEGER} + @@ -388,9 +426,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, keyword, url, is_hot, is_default, is_show, sort_order, add_time, deleted + + from litemall_keyword @@ -400,4 +445,24 @@ limit 1 + + + update litemall_keyword set deleted = 1 + + + + + + + update litemall_keyword set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.xml index cb1e7240..2e344c0f 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.xml @@ -160,9 +160,18 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, order_id, goods_id, goods_name, goods_sn, product_id, `number`, retail_price, + goods_specification_values, goods_specification_ids, pic_url, add_time, deleted + + + from litemall_order_goods @@ -181,6 +190,30 @@ from litemall_order_goods where id = #{id,jdbcType=INTEGER} + @@ -493,9 +535,18 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, order_id, goods_id, goods_name, goods_sn, product_id, `number`, retail_price, + goods_specification_values, goods_specification_ids, pic_url, add_time, deleted + + + from litemall_order_goods @@ -505,4 +556,24 @@ limit 1 + + + update litemall_order_goods set deleted = 1 + + + + + + + update litemall_order_goods set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml index 79582598..6f2f2806 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml @@ -135,9 +135,19 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, user_id, order_sn, order_status, consignee, mobile, address, goods_price, freight_price, + coupon_price, integral_price, order_price, actual_price, pay_id, pay_status, pay_time, + ship_sn, ship_channel, ship_start_time, ship_end_time, confirm_time, end_time, + add_time, deleted + + from litemall_order @@ -156,6 +166,30 @@ from litemall_order where id = #{id,jdbcType=INTEGER} + @@ -626,9 +670,19 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, user_id, order_sn, order_status, consignee, mobile, address, goods_price, freight_price, + coupon_price, integral_price, order_price, actual_price, pay_id, pay_status, pay_time, + ship_sn, ship_channel, ship_start_time, ship_end_time, confirm_time, end_time, + add_time, deleted + + from litemall_order @@ -638,4 +692,24 @@ limit 1 + + + update litemall_order set deleted = 1 + + + + + + + update litemall_order set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallProductMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallProductMapper.xml index 4573d1aa..aa7f1110 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallProductMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallProductMapper.xml @@ -155,9 +155,17 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, goods_id, goods_specification_ids, goods_number, retail_price, url, add_time, + deleted + + from litemall_product @@ -176,6 +184,30 @@ from litemall_product where id = #{id,jdbcType=INTEGER} + @@ -412,9 +452,17 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, goods_id, goods_specification_ids, goods_number, retail_price, url, add_time, + deleted + + from litemall_product @@ -424,4 +472,24 @@ limit 1 + + + update litemall_product set deleted = 1 + + + + + + + update litemall_product set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionMapper.xml index 90991e22..5f2e2e84 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionMapper.xml @@ -113,9 +113,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, pid, `name`, `type`, code + + from litemall_region @@ -141,9 +148,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, pid, `name`, `type`, code + + from litemall_region where id = #{id,jdbcType=INTEGER} @@ -326,9 +340,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, pid, `name`, `type`, code + + from litemall_region diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.xml index 72f457ee..8a3417c4 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.xml @@ -114,9 +114,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, user_id, keyword, `from`, add_time, deleted + + from litemall_search_history @@ -135,6 +142,30 @@ from litemall_search_history where id = #{id,jdbcType=INTEGER} + @@ -341,9 +379,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, user_id, keyword, `from`, add_time, deleted + + from litemall_search_history @@ -353,4 +398,24 @@ limit 1 + + + update litemall_search_history set deleted = 1 + + + + + + + update litemall_search_history set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallStorageMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallStorageMapper.xml index 487cc894..5e78ed70 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallStorageMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallStorageMapper.xml @@ -117,9 +117,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, `key`, `name`, `type`, `size`, modified, url, add_time, deleted + + from litemall_storage @@ -138,6 +145,30 @@ from litemall_storage where id = #{id,jdbcType=INTEGER} + @@ -388,9 +426,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, `key`, `name`, `type`, `size`, modified, url, add_time, deleted + + from litemall_storage @@ -400,4 +445,24 @@ limit 1 + + + update litemall_storage set deleted = 1 + + + + + + + update litemall_storage set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallTopicMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallTopicMapper.xml index d0e23c38..dec317aa 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallTopicMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallTopicMapper.xml @@ -145,7 +145,7 @@ order by ${orderByClause} - + + select + + , + + from litemall_topic + where id = #{id,jdbcType=INTEGER} + and deleted = + + + '1' + + + '0' + + + + @@ -522,25 +564,6 @@ limit 1 - + + + update litemall_topic set deleted = 1 + + + + + + + update litemall_topic set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.xml index d1fc198b..c31d37dc 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.xml @@ -115,9 +115,16 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, coupon_id, user_id, order_id, used_time, add_time, deleted + + from litemall_user_coupon @@ -136,6 +143,30 @@ from litemall_user_coupon where id = #{id,jdbcType=INTEGER} + @@ -358,9 +396,16 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, coupon_id, user_id, order_id, used_time, add_time, deleted + + from litemall_user_coupon @@ -370,4 +415,24 @@ limit 1 + + + update litemall_user_coupon set deleted = 1 + + + + + + + update litemall_user_coupon set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserMapper.xml index 15e7a090..f86321d1 100644 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserMapper.xml +++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserMapper.xml @@ -125,9 +125,18 @@ distinct - - ${column.value} - + + + + ${column.value} + + + + id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level, + nickname, mobile, register_ip, avatar, weixin_openid, `status`, add_time, deleted + + + from litemall_user @@ -146,6 +155,30 @@ from litemall_user where id = #{id,jdbcType=INTEGER} + @@ -500,9 +542,18 @@ @project https://github.com/itfsw/mybatis-generator-plugin --> select - - ${column.value} - + + + + ${column.value} + + + + id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level, + nickname, mobile, register_ip, avatar, weixin_openid, `status`, add_time, deleted + + + from litemall_user @@ -512,4 +563,24 @@ limit 1 + + + update litemall_user set deleted = 1 + + + + + + + update litemall_user set deleted = 1 + where id = #{id,jdbcType=INTEGER} + \ No newline at end of file