Commit c6ed4cb4 authored by Junling Bu's avatar Junling Bu
Browse files

chore: mybatis第三方插件更新到1.2.10

parent 6e20baa0
......@@ -14,6 +14,15 @@ public interface LitemallProductMapper {
*/
long countByExample(LitemallProductExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallProductExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
......@@ -22,6 +31,15 @@ public interface LitemallProductMapper {
*/
int deleteByExample(LitemallProductExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
......@@ -107,6 +125,24 @@ public interface LitemallProductMapper {
*/
LitemallProduct selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
......@@ -123,6 +159,24 @@ public interface LitemallProductMapper {
*/
int updateByExample(@Param("record") LitemallProduct record, @Param("example") LitemallProductExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallProduct record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallProduct record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_product
......
......@@ -14,6 +14,15 @@ public interface LitemallSearchHistoryMapper {
*/
long countByExample(LitemallSearchHistoryExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallSearchHistoryExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
......@@ -22,6 +31,15 @@ public interface LitemallSearchHistoryMapper {
*/
int deleteByExample(LitemallSearchHistoryExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
......@@ -107,6 +125,24 @@ public interface LitemallSearchHistoryMapper {
*/
LitemallSearchHistory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallSearchHistory record, @Param("example") LitemallSearchHistoryExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallSearchHistory record, @Param("example") LitemallSearchHistoryExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
......@@ -123,6 +159,24 @@ public interface LitemallSearchHistoryMapper {
*/
int updateByExample(@Param("record") LitemallSearchHistory record, @Param("example") LitemallSearchHistoryExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallSearchHistory record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallSearchHistory record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_search_history
......
......@@ -14,6 +14,15 @@ public interface LitemallStorageMapper {
*/
long countByExample(LitemallStorageExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallStorageExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
......@@ -22,6 +31,15 @@ public interface LitemallStorageMapper {
*/
int deleteByExample(LitemallStorageExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
......@@ -107,6 +125,24 @@ public interface LitemallStorageMapper {
*/
LitemallStorage selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallStorage record, @Param("example") LitemallStorageExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallStorage record, @Param("example") LitemallStorageExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
......@@ -123,6 +159,24 @@ public interface LitemallStorageMapper {
*/
int updateByExample(@Param("record") LitemallStorage record, @Param("example") LitemallStorageExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallStorage record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallStorage record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_storage
......
......@@ -14,6 +14,15 @@ public interface LitemallSystemMapper {
*/
long countByExample(LitemallSystemExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallSystemExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
......@@ -22,6 +31,15 @@ public interface LitemallSystemMapper {
*/
int deleteByExample(LitemallSystemExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
......@@ -107,6 +125,24 @@ public interface LitemallSystemMapper {
*/
LitemallSystem selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallSystem record, @Param("example") LitemallSystemExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallSystem record, @Param("example") LitemallSystemExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
......@@ -123,6 +159,24 @@ public interface LitemallSystemMapper {
*/
int updateByExample(@Param("record") LitemallSystem record, @Param("example") LitemallSystemExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallSystem record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallSystem record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_system
......
......@@ -14,6 +14,15 @@ public interface LitemallTopicMapper {
*/
long countByExample(LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
......@@ -22,6 +31,15 @@ public interface LitemallTopicMapper {
*/
int deleteByExample(LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
......@@ -124,6 +142,24 @@ public interface LitemallTopicMapper {
*/
LitemallTopic selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
......@@ -132,6 +168,15 @@ public interface LitemallTopicMapper {
*/
int updateByExampleSelective(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleWithBLOBs(@Param("version") Integer version, @Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
......@@ -148,6 +193,24 @@ public interface LitemallTopicMapper {
*/
int updateByExample(@Param("record") LitemallTopic record, @Param("example") LitemallTopicExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallTopic record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallTopic record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
......@@ -156,6 +219,15 @@ public interface LitemallTopicMapper {
*/
int updateByPrimaryKeySelective(LitemallTopic record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeyWithBLOBs(@Param("version") Integer version, @Param("record") LitemallTopic record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_topic
......
......@@ -14,6 +14,15 @@ public interface LitemallUserFormidMapper {
*/
long countByExample(LitemallUserFormidExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallUserFormidExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
......@@ -22,6 +31,15 @@ public interface LitemallUserFormidMapper {
*/
int deleteByExample(LitemallUserFormidExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
......@@ -98,6 +116,24 @@ public interface LitemallUserFormidMapper {
*/
LitemallUserFormid selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallUserFormid record, @Param("example") LitemallUserFormidExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallUserFormid record, @Param("example") LitemallUserFormidExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
......@@ -114,6 +150,24 @@ public interface LitemallUserFormidMapper {
*/
int updateByExample(@Param("record") LitemallUserFormid record, @Param("example") LitemallUserFormidExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallUserFormid record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallUserFormid record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_formid
......
......@@ -14,6 +14,15 @@ public interface LitemallUserMapper {
*/
long countByExample(LitemallUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByExample(@Param("version") Integer version, @Param("example") LitemallUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
......@@ -22,6 +31,15 @@ public interface LitemallUserMapper {
*/
int deleteByExample(LitemallUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int deleteWithVersionByPrimaryKey(@Param("version") Integer version, @Param("key") Integer key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
......@@ -107,6 +125,24 @@ public interface LitemallUserMapper {
*/
LitemallUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExample(@Param("version") Integer version, @Param("record") LitemallUser record, @Param("example") LitemallUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByExampleSelective(@Param("version") Integer version, @Param("record") LitemallUser record, @Param("example") LitemallUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
......@@ -123,6 +159,24 @@ public interface LitemallUserMapper {
*/
int updateByExample(@Param("record") LitemallUser record, @Param("example") LitemallUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKey(@Param("version") Integer version, @Param("record") LitemallUser record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int updateWithVersionByPrimaryKeySelective(@Param("version") Integer version, @Param("record") LitemallUser record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user
......
......@@ -523,18 +523,36 @@ public class LitemallAd {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "INTEGER"),
name("name", "name", "VARCHAR"),
link("link", "link", "VARCHAR"),
url("url", "url", "VARCHAR"),
position("position", "position", "TINYINT"),
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"),
version("version", "version", "INTEGER");
id("id", "id", "INTEGER", false),
name("name", "name", "VARCHAR", true),
link("link", "link", "VARCHAR", false),
url("url", "url", "VARCHAR", false),
position("position", "position", "TINYINT", true),
content("content", "content", "VARCHAR", false),
startTime("start_time", "startTime", "TIMESTAMP", false),
endTime("end_time", "endTime", "TIMESTAMP", false),
enabled("enabled", "enabled", "BIT", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false),
version("version", "version", "INTEGER", false);
/**
* 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 static final String BEGINNING_DELIMITER = "`";
/**
* 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 static final String ENDING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
......@@ -545,6 +563,15 @@ 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 boolean isColumnNameDelimited;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_ad
......@@ -614,10 +641,11 @@ public class LitemallAd {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
......@@ -628,7 +656,7 @@ public class LitemallAd {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.column + " DESC";
return this.getEscapedColumnName() + " DESC";
}
/**
......@@ -639,7 +667,7 @@ public class LitemallAd {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String asc() {
return this.column + " ASC";
return this.getEscapedColumnName() + " ASC";
}
/**
......@@ -656,5 +684,20 @@ public class LitemallAd {
}
return columns.toArray(new Column[]{});
}
/**
* 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 getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
......@@ -523,18 +523,36 @@ public class LitemallAddress {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
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"),
version("version", "version", "INTEGER");
id("id", "id", "INTEGER", false),
name("name", "name", "VARCHAR", true),
userId("user_id", "userId", "INTEGER", false),
provinceId("province_id", "provinceId", "INTEGER", false),
cityId("city_id", "cityId", "INTEGER", false),
areaId("area_id", "areaId", "INTEGER", false),
address("address", "address", "VARCHAR", false),
mobile("mobile", "mobile", "VARCHAR", false),
isDefault("is_default", "isDefault", "BIT", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false),
version("version", "version", "INTEGER", false);
/**
* 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 static final String BEGINNING_DELIMITER = "`";
/**
* 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 static final String ENDING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
......@@ -545,6 +563,15 @@ 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 boolean isColumnNameDelimited;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_address
......@@ -614,10 +641,11 @@ public class LitemallAddress {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
......@@ -628,7 +656,7 @@ public class LitemallAddress {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.column + " DESC";
return this.getEscapedColumnName() + " DESC";
}
/**
......@@ -639,7 +667,7 @@ public class LitemallAddress {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String asc() {
return this.column + " ASC";
return this.getEscapedColumnName() + " ASC";
}
/**
......@@ -656,5 +684,20 @@ public class LitemallAddress {
}
return columns.toArray(new Column[]{});
}
/**
* 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 getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
......@@ -415,15 +415,33 @@ public class LitemallAdmin {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "INTEGER"),
username("username", "username", "VARCHAR"),
password("password", "password", "VARCHAR"),
lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR"),
lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP"),
avatar("avatar", "avatar", "VARCHAR"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT"),
version("version", "version", "INTEGER");
id("id", "id", "INTEGER", false),
username("username", "username", "VARCHAR", false),
password("password", "password", "VARCHAR", true),
lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR", false),
lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP", false),
avatar("avatar", "avatar", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false),
version("version", "version", "INTEGER", false);
/**
* 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 static final String BEGINNING_DELIMITER = "`";
/**
* 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 static final String ENDING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
......@@ -434,6 +452,15 @@ 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 boolean isColumnNameDelimited;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_admin
......@@ -503,10 +530,11 @@ public class LitemallAdmin {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
......@@ -517,7 +545,7 @@ public class LitemallAdmin {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.column + " DESC";
return this.getEscapedColumnName() + " DESC";
}
/**
......@@ -528,7 +556,7 @@ public class LitemallAdmin {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String asc() {
return this.column + " ASC";
return this.getEscapedColumnName() + " ASC";
}
/**
......@@ -545,5 +573,20 @@ public class LitemallAdmin {
}
return columns.toArray(new Column[]{});
}
/**
* 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 getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
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