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

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

1. 设置逻辑删除插件
2. 设置乐观锁插件
parent d006f89f
...@@ -51,8 +51,9 @@ public interface LitemallRegionMapper { ...@@ -51,8 +51,9 @@ public interface LitemallRegionMapper {
* This method corresponds to the database table litemall_region * This method corresponds to the database table litemall_region
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallRegion> selectByExample(LitemallRegionExample example); LitemallRegion selectOneByExample(LitemallRegionExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -61,32 +62,33 @@ public interface LitemallRegionMapper { ...@@ -61,32 +62,33 @@ public interface LitemallRegionMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallRegion> selectByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective); LitemallRegion selectOneByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region * This method corresponds to the database table litemall_region
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallRegion selectByPrimaryKey(Integer id); List<LitemallRegion> selectByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region * This method corresponds to the database table litemall_region
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallRegion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRegion.Column ... selective); List<LitemallRegion> selectByExample(LitemallRegionExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region * This method corresponds to the database table litemall_region
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
int updateByExampleSelective(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example); LitemallRegion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRegion.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -94,7 +96,7 @@ public interface LitemallRegionMapper { ...@@ -94,7 +96,7 @@ public interface LitemallRegionMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByExample(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example); LitemallRegion selectByPrimaryKey(Integer id);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -102,7 +104,7 @@ public interface LitemallRegionMapper { ...@@ -102,7 +104,7 @@ public interface LitemallRegionMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(LitemallRegion record); int updateByExampleSelective(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -110,23 +112,21 @@ public interface LitemallRegionMapper { ...@@ -110,23 +112,21 @@ public interface LitemallRegionMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKey(LitemallRegion record); int updateByExample(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region * This method corresponds to the database table litemall_region
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallRegion selectOneByExample(LitemallRegionExample example); int updateByPrimaryKeySelective(LitemallRegion record);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region * This method corresponds to the database table litemall_region
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallRegion selectOneByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective); int updateByPrimaryKey(LitemallRegion record);
} }
\ No newline at end of file
...@@ -51,8 +51,18 @@ public interface LitemallSearchHistoryMapper { ...@@ -51,8 +51,18 @@ public interface LitemallSearchHistoryMapper {
* This method corresponds to the database table litemall_search_history * This method corresponds to the database table litemall_search_history
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallSearchHistory> 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. * This method was generated by MyBatis Generator.
...@@ -69,7 +79,7 @@ public interface LitemallSearchHistoryMapper { ...@@ -69,7 +79,7 @@ public interface LitemallSearchHistoryMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
LitemallSearchHistory selectByPrimaryKey(Integer id); List<LitemallSearchHistory> selectByExample(LitemallSearchHistoryExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -80,6 +90,23 @@ public interface LitemallSearchHistoryMapper { ...@@ -80,6 +90,23 @@ public interface LitemallSearchHistoryMapper {
*/ */
LitemallSearchHistory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallSearchHistory.Column ... selective); 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history * This method corresponds to the database table litemall_search_history
...@@ -119,7 +146,7 @@ public interface LitemallSearchHistoryMapper { ...@@ -119,7 +146,7 @@ public interface LitemallSearchHistoryMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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. * This method was generated by MyBatis Generator.
...@@ -128,5 +155,5 @@ public interface LitemallSearchHistoryMapper { ...@@ -128,5 +155,5 @@ public interface LitemallSearchHistoryMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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
...@@ -51,8 +51,18 @@ public interface LitemallStorageMapper { ...@@ -51,8 +51,18 @@ public interface LitemallStorageMapper {
* This method corresponds to the database table litemall_storage * This method corresponds to the database table litemall_storage
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallStorage> 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. * This method was generated by MyBatis Generator.
...@@ -69,7 +79,7 @@ public interface LitemallStorageMapper { ...@@ -69,7 +79,7 @@ public interface LitemallStorageMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
LitemallStorage selectByPrimaryKey(Integer id); List<LitemallStorage> selectByExample(LitemallStorageExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -80,6 +90,23 @@ public interface LitemallStorageMapper { ...@@ -80,6 +90,23 @@ public interface LitemallStorageMapper {
*/ */
LitemallStorage selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallStorage.Column ... selective); 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage * This method corresponds to the database table litemall_storage
...@@ -119,7 +146,7 @@ public interface LitemallStorageMapper { ...@@ -119,7 +146,7 @@ public interface LitemallStorageMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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. * This method was generated by MyBatis Generator.
...@@ -128,5 +155,5 @@ public interface LitemallStorageMapper { ...@@ -128,5 +155,5 @@ public interface LitemallStorageMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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
...@@ -51,16 +51,27 @@ public interface LitemallTopicMapper { ...@@ -51,16 +51,27 @@ public interface LitemallTopicMapper {
* This method corresponds to the database table litemall_topic * This method corresponds to the database table litemall_topic
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallTopic> selectByExampleWithBLOBs(LitemallTopicExample example); LitemallTopic selectOneByExample(LitemallTopicExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic * This method corresponds to the database table litemall_topic
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallTopic> selectByExample(LitemallTopicExample example); 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 was generated by MyBatis Generator.
...@@ -77,7 +88,15 @@ public interface LitemallTopicMapper { ...@@ -77,7 +88,15 @@ public interface LitemallTopicMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
LitemallTopic selectByPrimaryKey(Integer id); List<LitemallTopic> selectByExampleWithBLOBs(LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
*/
List<LitemallTopic> selectByExample(LitemallTopicExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -94,15 +113,16 @@ public interface LitemallTopicMapper { ...@@ -94,15 +113,16 @@ public interface LitemallTopicMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByExampleSelective(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example); LitemallTopic selectByPrimaryKey(Integer id);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic * This method corresponds to the database table litemall_topic
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
int updateByExampleWithBLOBs(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example); LitemallTopic selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -110,7 +130,7 @@ public interface LitemallTopicMapper { ...@@ -110,7 +130,7 @@ public interface LitemallTopicMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByExample(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example); int updateByExampleSelective(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -118,7 +138,7 @@ public interface LitemallTopicMapper { ...@@ -118,7 +138,7 @@ public interface LitemallTopicMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(LitemallTopic record); int updateByExampleWithBLOBs(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -126,7 +146,7 @@ public interface LitemallTopicMapper { ...@@ -126,7 +146,7 @@ public interface LitemallTopicMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeyWithBLOBs(LitemallTopic record); int updateByExample(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -134,16 +154,23 @@ public interface LitemallTopicMapper { ...@@ -134,16 +154,23 @@ public interface LitemallTopicMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKey(LitemallTopic record); int updateByPrimaryKeySelective(LitemallTopic record);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic * This method corresponds to the database table litemall_topic
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallTopic selectOneByExample(LitemallTopicExample example); int updateByPrimaryKeyWithBLOBs(LitemallTopic record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
*/
int updateByPrimaryKey(LitemallTopic record);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -152,7 +179,7 @@ public interface LitemallTopicMapper { ...@@ -152,7 +179,7 @@ public interface LitemallTopicMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallTopic selectOneByExampleSelective(@Param("example") LitemallTopicExample example, @Param("selective") LitemallTopic.Column ... selective); int logicalDeleteByExample(@Param("example") LitemallTopicExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -161,5 +188,5 @@ public interface LitemallTopicMapper { ...@@ -161,5 +188,5 @@ public interface LitemallTopicMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
LitemallTopic selectOneByExampleWithBLOBs(LitemallTopicExample example); int logicalDeleteByPrimaryKey(Integer id);
} }
\ No newline at end of file
...@@ -51,8 +51,18 @@ public interface LitemallUserCouponMapper { ...@@ -51,8 +51,18 @@ public interface LitemallUserCouponMapper {
* This method corresponds to the database table litemall_user_coupon * This method corresponds to the database table litemall_user_coupon
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallUserCoupon> 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. * This method was generated by MyBatis Generator.
...@@ -69,7 +79,7 @@ public interface LitemallUserCouponMapper { ...@@ -69,7 +79,7 @@ public interface LitemallUserCouponMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
LitemallUserCoupon selectByPrimaryKey(Integer id); List<LitemallUserCoupon> selectByExample(LitemallUserCouponExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -80,6 +90,23 @@ public interface LitemallUserCouponMapper { ...@@ -80,6 +90,23 @@ public interface LitemallUserCouponMapper {
*/ */
LitemallUserCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUserCoupon.Column ... selective); 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon * This method corresponds to the database table litemall_user_coupon
...@@ -119,7 +146,7 @@ public interface LitemallUserCouponMapper { ...@@ -119,7 +146,7 @@ public interface LitemallUserCouponMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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. * This method was generated by MyBatis Generator.
...@@ -128,5 +155,5 @@ public interface LitemallUserCouponMapper { ...@@ -128,5 +155,5 @@ public interface LitemallUserCouponMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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
...@@ -51,8 +51,18 @@ public interface LitemallUserMapper { ...@@ -51,8 +51,18 @@ public interface LitemallUserMapper {
* This method corresponds to the database table litemall_user * This method corresponds to the database table litemall_user
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
List<LitemallUser> 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. * This method was generated by MyBatis Generator.
...@@ -69,7 +79,7 @@ public interface LitemallUserMapper { ...@@ -69,7 +79,7 @@ public interface LitemallUserMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
LitemallUser selectByPrimaryKey(Integer id); List<LitemallUser> selectByExample(LitemallUserExample example);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -80,6 +90,23 @@ public interface LitemallUserMapper { ...@@ -80,6 +90,23 @@ public interface LitemallUserMapper {
*/ */
LitemallUser selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUser.Column ... selective); 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user * This method corresponds to the database table litemall_user
...@@ -119,7 +146,7 @@ public interface LitemallUserMapper { ...@@ -119,7 +146,7 @@ public interface LitemallUserMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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. * This method was generated by MyBatis Generator.
...@@ -128,5 +155,5 @@ public interface LitemallUserMapper { ...@@ -128,5 +155,5 @@ public interface LitemallUserMapper {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @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
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallAd { 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. * This field was generated by MyBatis Generator.
...@@ -448,6 +486,17 @@ public class LitemallAd { ...@@ -448,6 +486,17 @@ public class LitemallAd {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_ad * This enum corresponds to the database table litemall_ad
...@@ -456,17 +505,17 @@ public class LitemallAd { ...@@ -456,17 +505,17 @@ public class LitemallAd {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
position("position"), position("position", "position", "INTEGER"),
name("name"), name("name", "name", "VARCHAR"),
link("link"), link("link", "link", "VARCHAR"),
url("url"), url("url", "url", "VARCHAR"),
content("content"), content("content", "content", "VARCHAR"),
startTime("start_time"), startTime("start_time", "startTime", "TIMESTAMP"),
endTime("end_time"), endTime("end_time", "endTime", "TIMESTAMP"),
enabled("enabled"), enabled("enabled", "enabled", "BIT"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -477,6 +526,24 @@ public class LitemallAd { ...@@ -477,6 +526,24 @@ public class LitemallAd {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad * This method corresponds to the database table litemall_ad
...@@ -506,8 +573,32 @@ public class LitemallAd { ...@@ -506,8 +573,32 @@ public class LitemallAd {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallAdExample { ...@@ -116,13 +116,11 @@ public class LitemallAdExample {
* This method corresponds to the database table litemall_ad * This method corresponds to the database table litemall_ad
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallAdExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallAdExample { ...@@ -130,10 +128,18 @@ public class LitemallAdExample {
* This method corresponds to the database table litemall_ad * This method corresponds to the database table litemall_ad
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallAdExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallAdExample { ...@@ -142,10 +148,12 @@ public class LitemallAdExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallAdExample { ...@@ -153,11 +161,10 @@ public class LitemallAdExample {
* This method corresponds to the database table litemall_ad * This method corresponds to the database table litemall_ad
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallAdExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallAdExample { ...@@ -165,18 +172,11 @@ public class LitemallAdExample {
* This method corresponds to the database table litemall_ad * This method corresponds to the database table litemall_ad
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallAdExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -980,6 +980,29 @@ public class LitemallAdExample { ...@@ -980,6 +980,29 @@ public class LitemallAdExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_ad * This interface corresponds to the database table litemall_ad
......
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallAddress { 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. * This field was generated by MyBatis Generator.
...@@ -448,6 +486,17 @@ public class LitemallAddress { ...@@ -448,6 +486,17 @@ public class LitemallAddress {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_address * This enum corresponds to the database table litemall_address
...@@ -456,17 +505,17 @@ public class LitemallAddress { ...@@ -456,17 +505,17 @@ public class LitemallAddress {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
name("name"), name("name", "name", "VARCHAR"),
userId("user_id"), userId("user_id", "userId", "INTEGER"),
provinceId("province_id"), provinceId("province_id", "provinceId", "INTEGER"),
cityId("city_id"), cityId("city_id", "cityId", "INTEGER"),
areaId("area_id"), areaId("area_id", "areaId", "INTEGER"),
address("address"), address("address", "address", "VARCHAR"),
mobile("mobile"), mobile("mobile", "mobile", "VARCHAR"),
isDefault("is_default"), isDefault("is_default", "isDefault", "BIT"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -477,6 +526,24 @@ public class LitemallAddress { ...@@ -477,6 +526,24 @@ public class LitemallAddress {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address * This method corresponds to the database table litemall_address
...@@ -506,8 +573,32 @@ public class LitemallAddress { ...@@ -506,8 +573,32 @@ public class LitemallAddress {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallAddressExample { ...@@ -116,13 +116,11 @@ public class LitemallAddressExample {
* This method corresponds to the database table litemall_address * This method corresponds to the database table litemall_address
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallAddressExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallAddressExample { ...@@ -130,10 +128,18 @@ public class LitemallAddressExample {
* This method corresponds to the database table litemall_address * This method corresponds to the database table litemall_address
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallAddressExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallAddressExample { ...@@ -142,10 +148,12 @@ public class LitemallAddressExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallAddressExample { ...@@ -153,11 +161,10 @@ public class LitemallAddressExample {
* This method corresponds to the database table litemall_address * This method corresponds to the database table litemall_address
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallAddressExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallAddressExample { ...@@ -165,18 +172,11 @@ public class LitemallAddressExample {
* This method corresponds to the database table litemall_address * This method corresponds to the database table litemall_address
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallAddressExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -970,6 +970,29 @@ public class LitemallAddressExample { ...@@ -970,6 +970,29 @@ public class LitemallAddressExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_address * This interface corresponds to the database table litemall_address
......
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallAdmin { 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. * This field was generated by MyBatis Generator.
...@@ -376,6 +414,17 @@ public class LitemallAdmin { ...@@ -376,6 +414,17 @@ public class LitemallAdmin {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_admin * This enum corresponds to the database table litemall_admin
...@@ -384,15 +433,15 @@ public class LitemallAdmin { ...@@ -384,15 +433,15 @@ public class LitemallAdmin {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
username("username"), username("username", "username", "VARCHAR"),
password("password"), password("password", "password", "VARCHAR"),
lastLoginIp("last_login_ip"), lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR"),
lastLoginTime("last_login_time"), lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP"),
updateTime("update_time"), updateTime("update_time", "updateTime", "TIMESTAMP"),
avatar("avatar"), avatar("avatar", "avatar", "VARCHAR"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -403,6 +452,24 @@ public class LitemallAdmin { ...@@ -403,6 +452,24 @@ public class LitemallAdmin {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin * This method corresponds to the database table litemall_admin
...@@ -432,8 +499,32 @@ public class LitemallAdmin { ...@@ -432,8 +499,32 @@ public class LitemallAdmin {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallAdminExample { ...@@ -116,13 +116,11 @@ public class LitemallAdminExample {
* This method corresponds to the database table litemall_admin * This method corresponds to the database table litemall_admin
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallAdminExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallAdminExample { ...@@ -130,10 +128,18 @@ public class LitemallAdminExample {
* This method corresponds to the database table litemall_admin * This method corresponds to the database table litemall_admin
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallAdminExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallAdminExample { ...@@ -142,10 +148,12 @@ public class LitemallAdminExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallAdminExample { ...@@ -153,11 +161,10 @@ public class LitemallAdminExample {
* This method corresponds to the database table litemall_admin * This method corresponds to the database table litemall_admin
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallAdminExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallAdminExample { ...@@ -165,18 +172,11 @@ public class LitemallAdminExample {
* This method corresponds to the database table litemall_admin * This method corresponds to the database table litemall_admin
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallAdminExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -860,6 +860,29 @@ public class LitemallAdminExample { ...@@ -860,6 +860,29 @@ public class LitemallAdminExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_admin * This interface corresponds to the database table litemall_admin
......
...@@ -4,6 +4,44 @@ import java.math.BigDecimal; ...@@ -4,6 +4,44 @@ import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallBrand { 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. * This field was generated by MyBatis Generator.
...@@ -557,6 +595,17 @@ public class LitemallBrand { ...@@ -557,6 +595,17 @@ public class LitemallBrand {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_brand * This enum corresponds to the database table litemall_brand
...@@ -565,20 +614,20 @@ public class LitemallBrand { ...@@ -565,20 +614,20 @@ public class LitemallBrand {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
name("name"), name("name", "name", "VARCHAR"),
listPicUrl("list_pic_url"), listPicUrl("list_pic_url", "listPicUrl", "VARCHAR"),
simpleDesc("simple_desc"), simpleDesc("simple_desc", "simpleDesc", "VARCHAR"),
picUrl("pic_url"), picUrl("pic_url", "picUrl", "VARCHAR"),
sortOrder("sort_order"), sortOrder("sort_order", "sortOrder", "TINYINT"),
isShow("is_show"), isShow("is_show", "isShow", "BIT"),
floorPrice("floor_price"), floorPrice("floor_price", "floorPrice", "DECIMAL"),
appListPicUrl("app_list_pic_url"), appListPicUrl("app_list_pic_url", "appListPicUrl", "VARCHAR"),
isNew("is_new"), isNew("is_new", "isNew", "BIT"),
newPicUrl("new_pic_url"), newPicUrl("new_pic_url", "newPicUrl", "VARCHAR"),
newSortOrder("new_sort_order"), newSortOrder("new_sort_order", "newSortOrder", "TINYINT"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -589,6 +638,24 @@ public class LitemallBrand { ...@@ -589,6 +638,24 @@ public class LitemallBrand {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand * This method corresponds to the database table litemall_brand
...@@ -618,8 +685,32 @@ public class LitemallBrand { ...@@ -618,8 +685,32 @@ public class LitemallBrand {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -117,13 +117,11 @@ public class LitemallBrandExample { ...@@ -117,13 +117,11 @@ public class LitemallBrandExample {
* This method corresponds to the database table litemall_brand * This method corresponds to the database table litemall_brand
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallBrandExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -131,10 +129,18 @@ public class LitemallBrandExample { ...@@ -131,10 +129,18 @@ public class LitemallBrandExample {
* This method corresponds to the database table litemall_brand * This method corresponds to the database table litemall_brand
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallBrandExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -143,10 +149,12 @@ public class LitemallBrandExample { ...@@ -143,10 +149,12 @@ public class LitemallBrandExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -154,11 +162,10 @@ public class LitemallBrandExample { ...@@ -154,11 +162,10 @@ public class LitemallBrandExample {
* This method corresponds to the database table litemall_brand * This method corresponds to the database table litemall_brand
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallBrandExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -166,18 +173,11 @@ public class LitemallBrandExample { ...@@ -166,18 +173,11 @@ public class LitemallBrandExample {
* This method corresponds to the database table litemall_brand * This method corresponds to the database table litemall_brand
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallBrandExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -1181,6 +1181,29 @@ public class LitemallBrandExample { ...@@ -1181,6 +1181,29 @@ public class LitemallBrandExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_brand * This interface corresponds to the database table litemall_brand
......
...@@ -5,6 +5,44 @@ import java.time.LocalDateTime; ...@@ -5,6 +5,44 @@ import java.time.LocalDateTime;
import java.util.Arrays; import java.util.Arrays;
public class LitemallCart { 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. * This field was generated by MyBatis Generator.
...@@ -558,6 +596,17 @@ public class LitemallCart { ...@@ -558,6 +596,17 @@ public class LitemallCart {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_cart * This enum corresponds to the database table litemall_cart
...@@ -566,20 +615,20 @@ public class LitemallCart { ...@@ -566,20 +615,20 @@ public class LitemallCart {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
userId("user_id"), userId("user_id", "userId", "INTEGER"),
goodsId("goods_id"), goodsId("goods_id", "goodsId", "INTEGER"),
goodsSn("goods_sn"), goodsSn("goods_sn", "goodsSn", "VARCHAR"),
productId("product_id"), productId("product_id", "productId", "INTEGER"),
goodsName("goods_name"), goodsName("goods_name", "goodsName", "VARCHAR"),
retailPrice("retail_price"), retailPrice("retail_price", "retailPrice", "DECIMAL"),
number("number"), number("number", "number", "SMALLINT"),
goodsSpecificationValues("goods_specification_values"), goodsSpecificationValues("goods_specification_values", "goodsSpecificationValues", "VARCHAR"),
goodsSpecificationIds("goods_specification_ids"), goodsSpecificationIds("goods_specification_ids", "goodsSpecificationIds", "CHAR"),
checked("checked"), checked("checked", "checked", "BIT"),
picUrl("pic_url"), picUrl("pic_url", "picUrl", "VARCHAR"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -590,6 +639,24 @@ public class LitemallCart { ...@@ -590,6 +639,24 @@ public class LitemallCart {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart * This method corresponds to the database table litemall_cart
...@@ -619,8 +686,32 @@ public class LitemallCart { ...@@ -619,8 +686,32 @@ public class LitemallCart {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -117,13 +117,11 @@ public class LitemallCartExample { ...@@ -117,13 +117,11 @@ public class LitemallCartExample {
* This method corresponds to the database table litemall_cart * This method corresponds to the database table litemall_cart
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallCartExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -131,10 +129,18 @@ public class LitemallCartExample { ...@@ -131,10 +129,18 @@ public class LitemallCartExample {
* This method corresponds to the database table litemall_cart * This method corresponds to the database table litemall_cart
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallCartExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -143,10 +149,12 @@ public class LitemallCartExample { ...@@ -143,10 +149,12 @@ public class LitemallCartExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -154,11 +162,10 @@ public class LitemallCartExample { ...@@ -154,11 +162,10 @@ public class LitemallCartExample {
* This method corresponds to the database table litemall_cart * This method corresponds to the database table litemall_cart
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCartExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -166,18 +173,11 @@ public class LitemallCartExample { ...@@ -166,18 +173,11 @@ public class LitemallCartExample {
* This method corresponds to the database table litemall_cart * This method corresponds to the database table litemall_cart
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCartExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -1205,6 +1205,29 @@ public class LitemallCartExample { ...@@ -1205,6 +1205,29 @@ public class LitemallCartExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_cart * This interface corresponds to the database table litemall_cart
......
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallCategory { 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. * This field was generated by MyBatis Generator.
...@@ -664,6 +702,17 @@ public class LitemallCategory { ...@@ -664,6 +702,17 @@ public class LitemallCategory {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_category * This enum corresponds to the database table litemall_category
...@@ -672,23 +721,23 @@ public class LitemallCategory { ...@@ -672,23 +721,23 @@ public class LitemallCategory {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
name("name"), name("name", "name", "VARCHAR"),
keywords("keywords"), keywords("keywords", "keywords", "VARCHAR"),
frontDesc("front_desc"), frontDesc("front_desc", "frontDesc", "VARCHAR"),
parentId("parent_id"), parentId("parent_id", "parentId", "INTEGER"),
sortOrder("sort_order"), sortOrder("sort_order", "sortOrder", "TINYINT"),
showIndex("show_index"), showIndex("show_index", "showIndex", "TINYINT"),
isShow("is_show"), isShow("is_show", "isShow", "BIT"),
bannerUrl("banner_url"), bannerUrl("banner_url", "bannerUrl", "VARCHAR"),
iconUrl("icon_url"), iconUrl("icon_url", "iconUrl", "VARCHAR"),
imgUrl("img_url"), imgUrl("img_url", "imgUrl", "VARCHAR"),
wapBannerUrl("wap_banner_url"), wapBannerUrl("wap_banner_url", "wapBannerUrl", "VARCHAR"),
level("level"), level("level", "level", "VARCHAR"),
type("type"), type("type", "type", "INTEGER"),
frontName("front_name"), frontName("front_name", "frontName", "VARCHAR"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -699,6 +748,24 @@ public class LitemallCategory { ...@@ -699,6 +748,24 @@ public class LitemallCategory {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category * This method corresponds to the database table litemall_category
...@@ -728,8 +795,32 @@ public class LitemallCategory { ...@@ -728,8 +795,32 @@ public class LitemallCategory {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallCategoryExample { ...@@ -116,13 +116,11 @@ public class LitemallCategoryExample {
* This method corresponds to the database table litemall_category * This method corresponds to the database table litemall_category
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallCategoryExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallCategoryExample { ...@@ -130,10 +128,18 @@ public class LitemallCategoryExample {
* This method corresponds to the database table litemall_category * This method corresponds to the database table litemall_category
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallCategoryExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallCategoryExample { ...@@ -142,10 +148,12 @@ public class LitemallCategoryExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallCategoryExample { ...@@ -153,11 +161,10 @@ public class LitemallCategoryExample {
* This method corresponds to the database table litemall_category * This method corresponds to the database table litemall_category
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCategoryExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallCategoryExample { ...@@ -165,18 +172,11 @@ public class LitemallCategoryExample {
* This method corresponds to the database table litemall_category * This method corresponds to the database table litemall_category
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCategoryExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -1390,6 +1390,29 @@ public class LitemallCategoryExample { ...@@ -1390,6 +1390,29 @@ public class LitemallCategoryExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_category * This interface corresponds to the database table litemall_category
......
...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain; ...@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class LitemallCollect { 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. * This field was generated by MyBatis Generator.
...@@ -304,6 +342,17 @@ public class LitemallCollect { ...@@ -304,6 +342,17 @@ public class LitemallCollect {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_collect * This enum corresponds to the database table litemall_collect
...@@ -312,13 +361,13 @@ public class LitemallCollect { ...@@ -312,13 +361,13 @@ public class LitemallCollect {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public enum Column { public enum Column {
id("id"), id("id", "id", "INTEGER"),
userId("user_id"), userId("user_id", "userId", "INTEGER"),
valueId("value_id"), valueId("value_id", "valueId", "INTEGER"),
isAttention("is_attention"), isAttention("is_attention", "isAttention", "BIT"),
typeId("type_id"), typeId("type_id", "typeId", "INTEGER"),
addTime("add_time"), addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted"); deleted("deleted", "deleted", "BIT");
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
...@@ -329,6 +378,24 @@ public class LitemallCollect { ...@@ -329,6 +378,24 @@ public class LitemallCollect {
*/ */
private final String column; 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 was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect * This method corresponds to the database table litemall_collect
...@@ -358,8 +425,32 @@ public class LitemallCollect { ...@@ -358,8 +425,32 @@ public class LitemallCollect {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
Column(String column) { public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_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.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
} }
/** /**
......
...@@ -116,13 +116,11 @@ public class LitemallCollectExample { ...@@ -116,13 +116,11 @@ public class LitemallCollectExample {
* This method corresponds to the database table litemall_collect * This method corresponds to the database table litemall_collect
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria createCriteria() { public LitemallCollectExample orderBy(String orderByClause) {
Criteria criteria = createCriteriaInternal(); this.setOrderByClause(orderByClause);
if (oredCriteria.size() == 0) { return this;
oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -130,10 +128,18 @@ public class LitemallCollectExample { ...@@ -130,10 +128,18 @@ public class LitemallCollectExample {
* This method corresponds to the database table litemall_collect * This method corresponds to the database table litemall_collect
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
protected Criteria createCriteriaInternal() { public LitemallCollectExample orderBy(String ... orderByClauses) {
Criteria criteria = new Criteria(this); StringBuffer sb = new StringBuffer();
return criteria; for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -142,10 +148,12 @@ public class LitemallCollectExample { ...@@ -142,10 +148,12 @@ public class LitemallCollectExample {
* *
* @mbg.generated * @mbg.generated
*/ */
public void clear() { public Criteria createCriteria() {
oredCriteria.clear(); Criteria criteria = createCriteriaInternal();
orderByClause = null; if (oredCriteria.size() == 0) {
distinct = false; oredCriteria.add(criteria);
}
return criteria;
} }
/** /**
...@@ -153,11 +161,10 @@ public class LitemallCollectExample { ...@@ -153,11 +161,10 @@ public class LitemallCollectExample {
* This method corresponds to the database table litemall_collect * This method corresponds to the database table litemall_collect
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCollectExample orderBy(String orderByClause) { protected Criteria createCriteriaInternal() {
this.setOrderByClause(orderByClause); Criteria criteria = new Criteria(this);
return this; return criteria;
} }
/** /**
...@@ -165,18 +172,11 @@ public class LitemallCollectExample { ...@@ -165,18 +172,11 @@ public class LitemallCollectExample {
* This method corresponds to the database table litemall_collect * This method corresponds to the database table litemall_collect
* *
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public LitemallCollectExample orderBy(String ... orderByClauses) { public void clear() {
StringBuffer sb = new StringBuffer(); oredCriteria.clear();
for (int i = 0; i < orderByClauses.length; i++) { orderByClause = null;
sb.append(orderByClauses[i]); distinct = false;
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
} }
/** /**
...@@ -700,6 +700,29 @@ public class LitemallCollectExample { ...@@ -700,6 +700,29 @@ public class LitemallCollectExample {
return this; 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 was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_collect * This interface corresponds to the database table litemall_collect
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment