diff --git a/hai-service/src/main/java/com/hai/dao/HighOrderPreMapper.java b/hai-service/src/main/java/com/hai/dao/HighOrderPreMapper.java new file mode 100644 index 00000000..31b715a6 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighOrderPreMapper.java @@ -0,0 +1,183 @@ +package com.hai.dao; + +import com.hai.entity.HighOrderPre; +import com.hai.entity.HighOrderPreExample; +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 HighOrderPreMapper extends HighOrderPreMapperExt { + @SelectProvider(type=HighOrderPreSqlProvider.class, method="countByExample") + long countByExample(HighOrderPreExample example); + + @DeleteProvider(type=HighOrderPreSqlProvider.class, method="deleteByExample") + int deleteByExample(HighOrderPreExample example); + + @Delete({ + "delete from high_order_pre", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into high_order_pre (company_id, merchant_id, ", + "agent_id, pre_order_no, ", + "order_id, order_no, ", + "child_order_id, pay_real_price, ", + "goods_type, goods_id, ", + "goods_name, pre_user_id, ", + "pre_user_name, pre_user_phone, ", + "pre_user_remark, stauts, ", + "status_fail_desc, status_cancel_desc, ", + "create_time, update_time, ", + "ext_1, ext_2, ext_3, ", + "ext_4, ext_5)", + "values (#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", + "#{agentId,jdbcType=BIGINT}, #{preOrderNo,jdbcType=VARCHAR}, ", + "#{orderId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", + "#{childOrderId,jdbcType=BIGINT}, #{payRealPrice,jdbcType=DECIMAL}, ", + "#{goodsType,jdbcType=INTEGER}, #{goodsId,jdbcType=BIGINT}, ", + "#{goodsName,jdbcType=VARCHAR}, #{preUserId,jdbcType=BIGINT}, ", + "#{preUserName,jdbcType=VARCHAR}, #{preUserPhone,jdbcType=VARCHAR}, ", + "#{preUserRemark,jdbcType=VARCHAR}, #{stauts,jdbcType=INTEGER}, ", + "#{statusFailDesc,jdbcType=VARCHAR}, #{statusCancelDesc,jdbcType=VARCHAR}, ", + "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ", + "#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(HighOrderPre record); + + @InsertProvider(type=HighOrderPreSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(HighOrderPre record); + + @SelectProvider(type=HighOrderPreSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), + @Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), + @Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), + @Result(column="pre_order_no", property="preOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), + @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), + @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), + @Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), + @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), + @Result(column="pre_user_id", property="preUserId", jdbcType=JdbcType.BIGINT), + @Result(column="pre_user_name", property="preUserName", jdbcType=JdbcType.VARCHAR), + @Result(column="pre_user_phone", property="preUserPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="pre_user_remark", property="preUserRemark", jdbcType=JdbcType.VARCHAR), + @Result(column="stauts", property="stauts", jdbcType=JdbcType.INTEGER), + @Result(column="status_fail_desc", property="statusFailDesc", jdbcType=JdbcType.VARCHAR), + @Result(column="status_cancel_desc", property="statusCancelDesc", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @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), + @Result(column="ext_4", property="ext4", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_5", property="ext5", jdbcType=JdbcType.VARCHAR) + }) + List selectByExample(HighOrderPreExample example); + + @Select({ + "select", + "id, company_id, merchant_id, agent_id, pre_order_no, order_id, order_no, child_order_id, ", + "pay_real_price, goods_type, goods_id, goods_name, pre_user_id, pre_user_name, ", + "pre_user_phone, pre_user_remark, stauts, status_fail_desc, status_cancel_desc, ", + "create_time, update_time, ext_1, ext_2, ext_3, ext_4, ext_5", + "from high_order_pre", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), + @Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), + @Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), + @Result(column="pre_order_no", property="preOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), + @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), + @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), + @Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), + @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), + @Result(column="pre_user_id", property="preUserId", jdbcType=JdbcType.BIGINT), + @Result(column="pre_user_name", property="preUserName", jdbcType=JdbcType.VARCHAR), + @Result(column="pre_user_phone", property="preUserPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="pre_user_remark", property="preUserRemark", jdbcType=JdbcType.VARCHAR), + @Result(column="stauts", property="stauts", jdbcType=JdbcType.INTEGER), + @Result(column="status_fail_desc", property="statusFailDesc", jdbcType=JdbcType.VARCHAR), + @Result(column="status_cancel_desc", property="statusCancelDesc", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @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), + @Result(column="ext_4", property="ext4", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_5", property="ext5", jdbcType=JdbcType.VARCHAR) + }) + HighOrderPre selectByPrimaryKey(Long id); + + @UpdateProvider(type=HighOrderPreSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") HighOrderPre record, @Param("example") HighOrderPreExample example); + + @UpdateProvider(type=HighOrderPreSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") HighOrderPre record, @Param("example") HighOrderPreExample example); + + @UpdateProvider(type=HighOrderPreSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(HighOrderPre record); + + @Update({ + "update high_order_pre", + "set company_id = #{companyId,jdbcType=BIGINT},", + "merchant_id = #{merchantId,jdbcType=BIGINT},", + "agent_id = #{agentId,jdbcType=BIGINT},", + "pre_order_no = #{preOrderNo,jdbcType=VARCHAR},", + "order_id = #{orderId,jdbcType=BIGINT},", + "order_no = #{orderNo,jdbcType=VARCHAR},", + "child_order_id = #{childOrderId,jdbcType=BIGINT},", + "pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", + "goods_type = #{goodsType,jdbcType=INTEGER},", + "goods_id = #{goodsId,jdbcType=BIGINT},", + "goods_name = #{goodsName,jdbcType=VARCHAR},", + "pre_user_id = #{preUserId,jdbcType=BIGINT},", + "pre_user_name = #{preUserName,jdbcType=VARCHAR},", + "pre_user_phone = #{preUserPhone,jdbcType=VARCHAR},", + "pre_user_remark = #{preUserRemark,jdbcType=VARCHAR},", + "stauts = #{stauts,jdbcType=INTEGER},", + "status_fail_desc = #{statusFailDesc,jdbcType=VARCHAR},", + "status_cancel_desc = #{statusCancelDesc,jdbcType=VARCHAR},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "update_time = #{updateTime,jdbcType=TIMESTAMP},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR},", + "ext_4 = #{ext4,jdbcType=VARCHAR},", + "ext_5 = #{ext5,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(HighOrderPre record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighOrderPreMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighOrderPreMapperExt.java new file mode 100644 index 00000000..17fe210e --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighOrderPreMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface HighOrderPreMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighOrderPreSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighOrderPreSqlProvider.java new file mode 100644 index 00000000..b8e81ba2 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighOrderPreSqlProvider.java @@ -0,0 +1,528 @@ +package com.hai.dao; + +import com.hai.entity.HighOrderPre; +import com.hai.entity.HighOrderPreExample.Criteria; +import com.hai.entity.HighOrderPreExample.Criterion; +import com.hai.entity.HighOrderPreExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class HighOrderPreSqlProvider { + + public String countByExample(HighOrderPreExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("high_order_pre"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(HighOrderPreExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("high_order_pre"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(HighOrderPre record) { + SQL sql = new SQL(); + sql.INSERT_INTO("high_order_pre"); + + if (record.getCompanyId() != null) { + sql.VALUES("company_id", "#{companyId,jdbcType=BIGINT}"); + } + + if (record.getMerchantId() != null) { + sql.VALUES("merchant_id", "#{merchantId,jdbcType=BIGINT}"); + } + + if (record.getAgentId() != null) { + sql.VALUES("agent_id", "#{agentId,jdbcType=BIGINT}"); + } + + if (record.getPreOrderNo() != null) { + sql.VALUES("pre_order_no", "#{preOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getOrderId() != null) { + sql.VALUES("order_id", "#{orderId,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getChildOrderId() != null) { + sql.VALUES("child_order_id", "#{childOrderId,jdbcType=BIGINT}"); + } + + if (record.getPayRealPrice() != null) { + sql.VALUES("pay_real_price", "#{payRealPrice,jdbcType=DECIMAL}"); + } + + if (record.getGoodsType() != null) { + sql.VALUES("goods_type", "#{goodsType,jdbcType=INTEGER}"); + } + + if (record.getGoodsId() != null) { + sql.VALUES("goods_id", "#{goodsId,jdbcType=BIGINT}"); + } + + if (record.getGoodsName() != null) { + sql.VALUES("goods_name", "#{goodsName,jdbcType=VARCHAR}"); + } + + if (record.getPreUserId() != null) { + sql.VALUES("pre_user_id", "#{preUserId,jdbcType=BIGINT}"); + } + + if (record.getPreUserName() != null) { + sql.VALUES("pre_user_name", "#{preUserName,jdbcType=VARCHAR}"); + } + + if (record.getPreUserPhone() != null) { + sql.VALUES("pre_user_phone", "#{preUserPhone,jdbcType=VARCHAR}"); + } + + if (record.getPreUserRemark() != null) { + sql.VALUES("pre_user_remark", "#{preUserRemark,jdbcType=VARCHAR}"); + } + + if (record.getStauts() != null) { + sql.VALUES("stauts", "#{stauts,jdbcType=INTEGER}"); + } + + if (record.getStatusFailDesc() != null) { + sql.VALUES("status_fail_desc", "#{statusFailDesc,jdbcType=VARCHAR}"); + } + + if (record.getStatusCancelDesc() != null) { + sql.VALUES("status_cancel_desc", "#{statusCancelDesc,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.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}"); + } + + if (record.getExt4() != null) { + sql.VALUES("ext_4", "#{ext4,jdbcType=VARCHAR}"); + } + + if (record.getExt5() != null) { + sql.VALUES("ext_5", "#{ext5,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(HighOrderPreExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("company_id"); + sql.SELECT("merchant_id"); + sql.SELECT("agent_id"); + sql.SELECT("pre_order_no"); + sql.SELECT("order_id"); + sql.SELECT("order_no"); + sql.SELECT("child_order_id"); + sql.SELECT("pay_real_price"); + sql.SELECT("goods_type"); + sql.SELECT("goods_id"); + sql.SELECT("goods_name"); + sql.SELECT("pre_user_id"); + sql.SELECT("pre_user_name"); + sql.SELECT("pre_user_phone"); + sql.SELECT("pre_user_remark"); + sql.SELECT("stauts"); + sql.SELECT("status_fail_desc"); + sql.SELECT("status_cancel_desc"); + sql.SELECT("create_time"); + sql.SELECT("update_time"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.SELECT("ext_4"); + sql.SELECT("ext_5"); + sql.FROM("high_order_pre"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + HighOrderPre record = (HighOrderPre) parameter.get("record"); + HighOrderPreExample example = (HighOrderPreExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("high_order_pre"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getCompanyId() != null) { + sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); + } + + if (record.getMerchantId() != null) { + sql.SET("merchant_id = #{record.merchantId,jdbcType=BIGINT}"); + } + + if (record.getAgentId() != null) { + sql.SET("agent_id = #{record.agentId,jdbcType=BIGINT}"); + } + + if (record.getPreOrderNo() != null) { + sql.SET("pre_order_no = #{record.preOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getOrderId() != null) { + sql.SET("order_id = #{record.orderId,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + } + + if (record.getChildOrderId() != null) { + sql.SET("child_order_id = #{record.childOrderId,jdbcType=BIGINT}"); + } + + if (record.getPayRealPrice() != null) { + sql.SET("pay_real_price = #{record.payRealPrice,jdbcType=DECIMAL}"); + } + + if (record.getGoodsType() != null) { + sql.SET("goods_type = #{record.goodsType,jdbcType=INTEGER}"); + } + + if (record.getGoodsId() != null) { + sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}"); + } + + if (record.getGoodsName() != null) { + sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}"); + } + + if (record.getPreUserId() != null) { + sql.SET("pre_user_id = #{record.preUserId,jdbcType=BIGINT}"); + } + + if (record.getPreUserName() != null) { + sql.SET("pre_user_name = #{record.preUserName,jdbcType=VARCHAR}"); + } + + if (record.getPreUserPhone() != null) { + sql.SET("pre_user_phone = #{record.preUserPhone,jdbcType=VARCHAR}"); + } + + if (record.getPreUserRemark() != null) { + sql.SET("pre_user_remark = #{record.preUserRemark,jdbcType=VARCHAR}"); + } + + if (record.getStauts() != null) { + sql.SET("stauts = #{record.stauts,jdbcType=INTEGER}"); + } + + if (record.getStatusFailDesc() != null) { + sql.SET("status_fail_desc = #{record.statusFailDesc,jdbcType=VARCHAR}"); + } + + if (record.getStatusCancelDesc() != null) { + sql.SET("status_cancel_desc = #{record.statusCancelDesc,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.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}"); + } + + if (record.getExt4() != null) { + sql.SET("ext_4 = #{record.ext4,jdbcType=VARCHAR}"); + } + + if (record.getExt5() != null) { + sql.SET("ext_5 = #{record.ext5,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("high_order_pre"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); + sql.SET("merchant_id = #{record.merchantId,jdbcType=BIGINT}"); + sql.SET("agent_id = #{record.agentId,jdbcType=BIGINT}"); + sql.SET("pre_order_no = #{record.preOrderNo,jdbcType=VARCHAR}"); + sql.SET("order_id = #{record.orderId,jdbcType=BIGINT}"); + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + sql.SET("child_order_id = #{record.childOrderId,jdbcType=BIGINT}"); + sql.SET("pay_real_price = #{record.payRealPrice,jdbcType=DECIMAL}"); + sql.SET("goods_type = #{record.goodsType,jdbcType=INTEGER}"); + sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}"); + sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}"); + sql.SET("pre_user_id = #{record.preUserId,jdbcType=BIGINT}"); + sql.SET("pre_user_name = #{record.preUserName,jdbcType=VARCHAR}"); + sql.SET("pre_user_phone = #{record.preUserPhone,jdbcType=VARCHAR}"); + sql.SET("pre_user_remark = #{record.preUserRemark,jdbcType=VARCHAR}"); + sql.SET("stauts = #{record.stauts,jdbcType=INTEGER}"); + sql.SET("status_fail_desc = #{record.statusFailDesc,jdbcType=VARCHAR}"); + sql.SET("status_cancel_desc = #{record.statusCancelDesc,jdbcType=VARCHAR}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + sql.SET("ext_4 = #{record.ext4,jdbcType=VARCHAR}"); + sql.SET("ext_5 = #{record.ext5,jdbcType=VARCHAR}"); + + HighOrderPreExample example = (HighOrderPreExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(HighOrderPre record) { + SQL sql = new SQL(); + sql.UPDATE("high_order_pre"); + + if (record.getCompanyId() != null) { + sql.SET("company_id = #{companyId,jdbcType=BIGINT}"); + } + + if (record.getMerchantId() != null) { + sql.SET("merchant_id = #{merchantId,jdbcType=BIGINT}"); + } + + if (record.getAgentId() != null) { + sql.SET("agent_id = #{agentId,jdbcType=BIGINT}"); + } + + if (record.getPreOrderNo() != null) { + sql.SET("pre_order_no = #{preOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getOrderId() != null) { + sql.SET("order_id = #{orderId,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getChildOrderId() != null) { + sql.SET("child_order_id = #{childOrderId,jdbcType=BIGINT}"); + } + + if (record.getPayRealPrice() != null) { + sql.SET("pay_real_price = #{payRealPrice,jdbcType=DECIMAL}"); + } + + if (record.getGoodsType() != null) { + sql.SET("goods_type = #{goodsType,jdbcType=INTEGER}"); + } + + if (record.getGoodsId() != null) { + sql.SET("goods_id = #{goodsId,jdbcType=BIGINT}"); + } + + if (record.getGoodsName() != null) { + sql.SET("goods_name = #{goodsName,jdbcType=VARCHAR}"); + } + + if (record.getPreUserId() != null) { + sql.SET("pre_user_id = #{preUserId,jdbcType=BIGINT}"); + } + + if (record.getPreUserName() != null) { + sql.SET("pre_user_name = #{preUserName,jdbcType=VARCHAR}"); + } + + if (record.getPreUserPhone() != null) { + sql.SET("pre_user_phone = #{preUserPhone,jdbcType=VARCHAR}"); + } + + if (record.getPreUserRemark() != null) { + sql.SET("pre_user_remark = #{preUserRemark,jdbcType=VARCHAR}"); + } + + if (record.getStauts() != null) { + sql.SET("stauts = #{stauts,jdbcType=INTEGER}"); + } + + if (record.getStatusFailDesc() != null) { + sql.SET("status_fail_desc = #{statusFailDesc,jdbcType=VARCHAR}"); + } + + if (record.getStatusCancelDesc() != null) { + sql.SET("status_cancel_desc = #{statusCancelDesc,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.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}"); + } + + if (record.getExt4() != null) { + sql.SET("ext_4 = #{ext4,jdbcType=VARCHAR}"); + } + + if (record.getExt5() != null) { + sql.SET("ext_5 = #{ext5,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, HighOrderPreExample 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/HighOrderPre.java b/hai-service/src/main/java/com/hai/entity/HighOrderPre.java new file mode 100644 index 00000000..ef71da00 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighOrderPre.java @@ -0,0 +1,451 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * high_order_pre + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class HighOrderPre implements Serializable { + /** + * 主键ID + */ + private Long id; + + /** + * 公司id + */ + private Long companyId; + + /** + * 商户id + */ + private Long merchantId; + + /** + * 代理商id + */ + private Long agentId; + + /** + * 预约订单号 + */ + private String preOrderNo; + + /** + * 支付订单id + */ + private Long orderId; + + /** + * 支付订单号 + */ + private String orderNo; + + /** + * 支付子订单id + */ + private Long childOrderId; + + /** + * 实付金额 + */ + private BigDecimal payRealPrice; + + /** + * 商品类型 + */ + private Integer goodsType; + + /** + * 商品id + */ + private Long goodsId; + + /** + * 商品名称 + */ + private String goodsName; + + /** + * 预约用户id + */ + private Long preUserId; + + /** + * 预约用户姓名 + */ + private String preUserName; + + /** + * 预约用户手机号 + */ + private String preUserPhone; + + /** + * 预约用户备注 + */ + private String preUserRemark; + + /** + * 状态 1.预约中 2. 预约成功 3.预约完成 4.预约失败 5.预约取消 + */ + private Integer stauts; + + /** + * 预约失败说明 + */ + private String statusFailDesc; + + /** + * 预约取消说明 + */ + private String statusCancelDesc; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改时间 + */ + private Date updateTime; + + private String ext1; + + private String ext2; + + private String ext3; + + private String ext4; + + private String ext5; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getMerchantId() { + return merchantId; + } + + public void setMerchantId(Long merchantId) { + this.merchantId = merchantId; + } + + public Long getAgentId() { + return agentId; + } + + public void setAgentId(Long agentId) { + this.agentId = agentId; + } + + public String getPreOrderNo() { + return preOrderNo; + } + + public void setPreOrderNo(String preOrderNo) { + this.preOrderNo = preOrderNo; + } + + public Long getOrderId() { + return orderId; + } + + public void setOrderId(Long orderId) { + this.orderId = orderId; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public Long getChildOrderId() { + return childOrderId; + } + + public void setChildOrderId(Long childOrderId) { + this.childOrderId = childOrderId; + } + + public BigDecimal getPayRealPrice() { + return payRealPrice; + } + + public void setPayRealPrice(BigDecimal payRealPrice) { + this.payRealPrice = payRealPrice; + } + + public Integer getGoodsType() { + return goodsType; + } + + public void setGoodsType(Integer goodsType) { + this.goodsType = goodsType; + } + + public Long getGoodsId() { + return goodsId; + } + + public void setGoodsId(Long goodsId) { + this.goodsId = goodsId; + } + + public String getGoodsName() { + return goodsName; + } + + public void setGoodsName(String goodsName) { + this.goodsName = goodsName; + } + + public Long getPreUserId() { + return preUserId; + } + + public void setPreUserId(Long preUserId) { + this.preUserId = preUserId; + } + + public String getPreUserName() { + return preUserName; + } + + public void setPreUserName(String preUserName) { + this.preUserName = preUserName; + } + + public String getPreUserPhone() { + return preUserPhone; + } + + public void setPreUserPhone(String preUserPhone) { + this.preUserPhone = preUserPhone; + } + + public String getPreUserRemark() { + return preUserRemark; + } + + public void setPreUserRemark(String preUserRemark) { + this.preUserRemark = preUserRemark; + } + + public Integer getStauts() { + return stauts; + } + + public void setStauts(Integer stauts) { + this.stauts = stauts; + } + + public String getStatusFailDesc() { + return statusFailDesc; + } + + public void setStatusFailDesc(String statusFailDesc) { + this.statusFailDesc = statusFailDesc; + } + + public String getStatusCancelDesc() { + return statusCancelDesc; + } + + public void setStatusCancelDesc(String statusCancelDesc) { + this.statusCancelDesc = statusCancelDesc; + } + + 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 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; + } + + public String getExt4() { + return ext4; + } + + public void setExt4(String ext4) { + this.ext4 = ext4; + } + + public String getExt5() { + return ext5; + } + + public void setExt5(String ext5) { + this.ext5 = ext5; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + HighOrderPre other = (HighOrderPre) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) + && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId())) + && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId())) + && (this.getPreOrderNo() == null ? other.getPreOrderNo() == null : this.getPreOrderNo().equals(other.getPreOrderNo())) + && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId())) + && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo())) + && (this.getChildOrderId() == null ? other.getChildOrderId() == null : this.getChildOrderId().equals(other.getChildOrderId())) + && (this.getPayRealPrice() == null ? other.getPayRealPrice() == null : this.getPayRealPrice().equals(other.getPayRealPrice())) + && (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType())) + && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId())) + && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName())) + && (this.getPreUserId() == null ? other.getPreUserId() == null : this.getPreUserId().equals(other.getPreUserId())) + && (this.getPreUserName() == null ? other.getPreUserName() == null : this.getPreUserName().equals(other.getPreUserName())) + && (this.getPreUserPhone() == null ? other.getPreUserPhone() == null : this.getPreUserPhone().equals(other.getPreUserPhone())) + && (this.getPreUserRemark() == null ? other.getPreUserRemark() == null : this.getPreUserRemark().equals(other.getPreUserRemark())) + && (this.getStauts() == null ? other.getStauts() == null : this.getStauts().equals(other.getStauts())) + && (this.getStatusFailDesc() == null ? other.getStatusFailDesc() == null : this.getStatusFailDesc().equals(other.getStatusFailDesc())) + && (this.getStatusCancelDesc() == null ? other.getStatusCancelDesc() == null : this.getStatusCancelDesc().equals(other.getStatusCancelDesc())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) + && (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())) + && (this.getExt4() == null ? other.getExt4() == null : this.getExt4().equals(other.getExt4())) + && (this.getExt5() == null ? other.getExt5() == null : this.getExt5().equals(other.getExt5())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); + result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode()); + result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); + result = prime * result + ((getPreOrderNo() == null) ? 0 : getPreOrderNo().hashCode()); + result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode()); + result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode()); + result = prime * result + ((getChildOrderId() == null) ? 0 : getChildOrderId().hashCode()); + result = prime * result + ((getPayRealPrice() == null) ? 0 : getPayRealPrice().hashCode()); + result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode()); + result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode()); + result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode()); + result = prime * result + ((getPreUserId() == null) ? 0 : getPreUserId().hashCode()); + result = prime * result + ((getPreUserName() == null) ? 0 : getPreUserName().hashCode()); + result = prime * result + ((getPreUserPhone() == null) ? 0 : getPreUserPhone().hashCode()); + result = prime * result + ((getPreUserRemark() == null) ? 0 : getPreUserRemark().hashCode()); + result = prime * result + ((getStauts() == null) ? 0 : getStauts().hashCode()); + result = prime * result + ((getStatusFailDesc() == null) ? 0 : getStatusFailDesc().hashCode()); + result = prime * result + ((getStatusCancelDesc() == null) ? 0 : getStatusCancelDesc().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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()); + result = prime * result + ((getExt4() == null) ? 0 : getExt4().hashCode()); + result = prime * result + ((getExt5() == null) ? 0 : getExt5().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(", companyId=").append(companyId); + sb.append(", merchantId=").append(merchantId); + sb.append(", agentId=").append(agentId); + sb.append(", preOrderNo=").append(preOrderNo); + sb.append(", orderId=").append(orderId); + sb.append(", orderNo=").append(orderNo); + sb.append(", childOrderId=").append(childOrderId); + sb.append(", payRealPrice=").append(payRealPrice); + sb.append(", goodsType=").append(goodsType); + sb.append(", goodsId=").append(goodsId); + sb.append(", goodsName=").append(goodsName); + sb.append(", preUserId=").append(preUserId); + sb.append(", preUserName=").append(preUserName); + sb.append(", preUserPhone=").append(preUserPhone); + sb.append(", preUserRemark=").append(preUserRemark); + sb.append(", stauts=").append(stauts); + sb.append(", statusFailDesc=").append(statusFailDesc); + sb.append(", statusCancelDesc=").append(statusCancelDesc); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", ext4=").append(ext4); + sb.append(", ext5=").append(ext5); + 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/HighOrderPreExample.java b/hai-service/src/main/java/com/hai/entity/HighOrderPreExample.java new file mode 100644 index 00000000..4ebb056c --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighOrderPreExample.java @@ -0,0 +1,1914 @@ +package com.hai.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HighOrderPreExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public HighOrderPreExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andMerchantIdIsNull() { + addCriterion("merchant_id is null"); + return (Criteria) this; + } + + public Criteria andMerchantIdIsNotNull() { + addCriterion("merchant_id is not null"); + return (Criteria) this; + } + + public Criteria andMerchantIdEqualTo(Long value) { + addCriterion("merchant_id =", value, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdNotEqualTo(Long value) { + addCriterion("merchant_id <>", value, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdGreaterThan(Long value) { + addCriterion("merchant_id >", value, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdGreaterThanOrEqualTo(Long value) { + addCriterion("merchant_id >=", value, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdLessThan(Long value) { + addCriterion("merchant_id <", value, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdLessThanOrEqualTo(Long value) { + addCriterion("merchant_id <=", value, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdIn(List values) { + addCriterion("merchant_id in", values, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdNotIn(List values) { + addCriterion("merchant_id not in", values, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdBetween(Long value1, Long value2) { + addCriterion("merchant_id between", value1, value2, "merchantId"); + return (Criteria) this; + } + + public Criteria andMerchantIdNotBetween(Long value1, Long value2) { + addCriterion("merchant_id not between", value1, value2, "merchantId"); + return (Criteria) this; + } + + public Criteria andAgentIdIsNull() { + addCriterion("agent_id is null"); + return (Criteria) this; + } + + public Criteria andAgentIdIsNotNull() { + addCriterion("agent_id is not null"); + return (Criteria) this; + } + + public Criteria andAgentIdEqualTo(Long value) { + addCriterion("agent_id =", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotEqualTo(Long value) { + addCriterion("agent_id <>", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdGreaterThan(Long value) { + addCriterion("agent_id >", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdGreaterThanOrEqualTo(Long value) { + addCriterion("agent_id >=", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdLessThan(Long value) { + addCriterion("agent_id <", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdLessThanOrEqualTo(Long value) { + addCriterion("agent_id <=", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdIn(List values) { + addCriterion("agent_id in", values, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotIn(List values) { + addCriterion("agent_id not in", values, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdBetween(Long value1, Long value2) { + addCriterion("agent_id between", value1, value2, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotBetween(Long value1, Long value2) { + addCriterion("agent_id not between", value1, value2, "agentId"); + return (Criteria) this; + } + + public Criteria andPreOrderNoIsNull() { + addCriterion("pre_order_no is null"); + return (Criteria) this; + } + + public Criteria andPreOrderNoIsNotNull() { + addCriterion("pre_order_no is not null"); + return (Criteria) this; + } + + public Criteria andPreOrderNoEqualTo(String value) { + addCriterion("pre_order_no =", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoNotEqualTo(String value) { + addCriterion("pre_order_no <>", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoGreaterThan(String value) { + addCriterion("pre_order_no >", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("pre_order_no >=", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoLessThan(String value) { + addCriterion("pre_order_no <", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoLessThanOrEqualTo(String value) { + addCriterion("pre_order_no <=", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoLike(String value) { + addCriterion("pre_order_no like", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoNotLike(String value) { + addCriterion("pre_order_no not like", value, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoIn(List values) { + addCriterion("pre_order_no in", values, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoNotIn(List values) { + addCriterion("pre_order_no not in", values, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoBetween(String value1, String value2) { + addCriterion("pre_order_no between", value1, value2, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andPreOrderNoNotBetween(String value1, String value2) { + addCriterion("pre_order_no not between", value1, value2, "preOrderNo"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Long value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Long value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Long value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Long value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Long value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Long value1, Long value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Long value1, Long value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNull() { + addCriterion("order_no is null"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNotNull() { + addCriterion("order_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderNoEqualTo(String value) { + addCriterion("order_no =", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotEqualTo(String value) { + addCriterion("order_no <>", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThan(String value) { + addCriterion("order_no >", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("order_no >=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThan(String value) { + addCriterion("order_no <", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThanOrEqualTo(String value) { + addCriterion("order_no <=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLike(String value) { + addCriterion("order_no like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotLike(String value) { + addCriterion("order_no not like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoIn(List values) { + addCriterion("order_no in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotIn(List values) { + addCriterion("order_no not in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoBetween(String value1, String value2) { + addCriterion("order_no between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotBetween(String value1, String value2) { + addCriterion("order_no not between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderIdIsNull() { + addCriterion("child_order_id is null"); + return (Criteria) this; + } + + public Criteria andChildOrderIdIsNotNull() { + addCriterion("child_order_id is not null"); + return (Criteria) this; + } + + public Criteria andChildOrderIdEqualTo(Long value) { + addCriterion("child_order_id =", value, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdNotEqualTo(Long value) { + addCriterion("child_order_id <>", value, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdGreaterThan(Long value) { + addCriterion("child_order_id >", value, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("child_order_id >=", value, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdLessThan(Long value) { + addCriterion("child_order_id <", value, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdLessThanOrEqualTo(Long value) { + addCriterion("child_order_id <=", value, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdIn(List values) { + addCriterion("child_order_id in", values, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdNotIn(List values) { + addCriterion("child_order_id not in", values, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdBetween(Long value1, Long value2) { + addCriterion("child_order_id between", value1, value2, "childOrderId"); + return (Criteria) this; + } + + public Criteria andChildOrderIdNotBetween(Long value1, Long value2) { + addCriterion("child_order_id not between", value1, value2, "childOrderId"); + return (Criteria) this; + } + + public Criteria andPayRealPriceIsNull() { + addCriterion("pay_real_price is null"); + return (Criteria) this; + } + + public Criteria andPayRealPriceIsNotNull() { + addCriterion("pay_real_price is not null"); + return (Criteria) this; + } + + public Criteria andPayRealPriceEqualTo(BigDecimal value) { + addCriterion("pay_real_price =", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceNotEqualTo(BigDecimal value) { + addCriterion("pay_real_price <>", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceGreaterThan(BigDecimal value) { + addCriterion("pay_real_price >", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("pay_real_price >=", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceLessThan(BigDecimal value) { + addCriterion("pay_real_price <", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("pay_real_price <=", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceIn(List values) { + addCriterion("pay_real_price in", values, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceNotIn(List values) { + addCriterion("pay_real_price not in", values, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("pay_real_price between", value1, value2, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("pay_real_price not between", value1, value2, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andGoodsTypeIsNull() { + addCriterion("goods_type is null"); + return (Criteria) this; + } + + public Criteria andGoodsTypeIsNotNull() { + addCriterion("goods_type is not null"); + return (Criteria) this; + } + + public Criteria andGoodsTypeEqualTo(Integer value) { + addCriterion("goods_type =", value, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeNotEqualTo(Integer value) { + addCriterion("goods_type <>", value, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeGreaterThan(Integer value) { + addCriterion("goods_type >", value, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("goods_type >=", value, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeLessThan(Integer value) { + addCriterion("goods_type <", value, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeLessThanOrEqualTo(Integer value) { + addCriterion("goods_type <=", value, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeIn(List values) { + addCriterion("goods_type in", values, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeNotIn(List values) { + addCriterion("goods_type not in", values, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeBetween(Integer value1, Integer value2) { + addCriterion("goods_type between", value1, value2, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeNotBetween(Integer value1, Integer value2) { + addCriterion("goods_type not between", value1, value2, "goodsType"); + 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 andGoodsNameIsNull() { + addCriterion("goods_name is null"); + return (Criteria) this; + } + + public Criteria andGoodsNameIsNotNull() { + addCriterion("goods_name is not null"); + return (Criteria) this; + } + + public Criteria andGoodsNameEqualTo(String value) { + addCriterion("goods_name =", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameNotEqualTo(String value) { + addCriterion("goods_name <>", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameGreaterThan(String value) { + addCriterion("goods_name >", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameGreaterThanOrEqualTo(String value) { + addCriterion("goods_name >=", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameLessThan(String value) { + addCriterion("goods_name <", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameLessThanOrEqualTo(String value) { + addCriterion("goods_name <=", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameLike(String value) { + addCriterion("goods_name like", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameNotLike(String value) { + addCriterion("goods_name not like", value, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameIn(List values) { + addCriterion("goods_name in", values, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameNotIn(List values) { + addCriterion("goods_name not in", values, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameBetween(String value1, String value2) { + addCriterion("goods_name between", value1, value2, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameNotBetween(String value1, String value2) { + addCriterion("goods_name not between", value1, value2, "goodsName"); + return (Criteria) this; + } + + public Criteria andPreUserIdIsNull() { + addCriterion("pre_user_id is null"); + return (Criteria) this; + } + + public Criteria andPreUserIdIsNotNull() { + addCriterion("pre_user_id is not null"); + return (Criteria) this; + } + + public Criteria andPreUserIdEqualTo(Long value) { + addCriterion("pre_user_id =", value, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdNotEqualTo(Long value) { + addCriterion("pre_user_id <>", value, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdGreaterThan(Long value) { + addCriterion("pre_user_id >", value, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("pre_user_id >=", value, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdLessThan(Long value) { + addCriterion("pre_user_id <", value, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdLessThanOrEqualTo(Long value) { + addCriterion("pre_user_id <=", value, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdIn(List values) { + addCriterion("pre_user_id in", values, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdNotIn(List values) { + addCriterion("pre_user_id not in", values, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdBetween(Long value1, Long value2) { + addCriterion("pre_user_id between", value1, value2, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserIdNotBetween(Long value1, Long value2) { + addCriterion("pre_user_id not between", value1, value2, "preUserId"); + return (Criteria) this; + } + + public Criteria andPreUserNameIsNull() { + addCriterion("pre_user_name is null"); + return (Criteria) this; + } + + public Criteria andPreUserNameIsNotNull() { + addCriterion("pre_user_name is not null"); + return (Criteria) this; + } + + public Criteria andPreUserNameEqualTo(String value) { + addCriterion("pre_user_name =", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameNotEqualTo(String value) { + addCriterion("pre_user_name <>", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameGreaterThan(String value) { + addCriterion("pre_user_name >", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameGreaterThanOrEqualTo(String value) { + addCriterion("pre_user_name >=", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameLessThan(String value) { + addCriterion("pre_user_name <", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameLessThanOrEqualTo(String value) { + addCriterion("pre_user_name <=", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameLike(String value) { + addCriterion("pre_user_name like", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameNotLike(String value) { + addCriterion("pre_user_name not like", value, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameIn(List values) { + addCriterion("pre_user_name in", values, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameNotIn(List values) { + addCriterion("pre_user_name not in", values, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameBetween(String value1, String value2) { + addCriterion("pre_user_name between", value1, value2, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserNameNotBetween(String value1, String value2) { + addCriterion("pre_user_name not between", value1, value2, "preUserName"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneIsNull() { + addCriterion("pre_user_phone is null"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneIsNotNull() { + addCriterion("pre_user_phone is not null"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneEqualTo(String value) { + addCriterion("pre_user_phone =", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneNotEqualTo(String value) { + addCriterion("pre_user_phone <>", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneGreaterThan(String value) { + addCriterion("pre_user_phone >", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneGreaterThanOrEqualTo(String value) { + addCriterion("pre_user_phone >=", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneLessThan(String value) { + addCriterion("pre_user_phone <", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneLessThanOrEqualTo(String value) { + addCriterion("pre_user_phone <=", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneLike(String value) { + addCriterion("pre_user_phone like", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneNotLike(String value) { + addCriterion("pre_user_phone not like", value, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneIn(List values) { + addCriterion("pre_user_phone in", values, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneNotIn(List values) { + addCriterion("pre_user_phone not in", values, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneBetween(String value1, String value2) { + addCriterion("pre_user_phone between", value1, value2, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserPhoneNotBetween(String value1, String value2) { + addCriterion("pre_user_phone not between", value1, value2, "preUserPhone"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkIsNull() { + addCriterion("pre_user_remark is null"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkIsNotNull() { + addCriterion("pre_user_remark is not null"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkEqualTo(String value) { + addCriterion("pre_user_remark =", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkNotEqualTo(String value) { + addCriterion("pre_user_remark <>", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkGreaterThan(String value) { + addCriterion("pre_user_remark >", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkGreaterThanOrEqualTo(String value) { + addCriterion("pre_user_remark >=", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkLessThan(String value) { + addCriterion("pre_user_remark <", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkLessThanOrEqualTo(String value) { + addCriterion("pre_user_remark <=", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkLike(String value) { + addCriterion("pre_user_remark like", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkNotLike(String value) { + addCriterion("pre_user_remark not like", value, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkIn(List values) { + addCriterion("pre_user_remark in", values, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkNotIn(List values) { + addCriterion("pre_user_remark not in", values, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkBetween(String value1, String value2) { + addCriterion("pre_user_remark between", value1, value2, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andPreUserRemarkNotBetween(String value1, String value2) { + addCriterion("pre_user_remark not between", value1, value2, "preUserRemark"); + return (Criteria) this; + } + + public Criteria andStautsIsNull() { + addCriterion("stauts is null"); + return (Criteria) this; + } + + public Criteria andStautsIsNotNull() { + addCriterion("stauts is not null"); + return (Criteria) this; + } + + public Criteria andStautsEqualTo(Integer value) { + addCriterion("stauts =", value, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsNotEqualTo(Integer value) { + addCriterion("stauts <>", value, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsGreaterThan(Integer value) { + addCriterion("stauts >", value, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsGreaterThanOrEqualTo(Integer value) { + addCriterion("stauts >=", value, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsLessThan(Integer value) { + addCriterion("stauts <", value, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsLessThanOrEqualTo(Integer value) { + addCriterion("stauts <=", value, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsIn(List values) { + addCriterion("stauts in", values, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsNotIn(List values) { + addCriterion("stauts not in", values, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsBetween(Integer value1, Integer value2) { + addCriterion("stauts between", value1, value2, "stauts"); + return (Criteria) this; + } + + public Criteria andStautsNotBetween(Integer value1, Integer value2) { + addCriterion("stauts not between", value1, value2, "stauts"); + return (Criteria) this; + } + + public Criteria andStatusFailDescIsNull() { + addCriterion("status_fail_desc is null"); + return (Criteria) this; + } + + public Criteria andStatusFailDescIsNotNull() { + addCriterion("status_fail_desc is not null"); + return (Criteria) this; + } + + public Criteria andStatusFailDescEqualTo(String value) { + addCriterion("status_fail_desc =", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescNotEqualTo(String value) { + addCriterion("status_fail_desc <>", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescGreaterThan(String value) { + addCriterion("status_fail_desc >", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescGreaterThanOrEqualTo(String value) { + addCriterion("status_fail_desc >=", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescLessThan(String value) { + addCriterion("status_fail_desc <", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescLessThanOrEqualTo(String value) { + addCriterion("status_fail_desc <=", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescLike(String value) { + addCriterion("status_fail_desc like", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescNotLike(String value) { + addCriterion("status_fail_desc not like", value, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescIn(List values) { + addCriterion("status_fail_desc in", values, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescNotIn(List values) { + addCriterion("status_fail_desc not in", values, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescBetween(String value1, String value2) { + addCriterion("status_fail_desc between", value1, value2, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusFailDescNotBetween(String value1, String value2) { + addCriterion("status_fail_desc not between", value1, value2, "statusFailDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescIsNull() { + addCriterion("status_cancel_desc is null"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescIsNotNull() { + addCriterion("status_cancel_desc is not null"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescEqualTo(String value) { + addCriterion("status_cancel_desc =", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescNotEqualTo(String value) { + addCriterion("status_cancel_desc <>", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescGreaterThan(String value) { + addCriterion("status_cancel_desc >", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescGreaterThanOrEqualTo(String value) { + addCriterion("status_cancel_desc >=", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescLessThan(String value) { + addCriterion("status_cancel_desc <", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescLessThanOrEqualTo(String value) { + addCriterion("status_cancel_desc <=", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescLike(String value) { + addCriterion("status_cancel_desc like", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescNotLike(String value) { + addCriterion("status_cancel_desc not like", value, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescIn(List values) { + addCriterion("status_cancel_desc in", values, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescNotIn(List values) { + addCriterion("status_cancel_desc not in", values, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescBetween(String value1, String value2) { + addCriterion("status_cancel_desc between", value1, value2, "statusCancelDesc"); + return (Criteria) this; + } + + public Criteria andStatusCancelDescNotBetween(String value1, String value2) { + addCriterion("status_cancel_desc not between", value1, value2, "statusCancelDesc"); + 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 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 Criteria andExt4IsNull() { + addCriterion("ext_4 is null"); + return (Criteria) this; + } + + public Criteria andExt4IsNotNull() { + addCriterion("ext_4 is not null"); + return (Criteria) this; + } + + public Criteria andExt4EqualTo(String value) { + addCriterion("ext_4 =", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotEqualTo(String value) { + addCriterion("ext_4 <>", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4GreaterThan(String value) { + addCriterion("ext_4 >", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4GreaterThanOrEqualTo(String value) { + addCriterion("ext_4 >=", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4LessThan(String value) { + addCriterion("ext_4 <", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4LessThanOrEqualTo(String value) { + addCriterion("ext_4 <=", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4Like(String value) { + addCriterion("ext_4 like", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotLike(String value) { + addCriterion("ext_4 not like", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4In(List values) { + addCriterion("ext_4 in", values, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotIn(List values) { + addCriterion("ext_4 not in", values, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4Between(String value1, String value2) { + addCriterion("ext_4 between", value1, value2, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotBetween(String value1, String value2) { + addCriterion("ext_4 not between", value1, value2, "ext4"); + return (Criteria) this; + } + + public Criteria andExt5IsNull() { + addCriterion("ext_5 is null"); + return (Criteria) this; + } + + public Criteria andExt5IsNotNull() { + addCriterion("ext_5 is not null"); + return (Criteria) this; + } + + public Criteria andExt5EqualTo(String value) { + addCriterion("ext_5 =", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotEqualTo(String value) { + addCriterion("ext_5 <>", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5GreaterThan(String value) { + addCriterion("ext_5 >", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5GreaterThanOrEqualTo(String value) { + addCriterion("ext_5 >=", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5LessThan(String value) { + addCriterion("ext_5 <", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5LessThanOrEqualTo(String value) { + addCriterion("ext_5 <=", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5Like(String value) { + addCriterion("ext_5 like", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotLike(String value) { + addCriterion("ext_5 not like", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5In(List values) { + addCriterion("ext_5 in", values, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotIn(List values) { + addCriterion("ext_5 not in", values, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5Between(String value1, String value2) { + addCriterion("ext_5 between", value1, value2, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotBetween(String value1, String value2) { + addCriterion("ext_5 not between", value1, value2, "ext5"); + 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