From 1c029b978d5aeeefbb9ef84b631a660fe9c107ac Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Wed, 29 Jun 2022 16:34:37 +0800 Subject: [PATCH] 1 --- .../hai/dao/ApiStarbucksProductsMapper.java | 183 ++ .../dao/ApiStarbucksProductsMapperExt.java | 7 + .../dao/ApiStarbucksProductsSqlProvider.java | 528 +++++ .../com/hai/entity/ApiStarbucksProducts.java | 466 ++++ .../entity/ApiStarbucksProductsExample.java | 1924 +++++++++++++++++ 5 files changed, 3108 insertions(+) create mode 100644 hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapper.java create mode 100644 hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapperExt.java create mode 100644 hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsSqlProvider.java create mode 100644 hai-service/src/main/java/com/hai/entity/ApiStarbucksProducts.java create mode 100644 hai-service/src/main/java/com/hai/entity/ApiStarbucksProductsExample.java diff --git a/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapper.java b/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapper.java new file mode 100644 index 00000000..82767955 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapper.java @@ -0,0 +1,183 @@ +package com.hai.dao; + +import com.hai.entity.ApiStarbucksProducts; +import com.hai.entity.ApiStarbucksProductsExample; +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 ApiStarbucksProductsMapper extends ApiStarbucksProductsMapperExt { + @SelectProvider(type=ApiStarbucksProductsSqlProvider.class, method="countByExample") + long countByExample(ApiStarbucksProductsExample example); + + @DeleteProvider(type=ApiStarbucksProductsSqlProvider.class, method="deleteByExample") + int deleteByExample(ApiStarbucksProductsExample example); + + @Delete({ + "delete from api_starbucks_products", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into api_starbucks_products (goods_id, `name`, ", + "des, default_image, ", + "cup_size, temperature, ", + "cream, espresso, ", + "milk, milk_bubble, ", + "category_name, market_tall_price, ", + "market_grande_price, market_venti_price, ", + "sales_tall_price, sales_grande_price, ", + "sales_venti_price, operator_id, ", + "operator_name, create_time, ", + "update_time, `status`, ", + "ext_1, ext_2, ext_3)", + "values (#{goodsId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, ", + "#{des,jdbcType=VARCHAR}, #{defaultImage,jdbcType=VARCHAR}, ", + "#{cupSize,jdbcType=VARCHAR}, #{temperature,jdbcType=VARCHAR}, ", + "#{cream,jdbcType=VARCHAR}, #{espresso,jdbcType=VARCHAR}, ", + "#{milk,jdbcType=VARCHAR}, #{milkBubble,jdbcType=VARCHAR}, ", + "#{categoryName,jdbcType=VARCHAR}, #{marketTallPrice,jdbcType=DECIMAL}, ", + "#{marketGrandePrice,jdbcType=DECIMAL}, #{marketVentiPrice,jdbcType=DECIMAL}, ", + "#{salesTallPrice,jdbcType=DECIMAL}, #{salesGrandePrice,jdbcType=DECIMAL}, ", + "#{salesVentiPrice,jdbcType=DECIMAL}, #{operatorId,jdbcType=BIGINT}, ", + "#{operatorName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(ApiStarbucksProducts record); + + @InsertProvider(type=ApiStarbucksProductsSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(ApiStarbucksProducts record); + + @SelectProvider(type=ApiStarbucksProductsSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="des", property="des", jdbcType=JdbcType.VARCHAR), + @Result(column="default_image", property="defaultImage", jdbcType=JdbcType.VARCHAR), + @Result(column="cup_size", property="cupSize", jdbcType=JdbcType.VARCHAR), + @Result(column="temperature", property="temperature", jdbcType=JdbcType.VARCHAR), + @Result(column="cream", property="cream", jdbcType=JdbcType.VARCHAR), + @Result(column="espresso", property="espresso", jdbcType=JdbcType.VARCHAR), + @Result(column="milk", property="milk", jdbcType=JdbcType.VARCHAR), + @Result(column="milk_bubble", property="milkBubble", jdbcType=JdbcType.VARCHAR), + @Result(column="category_name", property="categoryName", jdbcType=JdbcType.VARCHAR), + @Result(column="market_tall_price", property="marketTallPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="market_grande_price", property="marketGrandePrice", jdbcType=JdbcType.DECIMAL), + @Result(column="market_venti_price", property="marketVentiPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="sales_tall_price", property="salesTallPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="sales_grande_price", property="salesGrandePrice", jdbcType=JdbcType.DECIMAL), + @Result(column="sales_venti_price", property="salesVentiPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), + @Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", 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(ApiStarbucksProductsExample example); + + @Select({ + "select", + "id, goods_id, `name`, des, default_image, cup_size, temperature, cream, espresso, ", + "milk, milk_bubble, category_name, market_tall_price, market_grande_price, market_venti_price, ", + "sales_tall_price, sales_grande_price, sales_venti_price, operator_id, operator_name, ", + "create_time, update_time, `status`, ext_1, ext_2, ext_3", + "from api_starbucks_products", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="des", property="des", jdbcType=JdbcType.VARCHAR), + @Result(column="default_image", property="defaultImage", jdbcType=JdbcType.VARCHAR), + @Result(column="cup_size", property="cupSize", jdbcType=JdbcType.VARCHAR), + @Result(column="temperature", property="temperature", jdbcType=JdbcType.VARCHAR), + @Result(column="cream", property="cream", jdbcType=JdbcType.VARCHAR), + @Result(column="espresso", property="espresso", jdbcType=JdbcType.VARCHAR), + @Result(column="milk", property="milk", jdbcType=JdbcType.VARCHAR), + @Result(column="milk_bubble", property="milkBubble", jdbcType=JdbcType.VARCHAR), + @Result(column="category_name", property="categoryName", jdbcType=JdbcType.VARCHAR), + @Result(column="market_tall_price", property="marketTallPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="market_grande_price", property="marketGrandePrice", jdbcType=JdbcType.DECIMAL), + @Result(column="market_venti_price", property="marketVentiPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="sales_tall_price", property="salesTallPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="sales_grande_price", property="salesGrandePrice", jdbcType=JdbcType.DECIMAL), + @Result(column="sales_venti_price", property="salesVentiPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), + @Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", 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) + }) + ApiStarbucksProducts selectByPrimaryKey(Long id); + + @UpdateProvider(type=ApiStarbucksProductsSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") ApiStarbucksProducts record, @Param("example") ApiStarbucksProductsExample example); + + @UpdateProvider(type=ApiStarbucksProductsSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") ApiStarbucksProducts record, @Param("example") ApiStarbucksProductsExample example); + + @UpdateProvider(type=ApiStarbucksProductsSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(ApiStarbucksProducts record); + + @Update({ + "update api_starbucks_products", + "set goods_id = #{goodsId,jdbcType=BIGINT},", + "`name` = #{name,jdbcType=VARCHAR},", + "des = #{des,jdbcType=VARCHAR},", + "default_image = #{defaultImage,jdbcType=VARCHAR},", + "cup_size = #{cupSize,jdbcType=VARCHAR},", + "temperature = #{temperature,jdbcType=VARCHAR},", + "cream = #{cream,jdbcType=VARCHAR},", + "espresso = #{espresso,jdbcType=VARCHAR},", + "milk = #{milk,jdbcType=VARCHAR},", + "milk_bubble = #{milkBubble,jdbcType=VARCHAR},", + "category_name = #{categoryName,jdbcType=VARCHAR},", + "market_tall_price = #{marketTallPrice,jdbcType=DECIMAL},", + "market_grande_price = #{marketGrandePrice,jdbcType=DECIMAL},", + "market_venti_price = #{marketVentiPrice,jdbcType=DECIMAL},", + "sales_tall_price = #{salesTallPrice,jdbcType=DECIMAL},", + "sales_grande_price = #{salesGrandePrice,jdbcType=DECIMAL},", + "sales_venti_price = #{salesVentiPrice,jdbcType=DECIMAL},", + "operator_id = #{operatorId,jdbcType=BIGINT},", + "operator_name = #{operatorName,jdbcType=VARCHAR},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "update_time = #{updateTime,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=BIGINT}" + }) + int updateByPrimaryKey(ApiStarbucksProducts record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapperExt.java b/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapperExt.java new file mode 100644 index 00000000..9993cb14 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface ApiStarbucksProductsMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsSqlProvider.java b/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsSqlProvider.java new file mode 100644 index 00000000..a919ece9 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/ApiStarbucksProductsSqlProvider.java @@ -0,0 +1,528 @@ +package com.hai.dao; + +import com.hai.entity.ApiStarbucksProducts; +import com.hai.entity.ApiStarbucksProductsExample.Criteria; +import com.hai.entity.ApiStarbucksProductsExample.Criterion; +import com.hai.entity.ApiStarbucksProductsExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class ApiStarbucksProductsSqlProvider { + + public String countByExample(ApiStarbucksProductsExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("api_starbucks_products"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(ApiStarbucksProductsExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("api_starbucks_products"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(ApiStarbucksProducts record) { + SQL sql = new SQL(); + sql.INSERT_INTO("api_starbucks_products"); + + if (record.getGoodsId() != null) { + sql.VALUES("goods_id", "#{goodsId,jdbcType=BIGINT}"); + } + + if (record.getName() != null) { + sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); + } + + if (record.getDes() != null) { + sql.VALUES("des", "#{des,jdbcType=VARCHAR}"); + } + + if (record.getDefaultImage() != null) { + sql.VALUES("default_image", "#{defaultImage,jdbcType=VARCHAR}"); + } + + if (record.getCupSize() != null) { + sql.VALUES("cup_size", "#{cupSize,jdbcType=VARCHAR}"); + } + + if (record.getTemperature() != null) { + sql.VALUES("temperature", "#{temperature,jdbcType=VARCHAR}"); + } + + if (record.getCream() != null) { + sql.VALUES("cream", "#{cream,jdbcType=VARCHAR}"); + } + + if (record.getEspresso() != null) { + sql.VALUES("espresso", "#{espresso,jdbcType=VARCHAR}"); + } + + if (record.getMilk() != null) { + sql.VALUES("milk", "#{milk,jdbcType=VARCHAR}"); + } + + if (record.getMilkBubble() != null) { + sql.VALUES("milk_bubble", "#{milkBubble,jdbcType=VARCHAR}"); + } + + if (record.getCategoryName() != null) { + sql.VALUES("category_name", "#{categoryName,jdbcType=VARCHAR}"); + } + + if (record.getMarketTallPrice() != null) { + sql.VALUES("market_tall_price", "#{marketTallPrice,jdbcType=DECIMAL}"); + } + + if (record.getMarketGrandePrice() != null) { + sql.VALUES("market_grande_price", "#{marketGrandePrice,jdbcType=DECIMAL}"); + } + + if (record.getMarketVentiPrice() != null) { + sql.VALUES("market_venti_price", "#{marketVentiPrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesTallPrice() != null) { + sql.VALUES("sales_tall_price", "#{salesTallPrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesGrandePrice() != null) { + sql.VALUES("sales_grande_price", "#{salesGrandePrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesVentiPrice() != null) { + sql.VALUES("sales_venti_price", "#{salesVentiPrice,jdbcType=DECIMAL}"); + } + + if (record.getOperatorId() != null) { + sql.VALUES("operator_id", "#{operatorId,jdbcType=BIGINT}"); + } + + if (record.getOperatorName() != null) { + sql.VALUES("operator_name", "#{operatorName,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.VALUES("update_time", "#{updateTime,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(ApiStarbucksProductsExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("goods_id"); + sql.SELECT("`name`"); + sql.SELECT("des"); + sql.SELECT("default_image"); + sql.SELECT("cup_size"); + sql.SELECT("temperature"); + sql.SELECT("cream"); + sql.SELECT("espresso"); + sql.SELECT("milk"); + sql.SELECT("milk_bubble"); + sql.SELECT("category_name"); + sql.SELECT("market_tall_price"); + sql.SELECT("market_grande_price"); + sql.SELECT("market_venti_price"); + sql.SELECT("sales_tall_price"); + sql.SELECT("sales_grande_price"); + sql.SELECT("sales_venti_price"); + sql.SELECT("operator_id"); + sql.SELECT("operator_name"); + sql.SELECT("create_time"); + sql.SELECT("update_time"); + sql.SELECT("`status`"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("api_starbucks_products"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + ApiStarbucksProducts record = (ApiStarbucksProducts) parameter.get("record"); + ApiStarbucksProductsExample example = (ApiStarbucksProductsExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("api_starbucks_products"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getGoodsId() != null) { + sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}"); + } + + if (record.getName() != null) { + sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); + } + + if (record.getDes() != null) { + sql.SET("des = #{record.des,jdbcType=VARCHAR}"); + } + + if (record.getDefaultImage() != null) { + sql.SET("default_image = #{record.defaultImage,jdbcType=VARCHAR}"); + } + + if (record.getCupSize() != null) { + sql.SET("cup_size = #{record.cupSize,jdbcType=VARCHAR}"); + } + + if (record.getTemperature() != null) { + sql.SET("temperature = #{record.temperature,jdbcType=VARCHAR}"); + } + + if (record.getCream() != null) { + sql.SET("cream = #{record.cream,jdbcType=VARCHAR}"); + } + + if (record.getEspresso() != null) { + sql.SET("espresso = #{record.espresso,jdbcType=VARCHAR}"); + } + + if (record.getMilk() != null) { + sql.SET("milk = #{record.milk,jdbcType=VARCHAR}"); + } + + if (record.getMilkBubble() != null) { + sql.SET("milk_bubble = #{record.milkBubble,jdbcType=VARCHAR}"); + } + + if (record.getCategoryName() != null) { + sql.SET("category_name = #{record.categoryName,jdbcType=VARCHAR}"); + } + + if (record.getMarketTallPrice() != null) { + sql.SET("market_tall_price = #{record.marketTallPrice,jdbcType=DECIMAL}"); + } + + if (record.getMarketGrandePrice() != null) { + sql.SET("market_grande_price = #{record.marketGrandePrice,jdbcType=DECIMAL}"); + } + + if (record.getMarketVentiPrice() != null) { + sql.SET("market_venti_price = #{record.marketVentiPrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesTallPrice() != null) { + sql.SET("sales_tall_price = #{record.salesTallPrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesGrandePrice() != null) { + sql.SET("sales_grande_price = #{record.salesGrandePrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesVentiPrice() != null) { + sql.SET("sales_venti_price = #{record.salesVentiPrice,jdbcType=DECIMAL}"); + } + + if (record.getOperatorId() != null) { + sql.SET("operator_id = #{record.operatorId,jdbcType=BIGINT}"); + } + + if (record.getOperatorName() != null) { + sql.SET("operator_name = #{record.operatorName,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.SET("update_time = #{record.updateTime,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("api_starbucks_products"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}"); + sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); + sql.SET("des = #{record.des,jdbcType=VARCHAR}"); + sql.SET("default_image = #{record.defaultImage,jdbcType=VARCHAR}"); + sql.SET("cup_size = #{record.cupSize,jdbcType=VARCHAR}"); + sql.SET("temperature = #{record.temperature,jdbcType=VARCHAR}"); + sql.SET("cream = #{record.cream,jdbcType=VARCHAR}"); + sql.SET("espresso = #{record.espresso,jdbcType=VARCHAR}"); + sql.SET("milk = #{record.milk,jdbcType=VARCHAR}"); + sql.SET("milk_bubble = #{record.milkBubble,jdbcType=VARCHAR}"); + sql.SET("category_name = #{record.categoryName,jdbcType=VARCHAR}"); + sql.SET("market_tall_price = #{record.marketTallPrice,jdbcType=DECIMAL}"); + sql.SET("market_grande_price = #{record.marketGrandePrice,jdbcType=DECIMAL}"); + sql.SET("market_venti_price = #{record.marketVentiPrice,jdbcType=DECIMAL}"); + sql.SET("sales_tall_price = #{record.salesTallPrice,jdbcType=DECIMAL}"); + sql.SET("sales_grande_price = #{record.salesGrandePrice,jdbcType=DECIMAL}"); + sql.SET("sales_venti_price = #{record.salesVentiPrice,jdbcType=DECIMAL}"); + sql.SET("operator_id = #{record.operatorId,jdbcType=BIGINT}"); + sql.SET("operator_name = #{record.operatorName,jdbcType=VARCHAR}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("update_time = #{record.updateTime,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}"); + + ApiStarbucksProductsExample example = (ApiStarbucksProductsExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(ApiStarbucksProducts record) { + SQL sql = new SQL(); + sql.UPDATE("api_starbucks_products"); + + if (record.getGoodsId() != null) { + sql.SET("goods_id = #{goodsId,jdbcType=BIGINT}"); + } + + if (record.getName() != null) { + sql.SET("`name` = #{name,jdbcType=VARCHAR}"); + } + + if (record.getDes() != null) { + sql.SET("des = #{des,jdbcType=VARCHAR}"); + } + + if (record.getDefaultImage() != null) { + sql.SET("default_image = #{defaultImage,jdbcType=VARCHAR}"); + } + + if (record.getCupSize() != null) { + sql.SET("cup_size = #{cupSize,jdbcType=VARCHAR}"); + } + + if (record.getTemperature() != null) { + sql.SET("temperature = #{temperature,jdbcType=VARCHAR}"); + } + + if (record.getCream() != null) { + sql.SET("cream = #{cream,jdbcType=VARCHAR}"); + } + + if (record.getEspresso() != null) { + sql.SET("espresso = #{espresso,jdbcType=VARCHAR}"); + } + + if (record.getMilk() != null) { + sql.SET("milk = #{milk,jdbcType=VARCHAR}"); + } + + if (record.getMilkBubble() != null) { + sql.SET("milk_bubble = #{milkBubble,jdbcType=VARCHAR}"); + } + + if (record.getCategoryName() != null) { + sql.SET("category_name = #{categoryName,jdbcType=VARCHAR}"); + } + + if (record.getMarketTallPrice() != null) { + sql.SET("market_tall_price = #{marketTallPrice,jdbcType=DECIMAL}"); + } + + if (record.getMarketGrandePrice() != null) { + sql.SET("market_grande_price = #{marketGrandePrice,jdbcType=DECIMAL}"); + } + + if (record.getMarketVentiPrice() != null) { + sql.SET("market_venti_price = #{marketVentiPrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesTallPrice() != null) { + sql.SET("sales_tall_price = #{salesTallPrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesGrandePrice() != null) { + sql.SET("sales_grande_price = #{salesGrandePrice,jdbcType=DECIMAL}"); + } + + if (record.getSalesVentiPrice() != null) { + sql.SET("sales_venti_price = #{salesVentiPrice,jdbcType=DECIMAL}"); + } + + if (record.getOperatorId() != null) { + sql.SET("operator_id = #{operatorId,jdbcType=BIGINT}"); + } + + if (record.getOperatorName() != null) { + sql.SET("operator_name = #{operatorName,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.SET("update_time = #{updateTime,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=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, ApiStarbucksProductsExample 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/ApiStarbucksProducts.java b/hai-service/src/main/java/com/hai/entity/ApiStarbucksProducts.java new file mode 100644 index 00000000..4125646c --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/ApiStarbucksProducts.java @@ -0,0 +1,466 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * api_starbucks_products + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class ApiStarbucksProducts implements Serializable { + /** + * 主键 + */ + private Long id; + + /** + * 商品id + */ + private Long goodsId; + + /** + * 商品名称 + */ + private String name; + + /** + * 商品描述 + */ + private String des; + + /** + * 商品图片 + */ + private String defaultImage; + + /** + * 杯型(中杯,大杯,超大杯)有指定的杯型,表示可售 + */ + private String cupSize; + + /** + * 温度 + */ + private String temperature; + + /** + * 奶油 + */ + private String cream; + + /** + * 浓缩咖啡 + */ + private String espresso; + + /** + * 牛奶 + */ + private String milk; + + /** + * 奶泡 + */ + private String milkBubble; + + /** + * 分类 + */ + private String categoryName; + + /** + * 中杯市场价(元) + */ + private BigDecimal marketTallPrice; + + /** + * 大杯市场价(元) + */ + private BigDecimal marketGrandePrice; + + /** + * 超大杯市场价(元) + */ + private BigDecimal marketVentiPrice; + + /** + * 中杯销售价(元) + */ + private BigDecimal salesTallPrice; + + /** + * 大杯销售价(元) + */ + private BigDecimal salesGrandePrice; + + /** + * 超大杯销售价(元) + */ + private BigDecimal salesVentiPrice; + + /** + * 操作人员id + */ + private Long operatorId; + + /** + * 操作人员名称 + */ + private String operatorName; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 更新时间 + */ + private Date updateTime; + + /** + * 状态 100 正常 101 禁用 + */ + private Integer status; + + /** + * ext_1 + */ + private String ext1; + + /** + * ext_2 + */ + private String ext2; + + /** + * ext_3 + */ + private String ext3; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getGoodsId() { + return goodsId; + } + + public void setGoodsId(Long goodsId) { + this.goodsId = goodsId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDes() { + return des; + } + + public void setDes(String des) { + this.des = des; + } + + public String getDefaultImage() { + return defaultImage; + } + + public void setDefaultImage(String defaultImage) { + this.defaultImage = defaultImage; + } + + public String getCupSize() { + return cupSize; + } + + public void setCupSize(String cupSize) { + this.cupSize = cupSize; + } + + public String getTemperature() { + return temperature; + } + + public void setTemperature(String temperature) { + this.temperature = temperature; + } + + public String getCream() { + return cream; + } + + public void setCream(String cream) { + this.cream = cream; + } + + public String getEspresso() { + return espresso; + } + + public void setEspresso(String espresso) { + this.espresso = espresso; + } + + public String getMilk() { + return milk; + } + + public void setMilk(String milk) { + this.milk = milk; + } + + public String getMilkBubble() { + return milkBubble; + } + + public void setMilkBubble(String milkBubble) { + this.milkBubble = milkBubble; + } + + public String getCategoryName() { + return categoryName; + } + + public void setCategoryName(String categoryName) { + this.categoryName = categoryName; + } + + public BigDecimal getMarketTallPrice() { + return marketTallPrice; + } + + public void setMarketTallPrice(BigDecimal marketTallPrice) { + this.marketTallPrice = marketTallPrice; + } + + public BigDecimal getMarketGrandePrice() { + return marketGrandePrice; + } + + public void setMarketGrandePrice(BigDecimal marketGrandePrice) { + this.marketGrandePrice = marketGrandePrice; + } + + public BigDecimal getMarketVentiPrice() { + return marketVentiPrice; + } + + public void setMarketVentiPrice(BigDecimal marketVentiPrice) { + this.marketVentiPrice = marketVentiPrice; + } + + public BigDecimal getSalesTallPrice() { + return salesTallPrice; + } + + public void setSalesTallPrice(BigDecimal salesTallPrice) { + this.salesTallPrice = salesTallPrice; + } + + public BigDecimal getSalesGrandePrice() { + return salesGrandePrice; + } + + public void setSalesGrandePrice(BigDecimal salesGrandePrice) { + this.salesGrandePrice = salesGrandePrice; + } + + public BigDecimal getSalesVentiPrice() { + return salesVentiPrice; + } + + public void setSalesVentiPrice(BigDecimal salesVentiPrice) { + this.salesVentiPrice = salesVentiPrice; + } + + public Long getOperatorId() { + return operatorId; + } + + public void setOperatorId(Long operatorId) { + this.operatorId = operatorId; + } + + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + 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; + } + ApiStarbucksProducts other = (ApiStarbucksProducts) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId())) + && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) + && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes())) + && (this.getDefaultImage() == null ? other.getDefaultImage() == null : this.getDefaultImage().equals(other.getDefaultImage())) + && (this.getCupSize() == null ? other.getCupSize() == null : this.getCupSize().equals(other.getCupSize())) + && (this.getTemperature() == null ? other.getTemperature() == null : this.getTemperature().equals(other.getTemperature())) + && (this.getCream() == null ? other.getCream() == null : this.getCream().equals(other.getCream())) + && (this.getEspresso() == null ? other.getEspresso() == null : this.getEspresso().equals(other.getEspresso())) + && (this.getMilk() == null ? other.getMilk() == null : this.getMilk().equals(other.getMilk())) + && (this.getMilkBubble() == null ? other.getMilkBubble() == null : this.getMilkBubble().equals(other.getMilkBubble())) + && (this.getCategoryName() == null ? other.getCategoryName() == null : this.getCategoryName().equals(other.getCategoryName())) + && (this.getMarketTallPrice() == null ? other.getMarketTallPrice() == null : this.getMarketTallPrice().equals(other.getMarketTallPrice())) + && (this.getMarketGrandePrice() == null ? other.getMarketGrandePrice() == null : this.getMarketGrandePrice().equals(other.getMarketGrandePrice())) + && (this.getMarketVentiPrice() == null ? other.getMarketVentiPrice() == null : this.getMarketVentiPrice().equals(other.getMarketVentiPrice())) + && (this.getSalesTallPrice() == null ? other.getSalesTallPrice() == null : this.getSalesTallPrice().equals(other.getSalesTallPrice())) + && (this.getSalesGrandePrice() == null ? other.getSalesGrandePrice() == null : this.getSalesGrandePrice().equals(other.getSalesGrandePrice())) + && (this.getSalesVentiPrice() == null ? other.getSalesVentiPrice() == null : this.getSalesVentiPrice().equals(other.getSalesVentiPrice())) + && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId())) + && (this.getOperatorName() == null ? other.getOperatorName() == null : this.getOperatorName().equals(other.getOperatorName())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) + && (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 + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode()); + result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); + result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode()); + result = prime * result + ((getDefaultImage() == null) ? 0 : getDefaultImage().hashCode()); + result = prime * result + ((getCupSize() == null) ? 0 : getCupSize().hashCode()); + result = prime * result + ((getTemperature() == null) ? 0 : getTemperature().hashCode()); + result = prime * result + ((getCream() == null) ? 0 : getCream().hashCode()); + result = prime * result + ((getEspresso() == null) ? 0 : getEspresso().hashCode()); + result = prime * result + ((getMilk() == null) ? 0 : getMilk().hashCode()); + result = prime * result + ((getMilkBubble() == null) ? 0 : getMilkBubble().hashCode()); + result = prime * result + ((getCategoryName() == null) ? 0 : getCategoryName().hashCode()); + result = prime * result + ((getMarketTallPrice() == null) ? 0 : getMarketTallPrice().hashCode()); + result = prime * result + ((getMarketGrandePrice() == null) ? 0 : getMarketGrandePrice().hashCode()); + result = prime * result + ((getMarketVentiPrice() == null) ? 0 : getMarketVentiPrice().hashCode()); + result = prime * result + ((getSalesTallPrice() == null) ? 0 : getSalesTallPrice().hashCode()); + result = prime * result + ((getSalesGrandePrice() == null) ? 0 : getSalesGrandePrice().hashCode()); + result = prime * result + ((getSalesVentiPrice() == null) ? 0 : getSalesVentiPrice().hashCode()); + result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode()); + result = prime * result + ((getOperatorName() == null) ? 0 : getOperatorName().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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(", goodsId=").append(goodsId); + sb.append(", name=").append(name); + sb.append(", des=").append(des); + sb.append(", defaultImage=").append(defaultImage); + sb.append(", cupSize=").append(cupSize); + sb.append(", temperature=").append(temperature); + sb.append(", cream=").append(cream); + sb.append(", espresso=").append(espresso); + sb.append(", milk=").append(milk); + sb.append(", milkBubble=").append(milkBubble); + sb.append(", categoryName=").append(categoryName); + sb.append(", marketTallPrice=").append(marketTallPrice); + sb.append(", marketGrandePrice=").append(marketGrandePrice); + sb.append(", marketVentiPrice=").append(marketVentiPrice); + sb.append(", salesTallPrice=").append(salesTallPrice); + sb.append(", salesGrandePrice=").append(salesGrandePrice); + sb.append(", salesVentiPrice=").append(salesVentiPrice); + sb.append(", operatorId=").append(operatorId); + sb.append(", operatorName=").append(operatorName); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + 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/ApiStarbucksProductsExample.java b/hai-service/src/main/java/com/hai/entity/ApiStarbucksProductsExample.java new file mode 100644 index 00000000..b521617b --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/ApiStarbucksProductsExample.java @@ -0,0 +1,1924 @@ +package com.hai.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ApiStarbucksProductsExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public ApiStarbucksProductsExample() { + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andGoodsIdIsNull() { + addCriterion("goods_id is null"); + return (Criteria) this; + } + + public Criteria andGoodsIdIsNotNull() { + addCriterion("goods_id is not null"); + return (Criteria) this; + } + + public Criteria andGoodsIdEqualTo(Long value) { + addCriterion("goods_id =", value, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdNotEqualTo(Long value) { + addCriterion("goods_id <>", value, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdGreaterThan(Long value) { + addCriterion("goods_id >", value, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdGreaterThanOrEqualTo(Long value) { + addCriterion("goods_id >=", value, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdLessThan(Long value) { + addCriterion("goods_id <", value, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdLessThanOrEqualTo(Long value) { + addCriterion("goods_id <=", value, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdIn(List values) { + addCriterion("goods_id in", values, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdNotIn(List values) { + addCriterion("goods_id not in", values, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdBetween(Long value1, Long value2) { + addCriterion("goods_id between", value1, value2, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdNotBetween(Long value1, Long value2) { + addCriterion("goods_id not between", value1, value2, "goodsId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andDesIsNull() { + addCriterion("des is null"); + return (Criteria) this; + } + + public Criteria andDesIsNotNull() { + addCriterion("des is not null"); + return (Criteria) this; + } + + public Criteria andDesEqualTo(String value) { + addCriterion("des =", value, "des"); + return (Criteria) this; + } + + public Criteria andDesNotEqualTo(String value) { + addCriterion("des <>", value, "des"); + return (Criteria) this; + } + + public Criteria andDesGreaterThan(String value) { + addCriterion("des >", value, "des"); + return (Criteria) this; + } + + public Criteria andDesGreaterThanOrEqualTo(String value) { + addCriterion("des >=", value, "des"); + return (Criteria) this; + } + + public Criteria andDesLessThan(String value) { + addCriterion("des <", value, "des"); + return (Criteria) this; + } + + public Criteria andDesLessThanOrEqualTo(String value) { + addCriterion("des <=", value, "des"); + return (Criteria) this; + } + + public Criteria andDesLike(String value) { + addCriterion("des like", value, "des"); + return (Criteria) this; + } + + public Criteria andDesNotLike(String value) { + addCriterion("des not like", value, "des"); + return (Criteria) this; + } + + public Criteria andDesIn(List values) { + addCriterion("des in", values, "des"); + return (Criteria) this; + } + + public Criteria andDesNotIn(List values) { + addCriterion("des not in", values, "des"); + return (Criteria) this; + } + + public Criteria andDesBetween(String value1, String value2) { + addCriterion("des between", value1, value2, "des"); + return (Criteria) this; + } + + public Criteria andDesNotBetween(String value1, String value2) { + addCriterion("des not between", value1, value2, "des"); + return (Criteria) this; + } + + public Criteria andDefaultImageIsNull() { + addCriterion("default_image is null"); + return (Criteria) this; + } + + public Criteria andDefaultImageIsNotNull() { + addCriterion("default_image is not null"); + return (Criteria) this; + } + + public Criteria andDefaultImageEqualTo(String value) { + addCriterion("default_image =", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageNotEqualTo(String value) { + addCriterion("default_image <>", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageGreaterThan(String value) { + addCriterion("default_image >", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageGreaterThanOrEqualTo(String value) { + addCriterion("default_image >=", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageLessThan(String value) { + addCriterion("default_image <", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageLessThanOrEqualTo(String value) { + addCriterion("default_image <=", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageLike(String value) { + addCriterion("default_image like", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageNotLike(String value) { + addCriterion("default_image not like", value, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageIn(List values) { + addCriterion("default_image in", values, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageNotIn(List values) { + addCriterion("default_image not in", values, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageBetween(String value1, String value2) { + addCriterion("default_image between", value1, value2, "defaultImage"); + return (Criteria) this; + } + + public Criteria andDefaultImageNotBetween(String value1, String value2) { + addCriterion("default_image not between", value1, value2, "defaultImage"); + return (Criteria) this; + } + + public Criteria andCupSizeIsNull() { + addCriterion("cup_size is null"); + return (Criteria) this; + } + + public Criteria andCupSizeIsNotNull() { + addCriterion("cup_size is not null"); + return (Criteria) this; + } + + public Criteria andCupSizeEqualTo(String value) { + addCriterion("cup_size =", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeNotEqualTo(String value) { + addCriterion("cup_size <>", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeGreaterThan(String value) { + addCriterion("cup_size >", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeGreaterThanOrEqualTo(String value) { + addCriterion("cup_size >=", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeLessThan(String value) { + addCriterion("cup_size <", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeLessThanOrEqualTo(String value) { + addCriterion("cup_size <=", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeLike(String value) { + addCriterion("cup_size like", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeNotLike(String value) { + addCriterion("cup_size not like", value, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeIn(List values) { + addCriterion("cup_size in", values, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeNotIn(List values) { + addCriterion("cup_size not in", values, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeBetween(String value1, String value2) { + addCriterion("cup_size between", value1, value2, "cupSize"); + return (Criteria) this; + } + + public Criteria andCupSizeNotBetween(String value1, String value2) { + addCriterion("cup_size not between", value1, value2, "cupSize"); + return (Criteria) this; + } + + public Criteria andTemperatureIsNull() { + addCriterion("temperature is null"); + return (Criteria) this; + } + + public Criteria andTemperatureIsNotNull() { + addCriterion("temperature is not null"); + return (Criteria) this; + } + + public Criteria andTemperatureEqualTo(String value) { + addCriterion("temperature =", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotEqualTo(String value) { + addCriterion("temperature <>", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureGreaterThan(String value) { + addCriterion("temperature >", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureGreaterThanOrEqualTo(String value) { + addCriterion("temperature >=", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureLessThan(String value) { + addCriterion("temperature <", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureLessThanOrEqualTo(String value) { + addCriterion("temperature <=", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureLike(String value) { + addCriterion("temperature like", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotLike(String value) { + addCriterion("temperature not like", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureIn(List values) { + addCriterion("temperature in", values, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotIn(List values) { + addCriterion("temperature not in", values, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureBetween(String value1, String value2) { + addCriterion("temperature between", value1, value2, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotBetween(String value1, String value2) { + addCriterion("temperature not between", value1, value2, "temperature"); + return (Criteria) this; + } + + public Criteria andCreamIsNull() { + addCriterion("cream is null"); + return (Criteria) this; + } + + public Criteria andCreamIsNotNull() { + addCriterion("cream is not null"); + return (Criteria) this; + } + + public Criteria andCreamEqualTo(String value) { + addCriterion("cream =", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamNotEqualTo(String value) { + addCriterion("cream <>", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamGreaterThan(String value) { + addCriterion("cream >", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamGreaterThanOrEqualTo(String value) { + addCriterion("cream >=", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamLessThan(String value) { + addCriterion("cream <", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamLessThanOrEqualTo(String value) { + addCriterion("cream <=", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamLike(String value) { + addCriterion("cream like", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamNotLike(String value) { + addCriterion("cream not like", value, "cream"); + return (Criteria) this; + } + + public Criteria andCreamIn(List values) { + addCriterion("cream in", values, "cream"); + return (Criteria) this; + } + + public Criteria andCreamNotIn(List values) { + addCriterion("cream not in", values, "cream"); + return (Criteria) this; + } + + public Criteria andCreamBetween(String value1, String value2) { + addCriterion("cream between", value1, value2, "cream"); + return (Criteria) this; + } + + public Criteria andCreamNotBetween(String value1, String value2) { + addCriterion("cream not between", value1, value2, "cream"); + return (Criteria) this; + } + + public Criteria andEspressoIsNull() { + addCriterion("espresso is null"); + return (Criteria) this; + } + + public Criteria andEspressoIsNotNull() { + addCriterion("espresso is not null"); + return (Criteria) this; + } + + public Criteria andEspressoEqualTo(String value) { + addCriterion("espresso =", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoNotEqualTo(String value) { + addCriterion("espresso <>", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoGreaterThan(String value) { + addCriterion("espresso >", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoGreaterThanOrEqualTo(String value) { + addCriterion("espresso >=", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoLessThan(String value) { + addCriterion("espresso <", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoLessThanOrEqualTo(String value) { + addCriterion("espresso <=", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoLike(String value) { + addCriterion("espresso like", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoNotLike(String value) { + addCriterion("espresso not like", value, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoIn(List values) { + addCriterion("espresso in", values, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoNotIn(List values) { + addCriterion("espresso not in", values, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoBetween(String value1, String value2) { + addCriterion("espresso between", value1, value2, "espresso"); + return (Criteria) this; + } + + public Criteria andEspressoNotBetween(String value1, String value2) { + addCriterion("espresso not between", value1, value2, "espresso"); + return (Criteria) this; + } + + public Criteria andMilkIsNull() { + addCriterion("milk is null"); + return (Criteria) this; + } + + public Criteria andMilkIsNotNull() { + addCriterion("milk is not null"); + return (Criteria) this; + } + + public Criteria andMilkEqualTo(String value) { + addCriterion("milk =", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkNotEqualTo(String value) { + addCriterion("milk <>", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkGreaterThan(String value) { + addCriterion("milk >", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkGreaterThanOrEqualTo(String value) { + addCriterion("milk >=", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkLessThan(String value) { + addCriterion("milk <", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkLessThanOrEqualTo(String value) { + addCriterion("milk <=", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkLike(String value) { + addCriterion("milk like", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkNotLike(String value) { + addCriterion("milk not like", value, "milk"); + return (Criteria) this; + } + + public Criteria andMilkIn(List values) { + addCriterion("milk in", values, "milk"); + return (Criteria) this; + } + + public Criteria andMilkNotIn(List values) { + addCriterion("milk not in", values, "milk"); + return (Criteria) this; + } + + public Criteria andMilkBetween(String value1, String value2) { + addCriterion("milk between", value1, value2, "milk"); + return (Criteria) this; + } + + public Criteria andMilkNotBetween(String value1, String value2) { + addCriterion("milk not between", value1, value2, "milk"); + return (Criteria) this; + } + + public Criteria andMilkBubbleIsNull() { + addCriterion("milk_bubble is null"); + return (Criteria) this; + } + + public Criteria andMilkBubbleIsNotNull() { + addCriterion("milk_bubble is not null"); + return (Criteria) this; + } + + public Criteria andMilkBubbleEqualTo(String value) { + addCriterion("milk_bubble =", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleNotEqualTo(String value) { + addCriterion("milk_bubble <>", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleGreaterThan(String value) { + addCriterion("milk_bubble >", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleGreaterThanOrEqualTo(String value) { + addCriterion("milk_bubble >=", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleLessThan(String value) { + addCriterion("milk_bubble <", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleLessThanOrEqualTo(String value) { + addCriterion("milk_bubble <=", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleLike(String value) { + addCriterion("milk_bubble like", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleNotLike(String value) { + addCriterion("milk_bubble not like", value, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleIn(List values) { + addCriterion("milk_bubble in", values, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleNotIn(List values) { + addCriterion("milk_bubble not in", values, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleBetween(String value1, String value2) { + addCriterion("milk_bubble between", value1, value2, "milkBubble"); + return (Criteria) this; + } + + public Criteria andMilkBubbleNotBetween(String value1, String value2) { + addCriterion("milk_bubble not between", value1, value2, "milkBubble"); + return (Criteria) this; + } + + public Criteria andCategoryNameIsNull() { + addCriterion("category_name is null"); + return (Criteria) this; + } + + public Criteria andCategoryNameIsNotNull() { + addCriterion("category_name is not null"); + return (Criteria) this; + } + + public Criteria andCategoryNameEqualTo(String value) { + addCriterion("category_name =", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotEqualTo(String value) { + addCriterion("category_name <>", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameGreaterThan(String value) { + addCriterion("category_name >", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("category_name >=", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLessThan(String value) { + addCriterion("category_name <", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLessThanOrEqualTo(String value) { + addCriterion("category_name <=", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLike(String value) { + addCriterion("category_name like", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotLike(String value) { + addCriterion("category_name not like", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameIn(List values) { + addCriterion("category_name in", values, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotIn(List values) { + addCriterion("category_name not in", values, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameBetween(String value1, String value2) { + addCriterion("category_name between", value1, value2, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotBetween(String value1, String value2) { + addCriterion("category_name not between", value1, value2, "categoryName"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceIsNull() { + addCriterion("market_tall_price is null"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceIsNotNull() { + addCriterion("market_tall_price is not null"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceEqualTo(BigDecimal value) { + addCriterion("market_tall_price =", value, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceNotEqualTo(BigDecimal value) { + addCriterion("market_tall_price <>", value, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceGreaterThan(BigDecimal value) { + addCriterion("market_tall_price >", value, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("market_tall_price >=", value, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceLessThan(BigDecimal value) { + addCriterion("market_tall_price <", value, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("market_tall_price <=", value, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceIn(List values) { + addCriterion("market_tall_price in", values, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceNotIn(List values) { + addCriterion("market_tall_price not in", values, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("market_tall_price between", value1, value2, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketTallPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("market_tall_price not between", value1, value2, "marketTallPrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceIsNull() { + addCriterion("market_grande_price is null"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceIsNotNull() { + addCriterion("market_grande_price is not null"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceEqualTo(BigDecimal value) { + addCriterion("market_grande_price =", value, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceNotEqualTo(BigDecimal value) { + addCriterion("market_grande_price <>", value, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceGreaterThan(BigDecimal value) { + addCriterion("market_grande_price >", value, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("market_grande_price >=", value, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceLessThan(BigDecimal value) { + addCriterion("market_grande_price <", value, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("market_grande_price <=", value, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceIn(List values) { + addCriterion("market_grande_price in", values, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceNotIn(List values) { + addCriterion("market_grande_price not in", values, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("market_grande_price between", value1, value2, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketGrandePriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("market_grande_price not between", value1, value2, "marketGrandePrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceIsNull() { + addCriterion("market_venti_price is null"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceIsNotNull() { + addCriterion("market_venti_price is not null"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceEqualTo(BigDecimal value) { + addCriterion("market_venti_price =", value, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceNotEqualTo(BigDecimal value) { + addCriterion("market_venti_price <>", value, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceGreaterThan(BigDecimal value) { + addCriterion("market_venti_price >", value, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("market_venti_price >=", value, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceLessThan(BigDecimal value) { + addCriterion("market_venti_price <", value, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("market_venti_price <=", value, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceIn(List values) { + addCriterion("market_venti_price in", values, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceNotIn(List values) { + addCriterion("market_venti_price not in", values, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("market_venti_price between", value1, value2, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andMarketVentiPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("market_venti_price not between", value1, value2, "marketVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceIsNull() { + addCriterion("sales_tall_price is null"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceIsNotNull() { + addCriterion("sales_tall_price is not null"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceEqualTo(BigDecimal value) { + addCriterion("sales_tall_price =", value, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceNotEqualTo(BigDecimal value) { + addCriterion("sales_tall_price <>", value, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceGreaterThan(BigDecimal value) { + addCriterion("sales_tall_price >", value, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("sales_tall_price >=", value, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceLessThan(BigDecimal value) { + addCriterion("sales_tall_price <", value, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("sales_tall_price <=", value, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceIn(List values) { + addCriterion("sales_tall_price in", values, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceNotIn(List values) { + addCriterion("sales_tall_price not in", values, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sales_tall_price between", value1, value2, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesTallPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sales_tall_price not between", value1, value2, "salesTallPrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceIsNull() { + addCriterion("sales_grande_price is null"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceIsNotNull() { + addCriterion("sales_grande_price is not null"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceEqualTo(BigDecimal value) { + addCriterion("sales_grande_price =", value, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceNotEqualTo(BigDecimal value) { + addCriterion("sales_grande_price <>", value, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceGreaterThan(BigDecimal value) { + addCriterion("sales_grande_price >", value, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("sales_grande_price >=", value, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceLessThan(BigDecimal value) { + addCriterion("sales_grande_price <", value, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("sales_grande_price <=", value, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceIn(List values) { + addCriterion("sales_grande_price in", values, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceNotIn(List values) { + addCriterion("sales_grande_price not in", values, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sales_grande_price between", value1, value2, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesGrandePriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sales_grande_price not between", value1, value2, "salesGrandePrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceIsNull() { + addCriterion("sales_venti_price is null"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceIsNotNull() { + addCriterion("sales_venti_price is not null"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceEqualTo(BigDecimal value) { + addCriterion("sales_venti_price =", value, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceNotEqualTo(BigDecimal value) { + addCriterion("sales_venti_price <>", value, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceGreaterThan(BigDecimal value) { + addCriterion("sales_venti_price >", value, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("sales_venti_price >=", value, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceLessThan(BigDecimal value) { + addCriterion("sales_venti_price <", value, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("sales_venti_price <=", value, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceIn(List values) { + addCriterion("sales_venti_price in", values, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceNotIn(List values) { + addCriterion("sales_venti_price not in", values, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sales_venti_price between", value1, value2, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andSalesVentiPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sales_venti_price not between", value1, value2, "salesVentiPrice"); + return (Criteria) this; + } + + public Criteria andOperatorIdIsNull() { + addCriterion("operator_id is null"); + return (Criteria) this; + } + + public Criteria andOperatorIdIsNotNull() { + addCriterion("operator_id is not null"); + return (Criteria) this; + } + + public Criteria andOperatorIdEqualTo(Long value) { + addCriterion("operator_id =", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdNotEqualTo(Long value) { + addCriterion("operator_id <>", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdGreaterThan(Long value) { + addCriterion("operator_id >", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdGreaterThanOrEqualTo(Long value) { + addCriterion("operator_id >=", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdLessThan(Long value) { + addCriterion("operator_id <", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdLessThanOrEqualTo(Long value) { + addCriterion("operator_id <=", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdIn(List values) { + addCriterion("operator_id in", values, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdNotIn(List values) { + addCriterion("operator_id not in", values, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdBetween(Long value1, Long value2) { + addCriterion("operator_id between", value1, value2, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdNotBetween(Long value1, Long value2) { + addCriterion("operator_id not between", value1, value2, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorNameIsNull() { + addCriterion("operator_name is null"); + return (Criteria) this; + } + + public Criteria andOperatorNameIsNotNull() { + addCriterion("operator_name is not null"); + return (Criteria) this; + } + + public Criteria andOperatorNameEqualTo(String value) { + addCriterion("operator_name =", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotEqualTo(String value) { + addCriterion("operator_name <>", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameGreaterThan(String value) { + addCriterion("operator_name >", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameGreaterThanOrEqualTo(String value) { + addCriterion("operator_name >=", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameLessThan(String value) { + addCriterion("operator_name <", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameLessThanOrEqualTo(String value) { + addCriterion("operator_name <=", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameLike(String value) { + addCriterion("operator_name like", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotLike(String value) { + addCriterion("operator_name not like", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameIn(List values) { + addCriterion("operator_name in", values, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotIn(List values) { + addCriterion("operator_name not in", values, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameBetween(String value1, String value2) { + addCriterion("operator_name between", value1, value2, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotBetween(String value1, String value2) { + addCriterion("operator_name not between", value1, value2, "operatorName"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + 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