diff --git a/hai-service/src/main/java/com/hai/dao/HighBrandMapper.java b/hai-service/src/main/java/com/hai/dao/HighBrandMapper.java new file mode 100644 index 00000000..37df651c --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighBrandMapper.java @@ -0,0 +1,125 @@ +package com.hai.dao; + +import com.hai.entity.HighBrand; +import com.hai.entity.HighBrandExample; +import java.util.List; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.DeleteProvider; +import org.apache.ibatis.annotations.Insert; +import org.apache.ibatis.annotations.InsertProvider; +import org.apache.ibatis.annotations.Options; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.annotations.Update; +import org.apache.ibatis.annotations.UpdateProvider; +import org.apache.ibatis.type.JdbcType; +import org.springframework.stereotype.Repository; + +/** + * + * 代码由工具生成,请勿修改!!! + * 如果需要扩展请在其父类进行扩展 + * + **/ +@Repository +public interface HighBrandMapper extends HighBrandMapperExt { + @SelectProvider(type=HighBrandSqlProvider.class, method="countByExample") + long countByExample(HighBrandExample example); + + @DeleteProvider(type=HighBrandSqlProvider.class, method="deleteByExample") + int deleteByExample(HighBrandExample example); + + @Delete({ + "delete from high_brand", + "where id = #{id,jdbcType=INTEGER}" + }) + int deleteByPrimaryKey(Integer id); + + @Insert({ + "insert into high_brand (title, img, ", + "good_type_id, created_user_id, ", + "created_time, updated_user_id, ", + "updated_time, `status`, ", + "ext_1, ext_2, ext_3)", + "values (#{title,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", + "#{goodTypeId,jdbcType=INTEGER}, #{createdUserId,jdbcType=VARCHAR}, ", + "#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=VARCHAR}, ", + "#{updatedTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(HighBrand record); + + @InsertProvider(type=HighBrandSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(HighBrand record); + + @SelectProvider(type=HighBrandSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), + @Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), + @Result(column="good_type_id", property="goodTypeId", jdbcType=JdbcType.INTEGER), + @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + List selectByExample(HighBrandExample example); + + @Select({ + "select", + "id, title, img, good_type_id, created_user_id, created_time, updated_user_id, ", + "updated_time, `status`, ext_1, ext_2, ext_3", + "from high_brand", + "where id = #{id,jdbcType=INTEGER}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), + @Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), + @Result(column="good_type_id", property="goodTypeId", jdbcType=JdbcType.INTEGER), + @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + HighBrand selectByPrimaryKey(Integer id); + + @UpdateProvider(type=HighBrandSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") HighBrand record, @Param("example") HighBrandExample example); + + @UpdateProvider(type=HighBrandSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") HighBrand record, @Param("example") HighBrandExample example); + + @UpdateProvider(type=HighBrandSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(HighBrand record); + + @Update({ + "update high_brand", + "set title = #{title,jdbcType=VARCHAR},", + "img = #{img,jdbcType=VARCHAR},", + "good_type_id = #{goodTypeId,jdbcType=INTEGER},", + "created_user_id = #{createdUserId,jdbcType=VARCHAR},", + "created_time = #{createdTime,jdbcType=TIMESTAMP},", + "updated_user_id = #{updatedUserId,jdbcType=VARCHAR},", + "updated_time = #{updatedTime,jdbcType=TIMESTAMP},", + "`status` = #{status,jdbcType=INTEGER},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=INTEGER}" + }) + int updateByPrimaryKey(HighBrand record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighBrandMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighBrandMapperExt.java new file mode 100644 index 00000000..6f4556c0 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighBrandMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface HighBrandMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighBrandSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighBrandSqlProvider.java new file mode 100644 index 00000000..c5b6b899 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighBrandSqlProvider.java @@ -0,0 +1,332 @@ +package com.hai.dao; + +import com.hai.entity.HighBrand; +import com.hai.entity.HighBrandExample.Criteria; +import com.hai.entity.HighBrandExample.Criterion; +import com.hai.entity.HighBrandExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class HighBrandSqlProvider { + + public String countByExample(HighBrandExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("high_brand"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(HighBrandExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("high_brand"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(HighBrand record) { + SQL sql = new SQL(); + sql.INSERT_INTO("high_brand"); + + if (record.getTitle() != null) { + sql.VALUES("title", "#{title,jdbcType=VARCHAR}"); + } + + if (record.getImg() != null) { + sql.VALUES("img", "#{img,jdbcType=VARCHAR}"); + } + + if (record.getGoodTypeId() != null) { + sql.VALUES("good_type_id", "#{goodTypeId,jdbcType=INTEGER}"); + } + + if (record.getCreatedUserId() != null) { + sql.VALUES("created_user_id", "#{createdUserId,jdbcType=VARCHAR}"); + } + + if (record.getCreatedTime() != null) { + sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=VARCHAR}"); + } + + if (record.getUpdatedTime() != null) { + sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(HighBrandExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("title"); + sql.SELECT("img"); + sql.SELECT("good_type_id"); + sql.SELECT("created_user_id"); + sql.SELECT("created_time"); + sql.SELECT("updated_user_id"); + sql.SELECT("updated_time"); + sql.SELECT("`status`"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("high_brand"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + HighBrand record = (HighBrand) parameter.get("record"); + HighBrandExample example = (HighBrandExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("high_brand"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=INTEGER}"); + } + + if (record.getTitle() != null) { + sql.SET("title = #{record.title,jdbcType=VARCHAR}"); + } + + if (record.getImg() != null) { + sql.SET("img = #{record.img,jdbcType=VARCHAR}"); + } + + if (record.getGoodTypeId() != null) { + sql.SET("good_type_id = #{record.goodTypeId,jdbcType=INTEGER}"); + } + + if (record.getCreatedUserId() != null) { + sql.SET("created_user_id = #{record.createdUserId,jdbcType=VARCHAR}"); + } + + if (record.getCreatedTime() != null) { + sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=VARCHAR}"); + } + + if (record.getUpdatedTime() != null) { + sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("high_brand"); + + sql.SET("id = #{record.id,jdbcType=INTEGER}"); + sql.SET("title = #{record.title,jdbcType=VARCHAR}"); + sql.SET("img = #{record.img,jdbcType=VARCHAR}"); + sql.SET("good_type_id = #{record.goodTypeId,jdbcType=INTEGER}"); + sql.SET("created_user_id = #{record.createdUserId,jdbcType=VARCHAR}"); + sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); + sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=VARCHAR}"); + sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + HighBrandExample example = (HighBrandExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(HighBrand record) { + SQL sql = new SQL(); + sql.UPDATE("high_brand"); + + if (record.getTitle() != null) { + sql.SET("title = #{title,jdbcType=VARCHAR}"); + } + + if (record.getImg() != null) { + sql.SET("img = #{img,jdbcType=VARCHAR}"); + } + + if (record.getGoodTypeId() != null) { + sql.SET("good_type_id = #{goodTypeId,jdbcType=INTEGER}"); + } + + if (record.getCreatedUserId() != null) { + sql.SET("created_user_id = #{createdUserId,jdbcType=VARCHAR}"); + } + + if (record.getCreatedTime() != null) { + sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.SET("updated_user_id = #{updatedUserId,jdbcType=VARCHAR}"); + } + + if (record.getUpdatedTime() != null) { + sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=INTEGER}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, HighBrandExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapper.java b/hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapper.java new file mode 100644 index 00000000..e62e7c80 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapper.java @@ -0,0 +1,122 @@ +package com.hai.dao; + +import com.hai.entity.HighGoodsType; +import com.hai.entity.HighGoodsTypeExample; +import java.util.List; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.DeleteProvider; +import org.apache.ibatis.annotations.Insert; +import org.apache.ibatis.annotations.InsertProvider; +import org.apache.ibatis.annotations.Options; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.annotations.Update; +import org.apache.ibatis.annotations.UpdateProvider; +import org.apache.ibatis.type.JdbcType; +import org.springframework.stereotype.Repository; + +/** + * + * 代码由工具生成,请勿修改!!! + * 如果需要扩展请在其父类进行扩展 + * + **/ +@Repository +public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { + @SelectProvider(type=HighGoodsTypeSqlProvider.class, method="countByExample") + long countByExample(HighGoodsTypeExample example); + + @DeleteProvider(type=HighGoodsTypeSqlProvider.class, method="deleteByExample") + int deleteByExample(HighGoodsTypeExample example); + + @Delete({ + "delete from high_goods_type", + "where id = #{id,jdbcType=INTEGER}" + }) + int deleteByPrimaryKey(Integer id); + + @Insert({ + "insert into high_goods_type (title, img, ", + "created_user_id, created_time, ", + "updated_user_id, updated_time, ", + "`status`, ext_1, ext_2, ", + "ext_3)", + "values (#{title,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", + "#{createdUserId,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP}, ", + "#{updatedUserId,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP}, ", + "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", + "#{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(HighGoodsType record); + + @InsertProvider(type=HighGoodsTypeSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(HighGoodsType record); + + @SelectProvider(type=HighGoodsTypeSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), + @Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), + @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + List selectByExample(HighGoodsTypeExample example); + + @Select({ + "select", + "id, title, img, created_user_id, created_time, updated_user_id, updated_time, ", + "`status`, ext_1, ext_2, ext_3", + "from high_goods_type", + "where id = #{id,jdbcType=INTEGER}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), + @Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), + @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.VARCHAR), + @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + HighGoodsType selectByPrimaryKey(Integer id); + + @UpdateProvider(type=HighGoodsTypeSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") HighGoodsType record, @Param("example") HighGoodsTypeExample example); + + @UpdateProvider(type=HighGoodsTypeSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") HighGoodsType record, @Param("example") HighGoodsTypeExample example); + + @UpdateProvider(type=HighGoodsTypeSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(HighGoodsType record); + + @Update({ + "update high_goods_type", + "set title = #{title,jdbcType=VARCHAR},", + "img = #{img,jdbcType=VARCHAR},", + "created_user_id = #{createdUserId,jdbcType=VARCHAR},", + "created_time = #{createdTime,jdbcType=TIMESTAMP},", + "updated_user_id = #{updatedUserId,jdbcType=VARCHAR},", + "updated_time = #{updatedTime,jdbcType=TIMESTAMP},", + "`status` = #{status,jdbcType=INTEGER},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=INTEGER}" + }) + int updateByPrimaryKey(HighGoodsType record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapperExt.java new file mode 100644 index 00000000..c755e881 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface HighGoodsTypeMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighGoodsTypeSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighGoodsTypeSqlProvider.java new file mode 100644 index 00000000..9f3c363f --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighGoodsTypeSqlProvider.java @@ -0,0 +1,318 @@ +package com.hai.dao; + +import com.hai.entity.HighGoodsType; +import com.hai.entity.HighGoodsTypeExample.Criteria; +import com.hai.entity.HighGoodsTypeExample.Criterion; +import com.hai.entity.HighGoodsTypeExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class HighGoodsTypeSqlProvider { + + public String countByExample(HighGoodsTypeExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("high_goods_type"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(HighGoodsTypeExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("high_goods_type"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(HighGoodsType record) { + SQL sql = new SQL(); + sql.INSERT_INTO("high_goods_type"); + + if (record.getTitle() != null) { + sql.VALUES("title", "#{title,jdbcType=VARCHAR}"); + } + + if (record.getImg() != null) { + sql.VALUES("img", "#{img,jdbcType=VARCHAR}"); + } + + if (record.getCreatedUserId() != null) { + sql.VALUES("created_user_id", "#{createdUserId,jdbcType=VARCHAR}"); + } + + if (record.getCreatedTime() != null) { + sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=VARCHAR}"); + } + + if (record.getUpdatedTime() != null) { + sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(HighGoodsTypeExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("title"); + sql.SELECT("img"); + sql.SELECT("created_user_id"); + sql.SELECT("created_time"); + sql.SELECT("updated_user_id"); + sql.SELECT("updated_time"); + sql.SELECT("`status`"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("high_goods_type"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + HighGoodsType record = (HighGoodsType) parameter.get("record"); + HighGoodsTypeExample example = (HighGoodsTypeExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("high_goods_type"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=INTEGER}"); + } + + if (record.getTitle() != null) { + sql.SET("title = #{record.title,jdbcType=VARCHAR}"); + } + + if (record.getImg() != null) { + sql.SET("img = #{record.img,jdbcType=VARCHAR}"); + } + + if (record.getCreatedUserId() != null) { + sql.SET("created_user_id = #{record.createdUserId,jdbcType=VARCHAR}"); + } + + if (record.getCreatedTime() != null) { + sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=VARCHAR}"); + } + + if (record.getUpdatedTime() != null) { + sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("high_goods_type"); + + sql.SET("id = #{record.id,jdbcType=INTEGER}"); + sql.SET("title = #{record.title,jdbcType=VARCHAR}"); + sql.SET("img = #{record.img,jdbcType=VARCHAR}"); + sql.SET("created_user_id = #{record.createdUserId,jdbcType=VARCHAR}"); + sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); + sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=VARCHAR}"); + sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + HighGoodsTypeExample example = (HighGoodsTypeExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(HighGoodsType record) { + SQL sql = new SQL(); + sql.UPDATE("high_goods_type"); + + if (record.getTitle() != null) { + sql.SET("title = #{title,jdbcType=VARCHAR}"); + } + + if (record.getImg() != null) { + sql.SET("img = #{img,jdbcType=VARCHAR}"); + } + + if (record.getCreatedUserId() != null) { + sql.SET("created_user_id = #{createdUserId,jdbcType=VARCHAR}"); + } + + if (record.getCreatedTime() != null) { + sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.SET("updated_user_id = #{updatedUserId,jdbcType=VARCHAR}"); + } + + if (record.getUpdatedTime() != null) { + sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=INTEGER}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, HighGoodsTypeExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighBrand.java b/hai-service/src/main/java/com/hai/entity/HighBrand.java new file mode 100644 index 00000000..977797de --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighBrand.java @@ -0,0 +1,241 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.util.Date; + +/** + * high_brand + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class HighBrand implements Serializable { + /** + * 主键 + */ + private Integer id; + + /** + * 标题 + */ + private String title; + + /** + * 图片 + */ + private String img; + + /** + * 商品类型id + */ + private Integer goodTypeId; + + /** + * 创建人 + */ + private String createdUserId; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedUserId; + + /** + * 更新时间 + */ + private Date updatedTime; + + /** + * 状态 1:正常 0:删除 + */ + private Integer status; + + /** + * 扩展字段 + */ + private String ext1; + + /** + * 扩展字段 + */ + private String ext2; + + /** + * 扩展字段 + */ + private String ext3; + + private static final long serialVersionUID = 1L; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getImg() { + return img; + } + + public void setImg(String img) { + this.img = img; + } + + public Integer getGoodTypeId() { + return goodTypeId; + } + + public void setGoodTypeId(Integer goodTypeId) { + this.goodTypeId = goodTypeId; + } + + public String getCreatedUserId() { + return createdUserId; + } + + public void setCreatedUserId(String createdUserId) { + this.createdUserId = createdUserId; + } + + public Date getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(Date createdTime) { + this.createdTime = createdTime; + } + + public String getUpdatedUserId() { + return updatedUserId; + } + + public void setUpdatedUserId(String updatedUserId) { + this.updatedUserId = updatedUserId; + } + + public Date getUpdatedTime() { + return updatedTime; + } + + public void setUpdatedTime(Date updatedTime) { + this.updatedTime = updatedTime; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + HighBrand other = (HighBrand) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) + && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg())) + && (this.getGoodTypeId() == null ? other.getGoodTypeId() == null : this.getGoodTypeId().equals(other.getGoodTypeId())) + && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) + && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) + && (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); + result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode()); + result = prime * result + ((getGoodTypeId() == null) ? 0 : getGoodTypeId().hashCode()); + result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); + result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); + result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", title=").append(title); + sb.append(", img=").append(img); + sb.append(", goodTypeId=").append(goodTypeId); + sb.append(", createdUserId=").append(createdUserId); + sb.append(", createdTime=").append(createdTime); + sb.append(", updatedUserId=").append(updatedUserId); + sb.append(", updatedTime=").append(updatedTime); + sb.append(", status=").append(status); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighBrandExample.java b/hai-service/src/main/java/com/hai/entity/HighBrandExample.java new file mode 100644 index 00000000..db6077ec --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighBrandExample.java @@ -0,0 +1,1013 @@ +package com.hai.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HighBrandExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public HighBrandExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andImgIsNull() { + addCriterion("img is null"); + return (Criteria) this; + } + + public Criteria andImgIsNotNull() { + addCriterion("img is not null"); + return (Criteria) this; + } + + public Criteria andImgEqualTo(String value) { + addCriterion("img =", value, "img"); + return (Criteria) this; + } + + public Criteria andImgNotEqualTo(String value) { + addCriterion("img <>", value, "img"); + return (Criteria) this; + } + + public Criteria andImgGreaterThan(String value) { + addCriterion("img >", value, "img"); + return (Criteria) this; + } + + public Criteria andImgGreaterThanOrEqualTo(String value) { + addCriterion("img >=", value, "img"); + return (Criteria) this; + } + + public Criteria andImgLessThan(String value) { + addCriterion("img <", value, "img"); + return (Criteria) this; + } + + public Criteria andImgLessThanOrEqualTo(String value) { + addCriterion("img <=", value, "img"); + return (Criteria) this; + } + + public Criteria andImgLike(String value) { + addCriterion("img like", value, "img"); + return (Criteria) this; + } + + public Criteria andImgNotLike(String value) { + addCriterion("img not like", value, "img"); + return (Criteria) this; + } + + public Criteria andImgIn(List values) { + addCriterion("img in", values, "img"); + return (Criteria) this; + } + + public Criteria andImgNotIn(List values) { + addCriterion("img not in", values, "img"); + return (Criteria) this; + } + + public Criteria andImgBetween(String value1, String value2) { + addCriterion("img between", value1, value2, "img"); + return (Criteria) this; + } + + public Criteria andImgNotBetween(String value1, String value2) { + addCriterion("img not between", value1, value2, "img"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdIsNull() { + addCriterion("good_type_id is null"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdIsNotNull() { + addCriterion("good_type_id is not null"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdEqualTo(Integer value) { + addCriterion("good_type_id =", value, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdNotEqualTo(Integer value) { + addCriterion("good_type_id <>", value, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdGreaterThan(Integer value) { + addCriterion("good_type_id >", value, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdGreaterThanOrEqualTo(Integer value) { + addCriterion("good_type_id >=", value, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdLessThan(Integer value) { + addCriterion("good_type_id <", value, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdLessThanOrEqualTo(Integer value) { + addCriterion("good_type_id <=", value, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdIn(List values) { + addCriterion("good_type_id in", values, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdNotIn(List values) { + addCriterion("good_type_id not in", values, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdBetween(Integer value1, Integer value2) { + addCriterion("good_type_id between", value1, value2, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andGoodTypeIdNotBetween(Integer value1, Integer value2) { + addCriterion("good_type_id not between", value1, value2, "goodTypeId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNull() { + addCriterion("created_user_id is null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNotNull() { + addCriterion("created_user_id is not null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdEqualTo(String value) { + addCriterion("created_user_id =", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotEqualTo(String value) { + addCriterion("created_user_id <>", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThan(String value) { + addCriterion("created_user_id >", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThanOrEqualTo(String value) { + addCriterion("created_user_id >=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThan(String value) { + addCriterion("created_user_id <", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThanOrEqualTo(String value) { + addCriterion("created_user_id <=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLike(String value) { + addCriterion("created_user_id like", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotLike(String value) { + addCriterion("created_user_id not like", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIn(List values) { + addCriterion("created_user_id in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotIn(List values) { + addCriterion("created_user_id not in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdBetween(String value1, String value2) { + addCriterion("created_user_id between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotBetween(String value1, String value2) { + addCriterion("created_user_id not between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIsNull() { + addCriterion("created_time is null"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIsNotNull() { + addCriterion("created_time is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTimeEqualTo(Date value) { + addCriterion("created_time =", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotEqualTo(Date value) { + addCriterion("created_time <>", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeGreaterThan(Date value) { + addCriterion("created_time >", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) { + addCriterion("created_time >=", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeLessThan(Date value) { + addCriterion("created_time <", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeLessThanOrEqualTo(Date value) { + addCriterion("created_time <=", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIn(List values) { + addCriterion("created_time in", values, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotIn(List values) { + addCriterion("created_time not in", values, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeBetween(Date value1, Date value2) { + addCriterion("created_time between", value1, value2, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotBetween(Date value1, Date value2) { + addCriterion("created_time not between", value1, value2, "createdTime"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIsNull() { + addCriterion("updated_user_id is null"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIsNotNull() { + addCriterion("updated_user_id is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdEqualTo(String value) { + addCriterion("updated_user_id =", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotEqualTo(String value) { + addCriterion("updated_user_id <>", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdGreaterThan(String value) { + addCriterion("updated_user_id >", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdGreaterThanOrEqualTo(String value) { + addCriterion("updated_user_id >=", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLessThan(String value) { + addCriterion("updated_user_id <", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLessThanOrEqualTo(String value) { + addCriterion("updated_user_id <=", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLike(String value) { + addCriterion("updated_user_id like", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotLike(String value) { + addCriterion("updated_user_id not like", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIn(List values) { + addCriterion("updated_user_id in", values, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotIn(List values) { + addCriterion("updated_user_id not in", values, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdBetween(String value1, String value2) { + addCriterion("updated_user_id between", value1, value2, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotBetween(String value1, String value2) { + addCriterion("updated_user_id not between", value1, value2, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIsNull() { + addCriterion("updated_time is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIsNotNull() { + addCriterion("updated_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeEqualTo(Date value) { + addCriterion("updated_time =", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotEqualTo(Date value) { + addCriterion("updated_time <>", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeGreaterThan(Date value) { + addCriterion("updated_time >", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) { + addCriterion("updated_time >=", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeLessThan(Date value) { + addCriterion("updated_time <", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) { + addCriterion("updated_time <=", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIn(List values) { + addCriterion("updated_time in", values, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotIn(List values) { + addCriterion("updated_time not in", values, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeBetween(Date value1, Date value2) { + addCriterion("updated_time between", value1, value2, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) { + addCriterion("updated_time not between", value1, value2, "updatedTime"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighGoodsType.java b/hai-service/src/main/java/com/hai/entity/HighGoodsType.java new file mode 100644 index 00000000..5c8fc34d --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighGoodsType.java @@ -0,0 +1,225 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.util.Date; + +/** + * high_goods_type + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class HighGoodsType implements Serializable { + /** + * 主键 + */ + private Integer id; + + /** + * 标题 + */ + private String title; + + /** + * 图片 + */ + private String img; + + /** + * 创建人 + */ + private String createdUserId; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedUserId; + + /** + * 更新时间 + */ + private Date updatedTime; + + /** + * 状态 1:正常 0:删除 + */ + private Integer status; + + /** + * 扩展字段 + */ + private String ext1; + + /** + * 扩展字段 + */ + private String ext2; + + /** + * 扩展字段 + */ + private String ext3; + + private static final long serialVersionUID = 1L; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getImg() { + return img; + } + + public void setImg(String img) { + this.img = img; + } + + public String getCreatedUserId() { + return createdUserId; + } + + public void setCreatedUserId(String createdUserId) { + this.createdUserId = createdUserId; + } + + public Date getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(Date createdTime) { + this.createdTime = createdTime; + } + + public String getUpdatedUserId() { + return updatedUserId; + } + + public void setUpdatedUserId(String updatedUserId) { + this.updatedUserId = updatedUserId; + } + + public Date getUpdatedTime() { + return updatedTime; + } + + public void setUpdatedTime(Date updatedTime) { + this.updatedTime = updatedTime; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + HighGoodsType other = (HighGoodsType) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) + && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg())) + && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) + && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) + && (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); + result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode()); + result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); + result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); + result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", title=").append(title); + sb.append(", img=").append(img); + sb.append(", createdUserId=").append(createdUserId); + sb.append(", createdTime=").append(createdTime); + sb.append(", updatedUserId=").append(updatedUserId); + sb.append(", updatedTime=").append(updatedTime); + sb.append(", status=").append(status); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighGoodsTypeExample.java b/hai-service/src/main/java/com/hai/entity/HighGoodsTypeExample.java new file mode 100644 index 00000000..8ab9c276 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighGoodsTypeExample.java @@ -0,0 +1,953 @@ +package com.hai.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HighGoodsTypeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public HighGoodsTypeExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andImgIsNull() { + addCriterion("img is null"); + return (Criteria) this; + } + + public Criteria andImgIsNotNull() { + addCriterion("img is not null"); + return (Criteria) this; + } + + public Criteria andImgEqualTo(String value) { + addCriterion("img =", value, "img"); + return (Criteria) this; + } + + public Criteria andImgNotEqualTo(String value) { + addCriterion("img <>", value, "img"); + return (Criteria) this; + } + + public Criteria andImgGreaterThan(String value) { + addCriterion("img >", value, "img"); + return (Criteria) this; + } + + public Criteria andImgGreaterThanOrEqualTo(String value) { + addCriterion("img >=", value, "img"); + return (Criteria) this; + } + + public Criteria andImgLessThan(String value) { + addCriterion("img <", value, "img"); + return (Criteria) this; + } + + public Criteria andImgLessThanOrEqualTo(String value) { + addCriterion("img <=", value, "img"); + return (Criteria) this; + } + + public Criteria andImgLike(String value) { + addCriterion("img like", value, "img"); + return (Criteria) this; + } + + public Criteria andImgNotLike(String value) { + addCriterion("img not like", value, "img"); + return (Criteria) this; + } + + public Criteria andImgIn(List values) { + addCriterion("img in", values, "img"); + return (Criteria) this; + } + + public Criteria andImgNotIn(List values) { + addCriterion("img not in", values, "img"); + return (Criteria) this; + } + + public Criteria andImgBetween(String value1, String value2) { + addCriterion("img between", value1, value2, "img"); + return (Criteria) this; + } + + public Criteria andImgNotBetween(String value1, String value2) { + addCriterion("img not between", value1, value2, "img"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNull() { + addCriterion("created_user_id is null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNotNull() { + addCriterion("created_user_id is not null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdEqualTo(String value) { + addCriterion("created_user_id =", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotEqualTo(String value) { + addCriterion("created_user_id <>", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThan(String value) { + addCriterion("created_user_id >", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThanOrEqualTo(String value) { + addCriterion("created_user_id >=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThan(String value) { + addCriterion("created_user_id <", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThanOrEqualTo(String value) { + addCriterion("created_user_id <=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLike(String value) { + addCriterion("created_user_id like", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotLike(String value) { + addCriterion("created_user_id not like", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIn(List values) { + addCriterion("created_user_id in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotIn(List values) { + addCriterion("created_user_id not in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdBetween(String value1, String value2) { + addCriterion("created_user_id between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotBetween(String value1, String value2) { + addCriterion("created_user_id not between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIsNull() { + addCriterion("created_time is null"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIsNotNull() { + addCriterion("created_time is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTimeEqualTo(Date value) { + addCriterion("created_time =", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotEqualTo(Date value) { + addCriterion("created_time <>", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeGreaterThan(Date value) { + addCriterion("created_time >", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) { + addCriterion("created_time >=", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeLessThan(Date value) { + addCriterion("created_time <", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeLessThanOrEqualTo(Date value) { + addCriterion("created_time <=", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIn(List values) { + addCriterion("created_time in", values, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotIn(List values) { + addCriterion("created_time not in", values, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeBetween(Date value1, Date value2) { + addCriterion("created_time between", value1, value2, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotBetween(Date value1, Date value2) { + addCriterion("created_time not between", value1, value2, "createdTime"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIsNull() { + addCriterion("updated_user_id is null"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIsNotNull() { + addCriterion("updated_user_id is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdEqualTo(String value) { + addCriterion("updated_user_id =", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotEqualTo(String value) { + addCriterion("updated_user_id <>", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdGreaterThan(String value) { + addCriterion("updated_user_id >", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdGreaterThanOrEqualTo(String value) { + addCriterion("updated_user_id >=", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLessThan(String value) { + addCriterion("updated_user_id <", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLessThanOrEqualTo(String value) { + addCriterion("updated_user_id <=", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLike(String value) { + addCriterion("updated_user_id like", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotLike(String value) { + addCriterion("updated_user_id not like", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIn(List values) { + addCriterion("updated_user_id in", values, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotIn(List values) { + addCriterion("updated_user_id not in", values, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdBetween(String value1, String value2) { + addCriterion("updated_user_id between", value1, value2, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotBetween(String value1, String value2) { + addCriterion("updated_user_id not between", value1, value2, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIsNull() { + addCriterion("updated_time is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIsNotNull() { + addCriterion("updated_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeEqualTo(Date value) { + addCriterion("updated_time =", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotEqualTo(Date value) { + addCriterion("updated_time <>", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeGreaterThan(Date value) { + addCriterion("updated_time >", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) { + addCriterion("updated_time >=", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeLessThan(Date value) { + addCriterion("updated_time <", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) { + addCriterion("updated_time <=", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIn(List values) { + addCriterion("updated_time in", values, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotIn(List values) { + addCriterion("updated_time not in", values, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeBetween(Date value1, Date value2) { + addCriterion("updated_time between", value1, value2, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) { + addCriterion("updated_time not between", value1, value2, "updatedTime"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file