diff --git a/hai-service/src/main/java/com/hai/dao/EtcCarMsgMapper.java b/hai-service/src/main/java/com/hai/dao/EtcCarMsgMapper.java new file mode 100644 index 00000000..754c066b --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/EtcCarMsgMapper.java @@ -0,0 +1,183 @@ +package com.hai.dao; + +import com.hai.entity.EtcCarMsg; +import com.hai.entity.EtcCarMsgExample; +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 EtcCarMsgMapper extends EtcCarMsgMapperExt { + @SelectProvider(type=EtcCarMsgSqlProvider.class, method="countByExample") + long countByExample(EtcCarMsgExample example); + + @DeleteProvider(type=EtcCarMsgSqlProvider.class, method="deleteByExample") + int deleteByExample(EtcCarMsgExample example); + + @Delete({ + "delete from etc_car_msg", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into etc_car_msg (cust_id, veh_id, ", + "product_id, card_variety_id, ", + "veh_plate_no, veh_plate_color, ", + "veh_type, veh_type_name, ", + "axles_num, wheels_num, ", + "drivLic_main_fro, drivLic_sub_fro, ", + "head_stock_photo, create_time, ", + "update_time, card_no, ", + "obu_no, pay_status, ", + "sign_status, veh_status, ", + "user_id, user_name, ", + "ext_1, ext_2, ext_3)", + "values (#{custId,jdbcType=VARCHAR}, #{vehId,jdbcType=VARCHAR}, ", + "#{productId,jdbcType=INTEGER}, #{cardVarietyId,jdbcType=INTEGER}, ", + "#{vehPlateNo,jdbcType=VARCHAR}, #{vehPlateColor,jdbcType=INTEGER}, ", + "#{vehType,jdbcType=VARCHAR}, #{vehTypeName,jdbcType=VARCHAR}, ", + "#{axlesNum,jdbcType=INTEGER}, #{wheelsNum,jdbcType=INTEGER}, ", + "#{drivlicMainFro,jdbcType=VARCHAR}, #{drivlicSubFro,jdbcType=VARCHAR}, ", + "#{headStockPhoto,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{cardNo,jdbcType=VARCHAR}, ", + "#{obuNo,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER}, ", + "#{signStatus,jdbcType=INTEGER}, #{vehStatus,jdbcType=INTEGER}, ", + "#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(EtcCarMsg record); + + @InsertProvider(type=EtcCarMsgSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(EtcCarMsg record); + + @SelectProvider(type=EtcCarMsgSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="cust_id", property="custId", jdbcType=JdbcType.VARCHAR), + @Result(column="veh_id", property="vehId", jdbcType=JdbcType.VARCHAR), + @Result(column="product_id", property="productId", jdbcType=JdbcType.INTEGER), + @Result(column="card_variety_id", property="cardVarietyId", jdbcType=JdbcType.INTEGER), + @Result(column="veh_plate_no", property="vehPlateNo", jdbcType=JdbcType.VARCHAR), + @Result(column="veh_plate_color", property="vehPlateColor", jdbcType=JdbcType.INTEGER), + @Result(column="veh_type", property="vehType", jdbcType=JdbcType.VARCHAR), + @Result(column="veh_type_name", property="vehTypeName", jdbcType=JdbcType.VARCHAR), + @Result(column="axles_num", property="axlesNum", jdbcType=JdbcType.INTEGER), + @Result(column="wheels_num", property="wheelsNum", jdbcType=JdbcType.INTEGER), + @Result(column="drivLic_main_fro", property="drivlicMainFro", jdbcType=JdbcType.VARCHAR), + @Result(column="drivLic_sub_fro", property="drivlicSubFro", jdbcType=JdbcType.VARCHAR), + @Result(column="head_stock_photo", property="headStockPhoto", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="card_no", property="cardNo", jdbcType=JdbcType.VARCHAR), + @Result(column="obu_no", property="obuNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_status", property="payStatus", jdbcType=JdbcType.INTEGER), + @Result(column="sign_status", property="signStatus", jdbcType=JdbcType.INTEGER), + @Result(column="veh_status", property="vehStatus", jdbcType=JdbcType.INTEGER), + @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @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(EtcCarMsgExample example); + + @Select({ + "select", + "id, cust_id, veh_id, product_id, card_variety_id, veh_plate_no, veh_plate_color, ", + "veh_type, veh_type_name, axles_num, wheels_num, drivLic_main_fro, drivLic_sub_fro, ", + "head_stock_photo, create_time, update_time, card_no, obu_no, pay_status, sign_status, ", + "veh_status, user_id, user_name, ext_1, ext_2, ext_3", + "from etc_car_msg", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="cust_id", property="custId", jdbcType=JdbcType.VARCHAR), + @Result(column="veh_id", property="vehId", jdbcType=JdbcType.VARCHAR), + @Result(column="product_id", property="productId", jdbcType=JdbcType.INTEGER), + @Result(column="card_variety_id", property="cardVarietyId", jdbcType=JdbcType.INTEGER), + @Result(column="veh_plate_no", property="vehPlateNo", jdbcType=JdbcType.VARCHAR), + @Result(column="veh_plate_color", property="vehPlateColor", jdbcType=JdbcType.INTEGER), + @Result(column="veh_type", property="vehType", jdbcType=JdbcType.VARCHAR), + @Result(column="veh_type_name", property="vehTypeName", jdbcType=JdbcType.VARCHAR), + @Result(column="axles_num", property="axlesNum", jdbcType=JdbcType.INTEGER), + @Result(column="wheels_num", property="wheelsNum", jdbcType=JdbcType.INTEGER), + @Result(column="drivLic_main_fro", property="drivlicMainFro", jdbcType=JdbcType.VARCHAR), + @Result(column="drivLic_sub_fro", property="drivlicSubFro", jdbcType=JdbcType.VARCHAR), + @Result(column="head_stock_photo", property="headStockPhoto", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="card_no", property="cardNo", jdbcType=JdbcType.VARCHAR), + @Result(column="obu_no", property="obuNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_status", property="payStatus", jdbcType=JdbcType.INTEGER), + @Result(column="sign_status", property="signStatus", jdbcType=JdbcType.INTEGER), + @Result(column="veh_status", property="vehStatus", jdbcType=JdbcType.INTEGER), + @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @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) + }) + EtcCarMsg selectByPrimaryKey(Long id); + + @UpdateProvider(type=EtcCarMsgSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") EtcCarMsg record, @Param("example") EtcCarMsgExample example); + + @UpdateProvider(type=EtcCarMsgSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") EtcCarMsg record, @Param("example") EtcCarMsgExample example); + + @UpdateProvider(type=EtcCarMsgSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(EtcCarMsg record); + + @Update({ + "update etc_car_msg", + "set cust_id = #{custId,jdbcType=VARCHAR},", + "veh_id = #{vehId,jdbcType=VARCHAR},", + "product_id = #{productId,jdbcType=INTEGER},", + "card_variety_id = #{cardVarietyId,jdbcType=INTEGER},", + "veh_plate_no = #{vehPlateNo,jdbcType=VARCHAR},", + "veh_plate_color = #{vehPlateColor,jdbcType=INTEGER},", + "veh_type = #{vehType,jdbcType=VARCHAR},", + "veh_type_name = #{vehTypeName,jdbcType=VARCHAR},", + "axles_num = #{axlesNum,jdbcType=INTEGER},", + "wheels_num = #{wheelsNum,jdbcType=INTEGER},", + "drivLic_main_fro = #{drivlicMainFro,jdbcType=VARCHAR},", + "drivLic_sub_fro = #{drivlicSubFro,jdbcType=VARCHAR},", + "head_stock_photo = #{headStockPhoto,jdbcType=VARCHAR},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "update_time = #{updateTime,jdbcType=TIMESTAMP},", + "card_no = #{cardNo,jdbcType=VARCHAR},", + "obu_no = #{obuNo,jdbcType=VARCHAR},", + "pay_status = #{payStatus,jdbcType=INTEGER},", + "sign_status = #{signStatus,jdbcType=INTEGER},", + "veh_status = #{vehStatus,jdbcType=INTEGER},", + "user_id = #{userId,jdbcType=BIGINT},", + "user_name = #{userName,jdbcType=VARCHAR},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(EtcCarMsg record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/EtcCarMsgMapperExt.java b/hai-service/src/main/java/com/hai/dao/EtcCarMsgMapperExt.java new file mode 100644 index 00000000..516bf9e7 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/EtcCarMsgMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface EtcCarMsgMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/EtcCarMsgSqlProvider.java b/hai-service/src/main/java/com/hai/dao/EtcCarMsgSqlProvider.java new file mode 100644 index 00000000..04df1ee7 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/EtcCarMsgSqlProvider.java @@ -0,0 +1,528 @@ +package com.hai.dao; + +import com.hai.entity.EtcCarMsg; +import com.hai.entity.EtcCarMsgExample.Criteria; +import com.hai.entity.EtcCarMsgExample.Criterion; +import com.hai.entity.EtcCarMsgExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class EtcCarMsgSqlProvider { + + public String countByExample(EtcCarMsgExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("etc_car_msg"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(EtcCarMsgExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("etc_car_msg"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(EtcCarMsg record) { + SQL sql = new SQL(); + sql.INSERT_INTO("etc_car_msg"); + + if (record.getCustId() != null) { + sql.VALUES("cust_id", "#{custId,jdbcType=VARCHAR}"); + } + + if (record.getVehId() != null) { + sql.VALUES("veh_id", "#{vehId,jdbcType=VARCHAR}"); + } + + if (record.getProductId() != null) { + sql.VALUES("product_id", "#{productId,jdbcType=INTEGER}"); + } + + if (record.getCardVarietyId() != null) { + sql.VALUES("card_variety_id", "#{cardVarietyId,jdbcType=INTEGER}"); + } + + if (record.getVehPlateNo() != null) { + sql.VALUES("veh_plate_no", "#{vehPlateNo,jdbcType=VARCHAR}"); + } + + if (record.getVehPlateColor() != null) { + sql.VALUES("veh_plate_color", "#{vehPlateColor,jdbcType=INTEGER}"); + } + + if (record.getVehType() != null) { + sql.VALUES("veh_type", "#{vehType,jdbcType=VARCHAR}"); + } + + if (record.getVehTypeName() != null) { + sql.VALUES("veh_type_name", "#{vehTypeName,jdbcType=VARCHAR}"); + } + + if (record.getAxlesNum() != null) { + sql.VALUES("axles_num", "#{axlesNum,jdbcType=INTEGER}"); + } + + if (record.getWheelsNum() != null) { + sql.VALUES("wheels_num", "#{wheelsNum,jdbcType=INTEGER}"); + } + + if (record.getDrivlicMainFro() != null) { + sql.VALUES("drivLic_main_fro", "#{drivlicMainFro,jdbcType=VARCHAR}"); + } + + if (record.getDrivlicSubFro() != null) { + sql.VALUES("drivLic_sub_fro", "#{drivlicSubFro,jdbcType=VARCHAR}"); + } + + if (record.getHeadStockPhoto() != null) { + sql.VALUES("head_stock_photo", "#{headStockPhoto,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.getCardNo() != null) { + sql.VALUES("card_no", "#{cardNo,jdbcType=VARCHAR}"); + } + + if (record.getObuNo() != null) { + sql.VALUES("obu_no", "#{obuNo,jdbcType=VARCHAR}"); + } + + if (record.getPayStatus() != null) { + sql.VALUES("pay_status", "#{payStatus,jdbcType=INTEGER}"); + } + + if (record.getSignStatus() != null) { + sql.VALUES("sign_status", "#{signStatus,jdbcType=INTEGER}"); + } + + if (record.getVehStatus() != null) { + sql.VALUES("veh_status", "#{vehStatus,jdbcType=INTEGER}"); + } + + if (record.getUserId() != null) { + sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}"); + } + + 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(EtcCarMsgExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("cust_id"); + sql.SELECT("veh_id"); + sql.SELECT("product_id"); + sql.SELECT("card_variety_id"); + sql.SELECT("veh_plate_no"); + sql.SELECT("veh_plate_color"); + sql.SELECT("veh_type"); + sql.SELECT("veh_type_name"); + sql.SELECT("axles_num"); + sql.SELECT("wheels_num"); + sql.SELECT("drivLic_main_fro"); + sql.SELECT("drivLic_sub_fro"); + sql.SELECT("head_stock_photo"); + sql.SELECT("create_time"); + sql.SELECT("update_time"); + sql.SELECT("card_no"); + sql.SELECT("obu_no"); + sql.SELECT("pay_status"); + sql.SELECT("sign_status"); + sql.SELECT("veh_status"); + sql.SELECT("user_id"); + sql.SELECT("user_name"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("etc_car_msg"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + EtcCarMsg record = (EtcCarMsg) parameter.get("record"); + EtcCarMsgExample example = (EtcCarMsgExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("etc_car_msg"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getCustId() != null) { + sql.SET("cust_id = #{record.custId,jdbcType=VARCHAR}"); + } + + if (record.getVehId() != null) { + sql.SET("veh_id = #{record.vehId,jdbcType=VARCHAR}"); + } + + if (record.getProductId() != null) { + sql.SET("product_id = #{record.productId,jdbcType=INTEGER}"); + } + + if (record.getCardVarietyId() != null) { + sql.SET("card_variety_id = #{record.cardVarietyId,jdbcType=INTEGER}"); + } + + if (record.getVehPlateNo() != null) { + sql.SET("veh_plate_no = #{record.vehPlateNo,jdbcType=VARCHAR}"); + } + + if (record.getVehPlateColor() != null) { + sql.SET("veh_plate_color = #{record.vehPlateColor,jdbcType=INTEGER}"); + } + + if (record.getVehType() != null) { + sql.SET("veh_type = #{record.vehType,jdbcType=VARCHAR}"); + } + + if (record.getVehTypeName() != null) { + sql.SET("veh_type_name = #{record.vehTypeName,jdbcType=VARCHAR}"); + } + + if (record.getAxlesNum() != null) { + sql.SET("axles_num = #{record.axlesNum,jdbcType=INTEGER}"); + } + + if (record.getWheelsNum() != null) { + sql.SET("wheels_num = #{record.wheelsNum,jdbcType=INTEGER}"); + } + + if (record.getDrivlicMainFro() != null) { + sql.SET("drivLic_main_fro = #{record.drivlicMainFro,jdbcType=VARCHAR}"); + } + + if (record.getDrivlicSubFro() != null) { + sql.SET("drivLic_sub_fro = #{record.drivlicSubFro,jdbcType=VARCHAR}"); + } + + if (record.getHeadStockPhoto() != null) { + sql.SET("head_stock_photo = #{record.headStockPhoto,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.getCardNo() != null) { + sql.SET("card_no = #{record.cardNo,jdbcType=VARCHAR}"); + } + + if (record.getObuNo() != null) { + sql.SET("obu_no = #{record.obuNo,jdbcType=VARCHAR}"); + } + + if (record.getPayStatus() != null) { + sql.SET("pay_status = #{record.payStatus,jdbcType=INTEGER}"); + } + + if (record.getSignStatus() != null) { + sql.SET("sign_status = #{record.signStatus,jdbcType=INTEGER}"); + } + + if (record.getVehStatus() != null) { + sql.SET("veh_status = #{record.vehStatus,jdbcType=INTEGER}"); + } + + if (record.getUserId() != null) { + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + } + + 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("etc_car_msg"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("cust_id = #{record.custId,jdbcType=VARCHAR}"); + sql.SET("veh_id = #{record.vehId,jdbcType=VARCHAR}"); + sql.SET("product_id = #{record.productId,jdbcType=INTEGER}"); + sql.SET("card_variety_id = #{record.cardVarietyId,jdbcType=INTEGER}"); + sql.SET("veh_plate_no = #{record.vehPlateNo,jdbcType=VARCHAR}"); + sql.SET("veh_plate_color = #{record.vehPlateColor,jdbcType=INTEGER}"); + sql.SET("veh_type = #{record.vehType,jdbcType=VARCHAR}"); + sql.SET("veh_type_name = #{record.vehTypeName,jdbcType=VARCHAR}"); + sql.SET("axles_num = #{record.axlesNum,jdbcType=INTEGER}"); + sql.SET("wheels_num = #{record.wheelsNum,jdbcType=INTEGER}"); + sql.SET("drivLic_main_fro = #{record.drivlicMainFro,jdbcType=VARCHAR}"); + sql.SET("drivLic_sub_fro = #{record.drivlicSubFro,jdbcType=VARCHAR}"); + sql.SET("head_stock_photo = #{record.headStockPhoto,jdbcType=VARCHAR}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); + sql.SET("card_no = #{record.cardNo,jdbcType=VARCHAR}"); + sql.SET("obu_no = #{record.obuNo,jdbcType=VARCHAR}"); + sql.SET("pay_status = #{record.payStatus,jdbcType=INTEGER}"); + sql.SET("sign_status = #{record.signStatus,jdbcType=INTEGER}"); + sql.SET("veh_status = #{record.vehStatus,jdbcType=INTEGER}"); + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + EtcCarMsgExample example = (EtcCarMsgExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(EtcCarMsg record) { + SQL sql = new SQL(); + sql.UPDATE("etc_car_msg"); + + if (record.getCustId() != null) { + sql.SET("cust_id = #{custId,jdbcType=VARCHAR}"); + } + + if (record.getVehId() != null) { + sql.SET("veh_id = #{vehId,jdbcType=VARCHAR}"); + } + + if (record.getProductId() != null) { + sql.SET("product_id = #{productId,jdbcType=INTEGER}"); + } + + if (record.getCardVarietyId() != null) { + sql.SET("card_variety_id = #{cardVarietyId,jdbcType=INTEGER}"); + } + + if (record.getVehPlateNo() != null) { + sql.SET("veh_plate_no = #{vehPlateNo,jdbcType=VARCHAR}"); + } + + if (record.getVehPlateColor() != null) { + sql.SET("veh_plate_color = #{vehPlateColor,jdbcType=INTEGER}"); + } + + if (record.getVehType() != null) { + sql.SET("veh_type = #{vehType,jdbcType=VARCHAR}"); + } + + if (record.getVehTypeName() != null) { + sql.SET("veh_type_name = #{vehTypeName,jdbcType=VARCHAR}"); + } + + if (record.getAxlesNum() != null) { + sql.SET("axles_num = #{axlesNum,jdbcType=INTEGER}"); + } + + if (record.getWheelsNum() != null) { + sql.SET("wheels_num = #{wheelsNum,jdbcType=INTEGER}"); + } + + if (record.getDrivlicMainFro() != null) { + sql.SET("drivLic_main_fro = #{drivlicMainFro,jdbcType=VARCHAR}"); + } + + if (record.getDrivlicSubFro() != null) { + sql.SET("drivLic_sub_fro = #{drivlicSubFro,jdbcType=VARCHAR}"); + } + + if (record.getHeadStockPhoto() != null) { + sql.SET("head_stock_photo = #{headStockPhoto,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.getCardNo() != null) { + sql.SET("card_no = #{cardNo,jdbcType=VARCHAR}"); + } + + if (record.getObuNo() != null) { + sql.SET("obu_no = #{obuNo,jdbcType=VARCHAR}"); + } + + if (record.getPayStatus() != null) { + sql.SET("pay_status = #{payStatus,jdbcType=INTEGER}"); + } + + if (record.getSignStatus() != null) { + sql.SET("sign_status = #{signStatus,jdbcType=INTEGER}"); + } + + if (record.getVehStatus() != null) { + sql.SET("veh_status = #{vehStatus,jdbcType=INTEGER}"); + } + + if (record.getUserId() != null) { + sql.SET("user_id = #{userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{userName,jdbcType=VARCHAR}"); + } + + 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, EtcCarMsgExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/EtcCustMsgMapper.java b/hai-service/src/main/java/com/hai/dao/EtcCustMsgMapper.java new file mode 100644 index 00000000..58e86511 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/EtcCustMsgMapper.java @@ -0,0 +1,158 @@ +package com.hai.dao; + +import com.hai.entity.EtcCustMsg; +import com.hai.entity.EtcCustMsgExample; +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 EtcCustMsgMapper extends EtcCustMsgMapperExt { + @SelectProvider(type=EtcCustMsgSqlProvider.class, method="countByExample") + long countByExample(EtcCustMsgExample example); + + @DeleteProvider(type=EtcCustMsgSqlProvider.class, method="deleteByExample") + int deleteByExample(EtcCustMsgExample example); + + @Delete({ + "delete from etc_cust_msg", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into etc_cust_msg (cust_id, cust_name, ", + "phone, cust_id_no, ", + "cust_agent_id_front, cust_agent_id_bront, ", + "account_no, bank_name, ", + "address, bank_phone, ", + "bank_card, create_time, ", + "update_time, `status`, ", + "user_id, user_name, ", + "ext_1, ext_2, ext_3)", + "values (#{custId,jdbcType=VARCHAR}, #{custName,jdbcType=VARCHAR}, ", + "#{phone,jdbcType=VARCHAR}, #{custIdNo,jdbcType=VARCHAR}, ", + "#{custAgentIdFront,jdbcType=VARCHAR}, #{custAgentIdBront,jdbcType=VARCHAR}, ", + "#{accountNo,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, ", + "#{address,jdbcType=VARCHAR}, #{bankPhone,jdbcType=VARCHAR}, ", + "#{bankCard,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", + "#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(EtcCustMsg record); + + @InsertProvider(type=EtcCustMsgSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(EtcCustMsg record); + + @SelectProvider(type=EtcCustMsgSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="cust_id", property="custId", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_name", property="custName", jdbcType=JdbcType.VARCHAR), + @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_id_no", property="custIdNo", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_agent_id_front", property="custAgentIdFront", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_agent_id_bront", property="custAgentIdBront", jdbcType=JdbcType.VARCHAR), + @Result(column="account_no", property="accountNo", jdbcType=JdbcType.VARCHAR), + @Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR), + @Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), + @Result(column="bank_phone", property="bankPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="bank_card", property="bankCard", 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="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @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(EtcCustMsgExample example); + + @Select({ + "select", + "id, cust_id, cust_name, phone, cust_id_no, cust_agent_id_front, cust_agent_id_bront, ", + "account_no, bank_name, address, bank_phone, bank_card, create_time, update_time, ", + "`status`, user_id, user_name, ext_1, ext_2, ext_3", + "from etc_cust_msg", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="cust_id", property="custId", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_name", property="custName", jdbcType=JdbcType.VARCHAR), + @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_id_no", property="custIdNo", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_agent_id_front", property="custAgentIdFront", jdbcType=JdbcType.VARCHAR), + @Result(column="cust_agent_id_bront", property="custAgentIdBront", jdbcType=JdbcType.VARCHAR), + @Result(column="account_no", property="accountNo", jdbcType=JdbcType.VARCHAR), + @Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR), + @Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), + @Result(column="bank_phone", property="bankPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="bank_card", property="bankCard", 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="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @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) + }) + EtcCustMsg selectByPrimaryKey(Long id); + + @UpdateProvider(type=EtcCustMsgSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") EtcCustMsg record, @Param("example") EtcCustMsgExample example); + + @UpdateProvider(type=EtcCustMsgSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") EtcCustMsg record, @Param("example") EtcCustMsgExample example); + + @UpdateProvider(type=EtcCustMsgSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(EtcCustMsg record); + + @Update({ + "update etc_cust_msg", + "set cust_id = #{custId,jdbcType=VARCHAR},", + "cust_name = #{custName,jdbcType=VARCHAR},", + "phone = #{phone,jdbcType=VARCHAR},", + "cust_id_no = #{custIdNo,jdbcType=VARCHAR},", + "cust_agent_id_front = #{custAgentIdFront,jdbcType=VARCHAR},", + "cust_agent_id_bront = #{custAgentIdBront,jdbcType=VARCHAR},", + "account_no = #{accountNo,jdbcType=VARCHAR},", + "bank_name = #{bankName,jdbcType=VARCHAR},", + "address = #{address,jdbcType=VARCHAR},", + "bank_phone = #{bankPhone,jdbcType=VARCHAR},", + "bank_card = #{bankCard,jdbcType=VARCHAR},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "update_time = #{updateTime,jdbcType=TIMESTAMP},", + "`status` = #{status,jdbcType=INTEGER},", + "user_id = #{userId,jdbcType=BIGINT},", + "user_name = #{userName,jdbcType=VARCHAR},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(EtcCustMsg record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/EtcCustMsgMapperExt.java b/hai-service/src/main/java/com/hai/dao/EtcCustMsgMapperExt.java new file mode 100644 index 00000000..2e1dac03 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/EtcCustMsgMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface EtcCustMsgMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/EtcCustMsgSqlProvider.java b/hai-service/src/main/java/com/hai/dao/EtcCustMsgSqlProvider.java new file mode 100644 index 00000000..e320023d --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/EtcCustMsgSqlProvider.java @@ -0,0 +1,444 @@ +package com.hai.dao; + +import com.hai.entity.EtcCustMsg; +import com.hai.entity.EtcCustMsgExample.Criteria; +import com.hai.entity.EtcCustMsgExample.Criterion; +import com.hai.entity.EtcCustMsgExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class EtcCustMsgSqlProvider { + + public String countByExample(EtcCustMsgExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("etc_cust_msg"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(EtcCustMsgExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("etc_cust_msg"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(EtcCustMsg record) { + SQL sql = new SQL(); + sql.INSERT_INTO("etc_cust_msg"); + + if (record.getCustId() != null) { + sql.VALUES("cust_id", "#{custId,jdbcType=VARCHAR}"); + } + + if (record.getCustName() != null) { + sql.VALUES("cust_name", "#{custName,jdbcType=VARCHAR}"); + } + + if (record.getPhone() != null) { + sql.VALUES("phone", "#{phone,jdbcType=VARCHAR}"); + } + + if (record.getCustIdNo() != null) { + sql.VALUES("cust_id_no", "#{custIdNo,jdbcType=VARCHAR}"); + } + + if (record.getCustAgentIdFront() != null) { + sql.VALUES("cust_agent_id_front", "#{custAgentIdFront,jdbcType=VARCHAR}"); + } + + if (record.getCustAgentIdBront() != null) { + sql.VALUES("cust_agent_id_bront", "#{custAgentIdBront,jdbcType=VARCHAR}"); + } + + if (record.getAccountNo() != null) { + sql.VALUES("account_no", "#{accountNo,jdbcType=VARCHAR}"); + } + + if (record.getBankName() != null) { + sql.VALUES("bank_name", "#{bankName,jdbcType=VARCHAR}"); + } + + if (record.getAddress() != null) { + sql.VALUES("address", "#{address,jdbcType=VARCHAR}"); + } + + if (record.getBankPhone() != null) { + sql.VALUES("bank_phone", "#{bankPhone,jdbcType=VARCHAR}"); + } + + if (record.getBankCard() != null) { + sql.VALUES("bank_card", "#{bankCard,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.getUserId() != null) { + sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}"); + } + + 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(EtcCustMsgExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("cust_id"); + sql.SELECT("cust_name"); + sql.SELECT("phone"); + sql.SELECT("cust_id_no"); + sql.SELECT("cust_agent_id_front"); + sql.SELECT("cust_agent_id_bront"); + sql.SELECT("account_no"); + sql.SELECT("bank_name"); + sql.SELECT("address"); + sql.SELECT("bank_phone"); + sql.SELECT("bank_card"); + sql.SELECT("create_time"); + sql.SELECT("update_time"); + sql.SELECT("`status`"); + sql.SELECT("user_id"); + sql.SELECT("user_name"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("etc_cust_msg"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + EtcCustMsg record = (EtcCustMsg) parameter.get("record"); + EtcCustMsgExample example = (EtcCustMsgExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("etc_cust_msg"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getCustId() != null) { + sql.SET("cust_id = #{record.custId,jdbcType=VARCHAR}"); + } + + if (record.getCustName() != null) { + sql.SET("cust_name = #{record.custName,jdbcType=VARCHAR}"); + } + + if (record.getPhone() != null) { + sql.SET("phone = #{record.phone,jdbcType=VARCHAR}"); + } + + if (record.getCustIdNo() != null) { + sql.SET("cust_id_no = #{record.custIdNo,jdbcType=VARCHAR}"); + } + + if (record.getCustAgentIdFront() != null) { + sql.SET("cust_agent_id_front = #{record.custAgentIdFront,jdbcType=VARCHAR}"); + } + + if (record.getCustAgentIdBront() != null) { + sql.SET("cust_agent_id_bront = #{record.custAgentIdBront,jdbcType=VARCHAR}"); + } + + if (record.getAccountNo() != null) { + sql.SET("account_no = #{record.accountNo,jdbcType=VARCHAR}"); + } + + if (record.getBankName() != null) { + sql.SET("bank_name = #{record.bankName,jdbcType=VARCHAR}"); + } + + if (record.getAddress() != null) { + sql.SET("address = #{record.address,jdbcType=VARCHAR}"); + } + + if (record.getBankPhone() != null) { + sql.SET("bank_phone = #{record.bankPhone,jdbcType=VARCHAR}"); + } + + if (record.getBankCard() != null) { + sql.SET("bank_card = #{record.bankCard,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.getUserId() != null) { + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + } + + 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("etc_cust_msg"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("cust_id = #{record.custId,jdbcType=VARCHAR}"); + sql.SET("cust_name = #{record.custName,jdbcType=VARCHAR}"); + sql.SET("phone = #{record.phone,jdbcType=VARCHAR}"); + sql.SET("cust_id_no = #{record.custIdNo,jdbcType=VARCHAR}"); + sql.SET("cust_agent_id_front = #{record.custAgentIdFront,jdbcType=VARCHAR}"); + sql.SET("cust_agent_id_bront = #{record.custAgentIdBront,jdbcType=VARCHAR}"); + sql.SET("account_no = #{record.accountNo,jdbcType=VARCHAR}"); + sql.SET("bank_name = #{record.bankName,jdbcType=VARCHAR}"); + sql.SET("address = #{record.address,jdbcType=VARCHAR}"); + sql.SET("bank_phone = #{record.bankPhone,jdbcType=VARCHAR}"); + sql.SET("bank_card = #{record.bankCard,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("user_id = #{record.userId,jdbcType=BIGINT}"); + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + EtcCustMsgExample example = (EtcCustMsgExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(EtcCustMsg record) { + SQL sql = new SQL(); + sql.UPDATE("etc_cust_msg"); + + if (record.getCustId() != null) { + sql.SET("cust_id = #{custId,jdbcType=VARCHAR}"); + } + + if (record.getCustName() != null) { + sql.SET("cust_name = #{custName,jdbcType=VARCHAR}"); + } + + if (record.getPhone() != null) { + sql.SET("phone = #{phone,jdbcType=VARCHAR}"); + } + + if (record.getCustIdNo() != null) { + sql.SET("cust_id_no = #{custIdNo,jdbcType=VARCHAR}"); + } + + if (record.getCustAgentIdFront() != null) { + sql.SET("cust_agent_id_front = #{custAgentIdFront,jdbcType=VARCHAR}"); + } + + if (record.getCustAgentIdBront() != null) { + sql.SET("cust_agent_id_bront = #{custAgentIdBront,jdbcType=VARCHAR}"); + } + + if (record.getAccountNo() != null) { + sql.SET("account_no = #{accountNo,jdbcType=VARCHAR}"); + } + + if (record.getBankName() != null) { + sql.SET("bank_name = #{bankName,jdbcType=VARCHAR}"); + } + + if (record.getAddress() != null) { + sql.SET("address = #{address,jdbcType=VARCHAR}"); + } + + if (record.getBankPhone() != null) { + sql.SET("bank_phone = #{bankPhone,jdbcType=VARCHAR}"); + } + + if (record.getBankCard() != null) { + sql.SET("bank_card = #{bankCard,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.getUserId() != null) { + sql.SET("user_id = #{userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{userName,jdbcType=VARCHAR}"); + } + + 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, EtcCustMsgExample 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/EtcCarMsg.java b/hai-service/src/main/java/com/hai/entity/EtcCarMsg.java new file mode 100644 index 00000000..68a509c3 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/EtcCarMsg.java @@ -0,0 +1,465 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.util.Date; + +/** + * etc_car_msg + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class EtcCarMsg implements Serializable { + /** + * 主键 + */ + private Long id; + + /** + * 用户信息ID + */ + private String custId; + + /** + * 车辆id + */ + private String vehId; + + /** + * 产品Id + */ + private Integer productId; + + /** + * 卡种id 2:龙通卡;6九州卡 + */ + private Integer cardVarietyId; + + /** + * 车牌号 + */ + private String vehPlateNo; + + /** + * 0:蓝;1:黄;2:黑;3:白;4:渐变绿;5:黄绿双拼;6:蓝白渐变 + */ + private Integer vehPlateColor; + + /** + * 车辆类型 + */ + private String vehType; + + /** + * 车辆类型 名称 + */ + private String vehTypeName; + + /** + * 轴数 + */ + private Integer axlesNum; + + /** + * 轮胎数 + */ + private Integer wheelsNum; + + /** + * 行驶证主页 + */ + private String drivlicMainFro; + + /** + * 行驶证副页 + */ + private String drivlicSubFro; + + /** + * 车头照 + */ + private String headStockPhoto; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 更新时间 + */ + private Date updateTime; + + /** + * 卡号 + */ + private String cardNo; + + /** + * obu号 + */ + private String obuNo; + + /** + * 支付状态:1:未支付,2:已支付 + */ + private Integer payStatus; + + /** + * 签约状态:1已签约, 0:未签约 + */ + private Integer signStatus; + + /** + * 状态 11:待审核,12:待推送,13:已推送高速审核,15:待激活,20:已激活(已启用),21:已停用,22:已挂起,23:已挂失,28:注销审核中,29:注销中,30:已注销,31:审核拒绝,32:已取消,33:高速已拒绝 + */ + private Integer vehStatus; + + /** + * 用户id + */ + private Long userId; + + /** + * 用户名称 + */ + private String userName; + + /** + * 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 String getCustId() { + return custId; + } + + public void setCustId(String custId) { + this.custId = custId; + } + + public String getVehId() { + return vehId; + } + + public void setVehId(String vehId) { + this.vehId = vehId; + } + + public Integer getProductId() { + return productId; + } + + public void setProductId(Integer productId) { + this.productId = productId; + } + + public Integer getCardVarietyId() { + return cardVarietyId; + } + + public void setCardVarietyId(Integer cardVarietyId) { + this.cardVarietyId = cardVarietyId; + } + + public String getVehPlateNo() { + return vehPlateNo; + } + + public void setVehPlateNo(String vehPlateNo) { + this.vehPlateNo = vehPlateNo; + } + + public Integer getVehPlateColor() { + return vehPlateColor; + } + + public void setVehPlateColor(Integer vehPlateColor) { + this.vehPlateColor = vehPlateColor; + } + + public String getVehType() { + return vehType; + } + + public void setVehType(String vehType) { + this.vehType = vehType; + } + + public String getVehTypeName() { + return vehTypeName; + } + + public void setVehTypeName(String vehTypeName) { + this.vehTypeName = vehTypeName; + } + + public Integer getAxlesNum() { + return axlesNum; + } + + public void setAxlesNum(Integer axlesNum) { + this.axlesNum = axlesNum; + } + + public Integer getWheelsNum() { + return wheelsNum; + } + + public void setWheelsNum(Integer wheelsNum) { + this.wheelsNum = wheelsNum; + } + + public String getDrivlicMainFro() { + return drivlicMainFro; + } + + public void setDrivlicMainFro(String drivlicMainFro) { + this.drivlicMainFro = drivlicMainFro; + } + + public String getDrivlicSubFro() { + return drivlicSubFro; + } + + public void setDrivlicSubFro(String drivlicSubFro) { + this.drivlicSubFro = drivlicSubFro; + } + + public String getHeadStockPhoto() { + return headStockPhoto; + } + + public void setHeadStockPhoto(String headStockPhoto) { + this.headStockPhoto = headStockPhoto; + } + + 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 getCardNo() { + return cardNo; + } + + public void setCardNo(String cardNo) { + this.cardNo = cardNo; + } + + public String getObuNo() { + return obuNo; + } + + public void setObuNo(String obuNo) { + this.obuNo = obuNo; + } + + public Integer getPayStatus() { + return payStatus; + } + + public void setPayStatus(Integer payStatus) { + this.payStatus = payStatus; + } + + public Integer getSignStatus() { + return signStatus; + } + + public void setSignStatus(Integer signStatus) { + this.signStatus = signStatus; + } + + public Integer getVehStatus() { + return vehStatus; + } + + public void setVehStatus(Integer vehStatus) { + this.vehStatus = vehStatus; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + 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; + } + EtcCarMsg other = (EtcCarMsg) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getCustId() == null ? other.getCustId() == null : this.getCustId().equals(other.getCustId())) + && (this.getVehId() == null ? other.getVehId() == null : this.getVehId().equals(other.getVehId())) + && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId())) + && (this.getCardVarietyId() == null ? other.getCardVarietyId() == null : this.getCardVarietyId().equals(other.getCardVarietyId())) + && (this.getVehPlateNo() == null ? other.getVehPlateNo() == null : this.getVehPlateNo().equals(other.getVehPlateNo())) + && (this.getVehPlateColor() == null ? other.getVehPlateColor() == null : this.getVehPlateColor().equals(other.getVehPlateColor())) + && (this.getVehType() == null ? other.getVehType() == null : this.getVehType().equals(other.getVehType())) + && (this.getVehTypeName() == null ? other.getVehTypeName() == null : this.getVehTypeName().equals(other.getVehTypeName())) + && (this.getAxlesNum() == null ? other.getAxlesNum() == null : this.getAxlesNum().equals(other.getAxlesNum())) + && (this.getWheelsNum() == null ? other.getWheelsNum() == null : this.getWheelsNum().equals(other.getWheelsNum())) + && (this.getDrivlicMainFro() == null ? other.getDrivlicMainFro() == null : this.getDrivlicMainFro().equals(other.getDrivlicMainFro())) + && (this.getDrivlicSubFro() == null ? other.getDrivlicSubFro() == null : this.getDrivlicSubFro().equals(other.getDrivlicSubFro())) + && (this.getHeadStockPhoto() == null ? other.getHeadStockPhoto() == null : this.getHeadStockPhoto().equals(other.getHeadStockPhoto())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) + && (this.getCardNo() == null ? other.getCardNo() == null : this.getCardNo().equals(other.getCardNo())) + && (this.getObuNo() == null ? other.getObuNo() == null : this.getObuNo().equals(other.getObuNo())) + && (this.getPayStatus() == null ? other.getPayStatus() == null : this.getPayStatus().equals(other.getPayStatus())) + && (this.getSignStatus() == null ? other.getSignStatus() == null : this.getSignStatus().equals(other.getSignStatus())) + && (this.getVehStatus() == null ? other.getVehStatus() == null : this.getVehStatus().equals(other.getVehStatus())) + && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) + && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName())) + && (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 + ((getCustId() == null) ? 0 : getCustId().hashCode()); + result = prime * result + ((getVehId() == null) ? 0 : getVehId().hashCode()); + result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode()); + result = prime * result + ((getCardVarietyId() == null) ? 0 : getCardVarietyId().hashCode()); + result = prime * result + ((getVehPlateNo() == null) ? 0 : getVehPlateNo().hashCode()); + result = prime * result + ((getVehPlateColor() == null) ? 0 : getVehPlateColor().hashCode()); + result = prime * result + ((getVehType() == null) ? 0 : getVehType().hashCode()); + result = prime * result + ((getVehTypeName() == null) ? 0 : getVehTypeName().hashCode()); + result = prime * result + ((getAxlesNum() == null) ? 0 : getAxlesNum().hashCode()); + result = prime * result + ((getWheelsNum() == null) ? 0 : getWheelsNum().hashCode()); + result = prime * result + ((getDrivlicMainFro() == null) ? 0 : getDrivlicMainFro().hashCode()); + result = prime * result + ((getDrivlicSubFro() == null) ? 0 : getDrivlicSubFro().hashCode()); + result = prime * result + ((getHeadStockPhoto() == null) ? 0 : getHeadStockPhoto().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); + result = prime * result + ((getCardNo() == null) ? 0 : getCardNo().hashCode()); + result = prime * result + ((getObuNo() == null) ? 0 : getObuNo().hashCode()); + result = prime * result + ((getPayStatus() == null) ? 0 : getPayStatus().hashCode()); + result = prime * result + ((getSignStatus() == null) ? 0 : getSignStatus().hashCode()); + result = prime * result + ((getVehStatus() == null) ? 0 : getVehStatus().hashCode()); + result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); + result = prime * result + ((getUserName() == null) ? 0 : getUserName().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(", custId=").append(custId); + sb.append(", vehId=").append(vehId); + sb.append(", productId=").append(productId); + sb.append(", cardVarietyId=").append(cardVarietyId); + sb.append(", vehPlateNo=").append(vehPlateNo); + sb.append(", vehPlateColor=").append(vehPlateColor); + sb.append(", vehType=").append(vehType); + sb.append(", vehTypeName=").append(vehTypeName); + sb.append(", axlesNum=").append(axlesNum); + sb.append(", wheelsNum=").append(wheelsNum); + sb.append(", drivlicMainFro=").append(drivlicMainFro); + sb.append(", drivlicSubFro=").append(drivlicSubFro); + sb.append(", headStockPhoto=").append(headStockPhoto); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", cardNo=").append(cardNo); + sb.append(", obuNo=").append(obuNo); + sb.append(", payStatus=").append(payStatus); + sb.append(", signStatus=").append(signStatus); + sb.append(", vehStatus=").append(vehStatus); + sb.append(", userId=").append(userId); + sb.append(", userName=").append(userName); + 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/EtcCarMsgExample.java b/hai-service/src/main/java/com/hai/entity/EtcCarMsgExample.java new file mode 100644 index 00000000..18f7c082 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/EtcCarMsgExample.java @@ -0,0 +1,1923 @@ +package com.hai.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class EtcCarMsgExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public EtcCarMsgExample() { + 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 andCustIdIsNull() { + addCriterion("cust_id is null"); + return (Criteria) this; + } + + public Criteria andCustIdIsNotNull() { + addCriterion("cust_id is not null"); + return (Criteria) this; + } + + public Criteria andCustIdEqualTo(String value) { + addCriterion("cust_id =", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotEqualTo(String value) { + addCriterion("cust_id <>", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdGreaterThan(String value) { + addCriterion("cust_id >", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdGreaterThanOrEqualTo(String value) { + addCriterion("cust_id >=", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdLessThan(String value) { + addCriterion("cust_id <", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdLessThanOrEqualTo(String value) { + addCriterion("cust_id <=", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdLike(String value) { + addCriterion("cust_id like", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotLike(String value) { + addCriterion("cust_id not like", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdIn(List values) { + addCriterion("cust_id in", values, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotIn(List values) { + addCriterion("cust_id not in", values, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdBetween(String value1, String value2) { + addCriterion("cust_id between", value1, value2, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotBetween(String value1, String value2) { + addCriterion("cust_id not between", value1, value2, "custId"); + return (Criteria) this; + } + + public Criteria andVehIdIsNull() { + addCriterion("veh_id is null"); + return (Criteria) this; + } + + public Criteria andVehIdIsNotNull() { + addCriterion("veh_id is not null"); + return (Criteria) this; + } + + public Criteria andVehIdEqualTo(String value) { + addCriterion("veh_id =", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdNotEqualTo(String value) { + addCriterion("veh_id <>", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdGreaterThan(String value) { + addCriterion("veh_id >", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdGreaterThanOrEqualTo(String value) { + addCriterion("veh_id >=", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdLessThan(String value) { + addCriterion("veh_id <", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdLessThanOrEqualTo(String value) { + addCriterion("veh_id <=", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdLike(String value) { + addCriterion("veh_id like", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdNotLike(String value) { + addCriterion("veh_id not like", value, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdIn(List values) { + addCriterion("veh_id in", values, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdNotIn(List values) { + addCriterion("veh_id not in", values, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdBetween(String value1, String value2) { + addCriterion("veh_id between", value1, value2, "vehId"); + return (Criteria) this; + } + + public Criteria andVehIdNotBetween(String value1, String value2) { + addCriterion("veh_id not between", value1, value2, "vehId"); + return (Criteria) this; + } + + public Criteria andProductIdIsNull() { + addCriterion("product_id is null"); + return (Criteria) this; + } + + public Criteria andProductIdIsNotNull() { + addCriterion("product_id is not null"); + return (Criteria) this; + } + + public Criteria andProductIdEqualTo(Integer value) { + addCriterion("product_id =", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotEqualTo(Integer value) { + addCriterion("product_id <>", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdGreaterThan(Integer value) { + addCriterion("product_id >", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdGreaterThanOrEqualTo(Integer value) { + addCriterion("product_id >=", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdLessThan(Integer value) { + addCriterion("product_id <", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdLessThanOrEqualTo(Integer value) { + addCriterion("product_id <=", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdIn(List values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List values) { + addCriterion("product_id not in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdBetween(Integer value1, Integer value2) { + addCriterion("product_id between", value1, value2, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotBetween(Integer value1, Integer value2) { + addCriterion("product_id not between", value1, value2, "productId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdIsNull() { + addCriterion("card_variety_id is null"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdIsNotNull() { + addCriterion("card_variety_id is not null"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdEqualTo(Integer value) { + addCriterion("card_variety_id =", value, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdNotEqualTo(Integer value) { + addCriterion("card_variety_id <>", value, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdGreaterThan(Integer value) { + addCriterion("card_variety_id >", value, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("card_variety_id >=", value, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdLessThan(Integer value) { + addCriterion("card_variety_id <", value, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdLessThanOrEqualTo(Integer value) { + addCriterion("card_variety_id <=", value, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdIn(List values) { + addCriterion("card_variety_id in", values, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdNotIn(List values) { + addCriterion("card_variety_id not in", values, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdBetween(Integer value1, Integer value2) { + addCriterion("card_variety_id between", value1, value2, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andCardVarietyIdNotBetween(Integer value1, Integer value2) { + addCriterion("card_variety_id not between", value1, value2, "cardVarietyId"); + return (Criteria) this; + } + + public Criteria andVehPlateNoIsNull() { + addCriterion("veh_plate_no is null"); + return (Criteria) this; + } + + public Criteria andVehPlateNoIsNotNull() { + addCriterion("veh_plate_no is not null"); + return (Criteria) this; + } + + public Criteria andVehPlateNoEqualTo(String value) { + addCriterion("veh_plate_no =", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoNotEqualTo(String value) { + addCriterion("veh_plate_no <>", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoGreaterThan(String value) { + addCriterion("veh_plate_no >", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoGreaterThanOrEqualTo(String value) { + addCriterion("veh_plate_no >=", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoLessThan(String value) { + addCriterion("veh_plate_no <", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoLessThanOrEqualTo(String value) { + addCriterion("veh_plate_no <=", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoLike(String value) { + addCriterion("veh_plate_no like", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoNotLike(String value) { + addCriterion("veh_plate_no not like", value, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoIn(List values) { + addCriterion("veh_plate_no in", values, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoNotIn(List values) { + addCriterion("veh_plate_no not in", values, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoBetween(String value1, String value2) { + addCriterion("veh_plate_no between", value1, value2, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateNoNotBetween(String value1, String value2) { + addCriterion("veh_plate_no not between", value1, value2, "vehPlateNo"); + return (Criteria) this; + } + + public Criteria andVehPlateColorIsNull() { + addCriterion("veh_plate_color is null"); + return (Criteria) this; + } + + public Criteria andVehPlateColorIsNotNull() { + addCriterion("veh_plate_color is not null"); + return (Criteria) this; + } + + public Criteria andVehPlateColorEqualTo(Integer value) { + addCriterion("veh_plate_color =", value, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorNotEqualTo(Integer value) { + addCriterion("veh_plate_color <>", value, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorGreaterThan(Integer value) { + addCriterion("veh_plate_color >", value, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorGreaterThanOrEqualTo(Integer value) { + addCriterion("veh_plate_color >=", value, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorLessThan(Integer value) { + addCriterion("veh_plate_color <", value, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorLessThanOrEqualTo(Integer value) { + addCriterion("veh_plate_color <=", value, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorIn(List values) { + addCriterion("veh_plate_color in", values, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorNotIn(List values) { + addCriterion("veh_plate_color not in", values, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorBetween(Integer value1, Integer value2) { + addCriterion("veh_plate_color between", value1, value2, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehPlateColorNotBetween(Integer value1, Integer value2) { + addCriterion("veh_plate_color not between", value1, value2, "vehPlateColor"); + return (Criteria) this; + } + + public Criteria andVehTypeIsNull() { + addCriterion("veh_type is null"); + return (Criteria) this; + } + + public Criteria andVehTypeIsNotNull() { + addCriterion("veh_type is not null"); + return (Criteria) this; + } + + public Criteria andVehTypeEqualTo(String value) { + addCriterion("veh_type =", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeNotEqualTo(String value) { + addCriterion("veh_type <>", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeGreaterThan(String value) { + addCriterion("veh_type >", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeGreaterThanOrEqualTo(String value) { + addCriterion("veh_type >=", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeLessThan(String value) { + addCriterion("veh_type <", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeLessThanOrEqualTo(String value) { + addCriterion("veh_type <=", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeLike(String value) { + addCriterion("veh_type like", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeNotLike(String value) { + addCriterion("veh_type not like", value, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeIn(List values) { + addCriterion("veh_type in", values, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeNotIn(List values) { + addCriterion("veh_type not in", values, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeBetween(String value1, String value2) { + addCriterion("veh_type between", value1, value2, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeNotBetween(String value1, String value2) { + addCriterion("veh_type not between", value1, value2, "vehType"); + return (Criteria) this; + } + + public Criteria andVehTypeNameIsNull() { + addCriterion("veh_type_name is null"); + return (Criteria) this; + } + + public Criteria andVehTypeNameIsNotNull() { + addCriterion("veh_type_name is not null"); + return (Criteria) this; + } + + public Criteria andVehTypeNameEqualTo(String value) { + addCriterion("veh_type_name =", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameNotEqualTo(String value) { + addCriterion("veh_type_name <>", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameGreaterThan(String value) { + addCriterion("veh_type_name >", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameGreaterThanOrEqualTo(String value) { + addCriterion("veh_type_name >=", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameLessThan(String value) { + addCriterion("veh_type_name <", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameLessThanOrEqualTo(String value) { + addCriterion("veh_type_name <=", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameLike(String value) { + addCriterion("veh_type_name like", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameNotLike(String value) { + addCriterion("veh_type_name not like", value, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameIn(List values) { + addCriterion("veh_type_name in", values, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameNotIn(List values) { + addCriterion("veh_type_name not in", values, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameBetween(String value1, String value2) { + addCriterion("veh_type_name between", value1, value2, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andVehTypeNameNotBetween(String value1, String value2) { + addCriterion("veh_type_name not between", value1, value2, "vehTypeName"); + return (Criteria) this; + } + + public Criteria andAxlesNumIsNull() { + addCriterion("axles_num is null"); + return (Criteria) this; + } + + public Criteria andAxlesNumIsNotNull() { + addCriterion("axles_num is not null"); + return (Criteria) this; + } + + public Criteria andAxlesNumEqualTo(Integer value) { + addCriterion("axles_num =", value, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumNotEqualTo(Integer value) { + addCriterion("axles_num <>", value, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumGreaterThan(Integer value) { + addCriterion("axles_num >", value, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumGreaterThanOrEqualTo(Integer value) { + addCriterion("axles_num >=", value, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumLessThan(Integer value) { + addCriterion("axles_num <", value, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumLessThanOrEqualTo(Integer value) { + addCriterion("axles_num <=", value, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumIn(List values) { + addCriterion("axles_num in", values, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumNotIn(List values) { + addCriterion("axles_num not in", values, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumBetween(Integer value1, Integer value2) { + addCriterion("axles_num between", value1, value2, "axlesNum"); + return (Criteria) this; + } + + public Criteria andAxlesNumNotBetween(Integer value1, Integer value2) { + addCriterion("axles_num not between", value1, value2, "axlesNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumIsNull() { + addCriterion("wheels_num is null"); + return (Criteria) this; + } + + public Criteria andWheelsNumIsNotNull() { + addCriterion("wheels_num is not null"); + return (Criteria) this; + } + + public Criteria andWheelsNumEqualTo(Integer value) { + addCriterion("wheels_num =", value, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumNotEqualTo(Integer value) { + addCriterion("wheels_num <>", value, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumGreaterThan(Integer value) { + addCriterion("wheels_num >", value, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumGreaterThanOrEqualTo(Integer value) { + addCriterion("wheels_num >=", value, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumLessThan(Integer value) { + addCriterion("wheels_num <", value, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumLessThanOrEqualTo(Integer value) { + addCriterion("wheels_num <=", value, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumIn(List values) { + addCriterion("wheels_num in", values, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumNotIn(List values) { + addCriterion("wheels_num not in", values, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumBetween(Integer value1, Integer value2) { + addCriterion("wheels_num between", value1, value2, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andWheelsNumNotBetween(Integer value1, Integer value2) { + addCriterion("wheels_num not between", value1, value2, "wheelsNum"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroIsNull() { + addCriterion("drivLic_main_fro is null"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroIsNotNull() { + addCriterion("drivLic_main_fro is not null"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroEqualTo(String value) { + addCriterion("drivLic_main_fro =", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroNotEqualTo(String value) { + addCriterion("drivLic_main_fro <>", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroGreaterThan(String value) { + addCriterion("drivLic_main_fro >", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroGreaterThanOrEqualTo(String value) { + addCriterion("drivLic_main_fro >=", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroLessThan(String value) { + addCriterion("drivLic_main_fro <", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroLessThanOrEqualTo(String value) { + addCriterion("drivLic_main_fro <=", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroLike(String value) { + addCriterion("drivLic_main_fro like", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroNotLike(String value) { + addCriterion("drivLic_main_fro not like", value, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroIn(List values) { + addCriterion("drivLic_main_fro in", values, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroNotIn(List values) { + addCriterion("drivLic_main_fro not in", values, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroBetween(String value1, String value2) { + addCriterion("drivLic_main_fro between", value1, value2, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicMainFroNotBetween(String value1, String value2) { + addCriterion("drivLic_main_fro not between", value1, value2, "drivlicMainFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroIsNull() { + addCriterion("drivLic_sub_fro is null"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroIsNotNull() { + addCriterion("drivLic_sub_fro is not null"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroEqualTo(String value) { + addCriterion("drivLic_sub_fro =", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroNotEqualTo(String value) { + addCriterion("drivLic_sub_fro <>", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroGreaterThan(String value) { + addCriterion("drivLic_sub_fro >", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroGreaterThanOrEqualTo(String value) { + addCriterion("drivLic_sub_fro >=", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroLessThan(String value) { + addCriterion("drivLic_sub_fro <", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroLessThanOrEqualTo(String value) { + addCriterion("drivLic_sub_fro <=", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroLike(String value) { + addCriterion("drivLic_sub_fro like", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroNotLike(String value) { + addCriterion("drivLic_sub_fro not like", value, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroIn(List values) { + addCriterion("drivLic_sub_fro in", values, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroNotIn(List values) { + addCriterion("drivLic_sub_fro not in", values, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroBetween(String value1, String value2) { + addCriterion("drivLic_sub_fro between", value1, value2, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andDrivlicSubFroNotBetween(String value1, String value2) { + addCriterion("drivLic_sub_fro not between", value1, value2, "drivlicSubFro"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoIsNull() { + addCriterion("head_stock_photo is null"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoIsNotNull() { + addCriterion("head_stock_photo is not null"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoEqualTo(String value) { + addCriterion("head_stock_photo =", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoNotEqualTo(String value) { + addCriterion("head_stock_photo <>", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoGreaterThan(String value) { + addCriterion("head_stock_photo >", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoGreaterThanOrEqualTo(String value) { + addCriterion("head_stock_photo >=", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoLessThan(String value) { + addCriterion("head_stock_photo <", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoLessThanOrEqualTo(String value) { + addCriterion("head_stock_photo <=", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoLike(String value) { + addCriterion("head_stock_photo like", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoNotLike(String value) { + addCriterion("head_stock_photo not like", value, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoIn(List values) { + addCriterion("head_stock_photo in", values, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoNotIn(List values) { + addCriterion("head_stock_photo not in", values, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoBetween(String value1, String value2) { + addCriterion("head_stock_photo between", value1, value2, "headStockPhoto"); + return (Criteria) this; + } + + public Criteria andHeadStockPhotoNotBetween(String value1, String value2) { + addCriterion("head_stock_photo not between", value1, value2, "headStockPhoto"); + 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 andCardNoIsNull() { + addCriterion("card_no is null"); + return (Criteria) this; + } + + public Criteria andCardNoIsNotNull() { + addCriterion("card_no is not null"); + return (Criteria) this; + } + + public Criteria andCardNoEqualTo(String value) { + addCriterion("card_no =", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoNotEqualTo(String value) { + addCriterion("card_no <>", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoGreaterThan(String value) { + addCriterion("card_no >", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoGreaterThanOrEqualTo(String value) { + addCriterion("card_no >=", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoLessThan(String value) { + addCriterion("card_no <", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoLessThanOrEqualTo(String value) { + addCriterion("card_no <=", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoLike(String value) { + addCriterion("card_no like", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoNotLike(String value) { + addCriterion("card_no not like", value, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoIn(List values) { + addCriterion("card_no in", values, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoNotIn(List values) { + addCriterion("card_no not in", values, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoBetween(String value1, String value2) { + addCriterion("card_no between", value1, value2, "cardNo"); + return (Criteria) this; + } + + public Criteria andCardNoNotBetween(String value1, String value2) { + addCriterion("card_no not between", value1, value2, "cardNo"); + return (Criteria) this; + } + + public Criteria andObuNoIsNull() { + addCriterion("obu_no is null"); + return (Criteria) this; + } + + public Criteria andObuNoIsNotNull() { + addCriterion("obu_no is not null"); + return (Criteria) this; + } + + public Criteria andObuNoEqualTo(String value) { + addCriterion("obu_no =", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoNotEqualTo(String value) { + addCriterion("obu_no <>", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoGreaterThan(String value) { + addCriterion("obu_no >", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoGreaterThanOrEqualTo(String value) { + addCriterion("obu_no >=", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoLessThan(String value) { + addCriterion("obu_no <", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoLessThanOrEqualTo(String value) { + addCriterion("obu_no <=", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoLike(String value) { + addCriterion("obu_no like", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoNotLike(String value) { + addCriterion("obu_no not like", value, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoIn(List values) { + addCriterion("obu_no in", values, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoNotIn(List values) { + addCriterion("obu_no not in", values, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoBetween(String value1, String value2) { + addCriterion("obu_no between", value1, value2, "obuNo"); + return (Criteria) this; + } + + public Criteria andObuNoNotBetween(String value1, String value2) { + addCriterion("obu_no not between", value1, value2, "obuNo"); + return (Criteria) this; + } + + public Criteria andPayStatusIsNull() { + addCriterion("pay_status is null"); + return (Criteria) this; + } + + public Criteria andPayStatusIsNotNull() { + addCriterion("pay_status is not null"); + return (Criteria) this; + } + + public Criteria andPayStatusEqualTo(Integer value) { + addCriterion("pay_status =", value, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusNotEqualTo(Integer value) { + addCriterion("pay_status <>", value, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusGreaterThan(Integer value) { + addCriterion("pay_status >", value, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("pay_status >=", value, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusLessThan(Integer value) { + addCriterion("pay_status <", value, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusLessThanOrEqualTo(Integer value) { + addCriterion("pay_status <=", value, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusIn(List values) { + addCriterion("pay_status in", values, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusNotIn(List values) { + addCriterion("pay_status not in", values, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusBetween(Integer value1, Integer value2) { + addCriterion("pay_status between", value1, value2, "payStatus"); + return (Criteria) this; + } + + public Criteria andPayStatusNotBetween(Integer value1, Integer value2) { + addCriterion("pay_status not between", value1, value2, "payStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusIsNull() { + addCriterion("sign_status is null"); + return (Criteria) this; + } + + public Criteria andSignStatusIsNotNull() { + addCriterion("sign_status is not null"); + return (Criteria) this; + } + + public Criteria andSignStatusEqualTo(Integer value) { + addCriterion("sign_status =", value, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusNotEqualTo(Integer value) { + addCriterion("sign_status <>", value, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusGreaterThan(Integer value) { + addCriterion("sign_status >", value, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("sign_status >=", value, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusLessThan(Integer value) { + addCriterion("sign_status <", value, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusLessThanOrEqualTo(Integer value) { + addCriterion("sign_status <=", value, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusIn(List values) { + addCriterion("sign_status in", values, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusNotIn(List values) { + addCriterion("sign_status not in", values, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusBetween(Integer value1, Integer value2) { + addCriterion("sign_status between", value1, value2, "signStatus"); + return (Criteria) this; + } + + public Criteria andSignStatusNotBetween(Integer value1, Integer value2) { + addCriterion("sign_status not between", value1, value2, "signStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusIsNull() { + addCriterion("veh_status is null"); + return (Criteria) this; + } + + public Criteria andVehStatusIsNotNull() { + addCriterion("veh_status is not null"); + return (Criteria) this; + } + + public Criteria andVehStatusEqualTo(Integer value) { + addCriterion("veh_status =", value, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusNotEqualTo(Integer value) { + addCriterion("veh_status <>", value, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusGreaterThan(Integer value) { + addCriterion("veh_status >", value, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("veh_status >=", value, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusLessThan(Integer value) { + addCriterion("veh_status <", value, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusLessThanOrEqualTo(Integer value) { + addCriterion("veh_status <=", value, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusIn(List values) { + addCriterion("veh_status in", values, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusNotIn(List values) { + addCriterion("veh_status not in", values, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusBetween(Integer value1, Integer value2) { + addCriterion("veh_status between", value1, value2, "vehStatus"); + return (Criteria) this; + } + + public Criteria andVehStatusNotBetween(Integer value1, Integer value2) { + addCriterion("veh_status not between", value1, value2, "vehStatus"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserNameIsNull() { + addCriterion("user_name is null"); + return (Criteria) this; + } + + public Criteria andUserNameIsNotNull() { + addCriterion("user_name is not null"); + return (Criteria) this; + } + + public Criteria andUserNameEqualTo(String value) { + addCriterion("user_name =", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotEqualTo(String value) { + addCriterion("user_name <>", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThan(String value) { + addCriterion("user_name >", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThanOrEqualTo(String value) { + addCriterion("user_name >=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThan(String value) { + addCriterion("user_name <", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThanOrEqualTo(String value) { + addCriterion("user_name <=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLike(String value) { + addCriterion("user_name like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotLike(String value) { + addCriterion("user_name not like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameIn(List values) { + addCriterion("user_name in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotIn(List values) { + addCriterion("user_name not in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameBetween(String value1, String value2) { + addCriterion("user_name between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotBetween(String value1, String value2) { + addCriterion("user_name not between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/EtcCustMsg.java b/hai-service/src/main/java/com/hai/entity/EtcCustMsg.java new file mode 100644 index 00000000..10f72fc2 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/EtcCustMsg.java @@ -0,0 +1,369 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.util.Date; + +/** + * etc_cust_msg + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class EtcCustMsg implements Serializable { + /** + * 主键 + */ + private Long id; + + /** + * 客户ID + */ + private String custId; + + /** + * 客户名称 + */ + private String custName; + + /** + * 用户手机号 + */ + private String phone; + + /** + * 身份证号 + */ + private String custIdNo; + + /** + * 身份证正面 + */ + private String custAgentIdFront; + + /** + * 身份证反面 + */ + private String custAgentIdBront; + + /** + * 银行卡账号 + */ + private String accountNo; + + /** + * 开户行 + */ + private String bankName; + + /** + * 联系地址 + */ + private String address; + + /** + * 银行预留手机号 + */ + private String bankPhone; + + /** + * 银行卡 + */ + private String bankCard; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 更新时间 + */ + private Date updateTime; + + /** + * 状态 0:未实名;1:实名中;2:已实名 + */ + private Integer status; + + /** + * 用户ID + */ + private Long userId; + + /** + * 用户名称 + */ + private String userName; + + /** + * 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 String getCustId() { + return custId; + } + + public void setCustId(String custId) { + this.custId = custId; + } + + public String getCustName() { + return custName; + } + + public void setCustName(String custName) { + this.custName = custName; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getCustIdNo() { + return custIdNo; + } + + public void setCustIdNo(String custIdNo) { + this.custIdNo = custIdNo; + } + + public String getCustAgentIdFront() { + return custAgentIdFront; + } + + public void setCustAgentIdFront(String custAgentIdFront) { + this.custAgentIdFront = custAgentIdFront; + } + + public String getCustAgentIdBront() { + return custAgentIdBront; + } + + public void setCustAgentIdBront(String custAgentIdBront) { + this.custAgentIdBront = custAgentIdBront; + } + + public String getAccountNo() { + return accountNo; + } + + public void setAccountNo(String accountNo) { + this.accountNo = accountNo; + } + + public String getBankName() { + return bankName; + } + + public void setBankName(String bankName) { + this.bankName = bankName; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getBankPhone() { + return bankPhone; + } + + public void setBankPhone(String bankPhone) { + this.bankPhone = bankPhone; + } + + public String getBankCard() { + return bankCard; + } + + public void setBankCard(String bankCard) { + this.bankCard = bankCard; + } + + 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 Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + 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; + } + EtcCustMsg other = (EtcCustMsg) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getCustId() == null ? other.getCustId() == null : this.getCustId().equals(other.getCustId())) + && (this.getCustName() == null ? other.getCustName() == null : this.getCustName().equals(other.getCustName())) + && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) + && (this.getCustIdNo() == null ? other.getCustIdNo() == null : this.getCustIdNo().equals(other.getCustIdNo())) + && (this.getCustAgentIdFront() == null ? other.getCustAgentIdFront() == null : this.getCustAgentIdFront().equals(other.getCustAgentIdFront())) + && (this.getCustAgentIdBront() == null ? other.getCustAgentIdBront() == null : this.getCustAgentIdBront().equals(other.getCustAgentIdBront())) + && (this.getAccountNo() == null ? other.getAccountNo() == null : this.getAccountNo().equals(other.getAccountNo())) + && (this.getBankName() == null ? other.getBankName() == null : this.getBankName().equals(other.getBankName())) + && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress())) + && (this.getBankPhone() == null ? other.getBankPhone() == null : this.getBankPhone().equals(other.getBankPhone())) + && (this.getBankCard() == null ? other.getBankCard() == null : this.getBankCard().equals(other.getBankCard())) + && (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.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) + && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName())) + && (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 + ((getCustId() == null) ? 0 : getCustId().hashCode()); + result = prime * result + ((getCustName() == null) ? 0 : getCustName().hashCode()); + result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); + result = prime * result + ((getCustIdNo() == null) ? 0 : getCustIdNo().hashCode()); + result = prime * result + ((getCustAgentIdFront() == null) ? 0 : getCustAgentIdFront().hashCode()); + result = prime * result + ((getCustAgentIdBront() == null) ? 0 : getCustAgentIdBront().hashCode()); + result = prime * result + ((getAccountNo() == null) ? 0 : getAccountNo().hashCode()); + result = prime * result + ((getBankName() == null) ? 0 : getBankName().hashCode()); + result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode()); + result = prime * result + ((getBankPhone() == null) ? 0 : getBankPhone().hashCode()); + result = prime * result + ((getBankCard() == null) ? 0 : getBankCard().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 + ((getUserId() == null) ? 0 : getUserId().hashCode()); + result = prime * result + ((getUserName() == null) ? 0 : getUserName().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(", custId=").append(custId); + sb.append(", custName=").append(custName); + sb.append(", phone=").append(phone); + sb.append(", custIdNo=").append(custIdNo); + sb.append(", custAgentIdFront=").append(custAgentIdFront); + sb.append(", custAgentIdBront=").append(custAgentIdBront); + sb.append(", accountNo=").append(accountNo); + sb.append(", bankName=").append(bankName); + sb.append(", address=").append(address); + sb.append(", bankPhone=").append(bankPhone); + sb.append(", bankCard=").append(bankCard); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", status=").append(status); + sb.append(", userId=").append(userId); + sb.append(", userName=").append(userName); + 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/EtcCustMsgExample.java b/hai-service/src/main/java/com/hai/entity/EtcCustMsgExample.java new file mode 100644 index 00000000..414dc2bb --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/EtcCustMsgExample.java @@ -0,0 +1,1573 @@ +package com.hai.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class EtcCustMsgExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public EtcCustMsgExample() { + 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 andCustIdIsNull() { + addCriterion("cust_id is null"); + return (Criteria) this; + } + + public Criteria andCustIdIsNotNull() { + addCriterion("cust_id is not null"); + return (Criteria) this; + } + + public Criteria andCustIdEqualTo(String value) { + addCriterion("cust_id =", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotEqualTo(String value) { + addCriterion("cust_id <>", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdGreaterThan(String value) { + addCriterion("cust_id >", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdGreaterThanOrEqualTo(String value) { + addCriterion("cust_id >=", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdLessThan(String value) { + addCriterion("cust_id <", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdLessThanOrEqualTo(String value) { + addCriterion("cust_id <=", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdLike(String value) { + addCriterion("cust_id like", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotLike(String value) { + addCriterion("cust_id not like", value, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdIn(List values) { + addCriterion("cust_id in", values, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotIn(List values) { + addCriterion("cust_id not in", values, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdBetween(String value1, String value2) { + addCriterion("cust_id between", value1, value2, "custId"); + return (Criteria) this; + } + + public Criteria andCustIdNotBetween(String value1, String value2) { + addCriterion("cust_id not between", value1, value2, "custId"); + return (Criteria) this; + } + + public Criteria andCustNameIsNull() { + addCriterion("cust_name is null"); + return (Criteria) this; + } + + public Criteria andCustNameIsNotNull() { + addCriterion("cust_name is not null"); + return (Criteria) this; + } + + public Criteria andCustNameEqualTo(String value) { + addCriterion("cust_name =", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameNotEqualTo(String value) { + addCriterion("cust_name <>", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameGreaterThan(String value) { + addCriterion("cust_name >", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameGreaterThanOrEqualTo(String value) { + addCriterion("cust_name >=", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameLessThan(String value) { + addCriterion("cust_name <", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameLessThanOrEqualTo(String value) { + addCriterion("cust_name <=", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameLike(String value) { + addCriterion("cust_name like", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameNotLike(String value) { + addCriterion("cust_name not like", value, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameIn(List values) { + addCriterion("cust_name in", values, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameNotIn(List values) { + addCriterion("cust_name not in", values, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameBetween(String value1, String value2) { + addCriterion("cust_name between", value1, value2, "custName"); + return (Criteria) this; + } + + public Criteria andCustNameNotBetween(String value1, String value2) { + addCriterion("cust_name not between", value1, value2, "custName"); + return (Criteria) this; + } + + public Criteria andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andCustIdNoIsNull() { + addCriterion("cust_id_no is null"); + return (Criteria) this; + } + + public Criteria andCustIdNoIsNotNull() { + addCriterion("cust_id_no is not null"); + return (Criteria) this; + } + + public Criteria andCustIdNoEqualTo(String value) { + addCriterion("cust_id_no =", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoNotEqualTo(String value) { + addCriterion("cust_id_no <>", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoGreaterThan(String value) { + addCriterion("cust_id_no >", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoGreaterThanOrEqualTo(String value) { + addCriterion("cust_id_no >=", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoLessThan(String value) { + addCriterion("cust_id_no <", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoLessThanOrEqualTo(String value) { + addCriterion("cust_id_no <=", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoLike(String value) { + addCriterion("cust_id_no like", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoNotLike(String value) { + addCriterion("cust_id_no not like", value, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoIn(List values) { + addCriterion("cust_id_no in", values, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoNotIn(List values) { + addCriterion("cust_id_no not in", values, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoBetween(String value1, String value2) { + addCriterion("cust_id_no between", value1, value2, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustIdNoNotBetween(String value1, String value2) { + addCriterion("cust_id_no not between", value1, value2, "custIdNo"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontIsNull() { + addCriterion("cust_agent_id_front is null"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontIsNotNull() { + addCriterion("cust_agent_id_front is not null"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontEqualTo(String value) { + addCriterion("cust_agent_id_front =", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontNotEqualTo(String value) { + addCriterion("cust_agent_id_front <>", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontGreaterThan(String value) { + addCriterion("cust_agent_id_front >", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontGreaterThanOrEqualTo(String value) { + addCriterion("cust_agent_id_front >=", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontLessThan(String value) { + addCriterion("cust_agent_id_front <", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontLessThanOrEqualTo(String value) { + addCriterion("cust_agent_id_front <=", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontLike(String value) { + addCriterion("cust_agent_id_front like", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontNotLike(String value) { + addCriterion("cust_agent_id_front not like", value, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontIn(List values) { + addCriterion("cust_agent_id_front in", values, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontNotIn(List values) { + addCriterion("cust_agent_id_front not in", values, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontBetween(String value1, String value2) { + addCriterion("cust_agent_id_front between", value1, value2, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdFrontNotBetween(String value1, String value2) { + addCriterion("cust_agent_id_front not between", value1, value2, "custAgentIdFront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontIsNull() { + addCriterion("cust_agent_id_bront is null"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontIsNotNull() { + addCriterion("cust_agent_id_bront is not null"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontEqualTo(String value) { + addCriterion("cust_agent_id_bront =", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontNotEqualTo(String value) { + addCriterion("cust_agent_id_bront <>", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontGreaterThan(String value) { + addCriterion("cust_agent_id_bront >", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontGreaterThanOrEqualTo(String value) { + addCriterion("cust_agent_id_bront >=", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontLessThan(String value) { + addCriterion("cust_agent_id_bront <", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontLessThanOrEqualTo(String value) { + addCriterion("cust_agent_id_bront <=", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontLike(String value) { + addCriterion("cust_agent_id_bront like", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontNotLike(String value) { + addCriterion("cust_agent_id_bront not like", value, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontIn(List values) { + addCriterion("cust_agent_id_bront in", values, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontNotIn(List values) { + addCriterion("cust_agent_id_bront not in", values, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontBetween(String value1, String value2) { + addCriterion("cust_agent_id_bront between", value1, value2, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andCustAgentIdBrontNotBetween(String value1, String value2) { + addCriterion("cust_agent_id_bront not between", value1, value2, "custAgentIdBront"); + return (Criteria) this; + } + + public Criteria andAccountNoIsNull() { + addCriterion("account_no is null"); + return (Criteria) this; + } + + public Criteria andAccountNoIsNotNull() { + addCriterion("account_no is not null"); + return (Criteria) this; + } + + public Criteria andAccountNoEqualTo(String value) { + addCriterion("account_no =", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoNotEqualTo(String value) { + addCriterion("account_no <>", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoGreaterThan(String value) { + addCriterion("account_no >", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoGreaterThanOrEqualTo(String value) { + addCriterion("account_no >=", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoLessThan(String value) { + addCriterion("account_no <", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoLessThanOrEqualTo(String value) { + addCriterion("account_no <=", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoLike(String value) { + addCriterion("account_no like", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoNotLike(String value) { + addCriterion("account_no not like", value, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoIn(List values) { + addCriterion("account_no in", values, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoNotIn(List values) { + addCriterion("account_no not in", values, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoBetween(String value1, String value2) { + addCriterion("account_no between", value1, value2, "accountNo"); + return (Criteria) this; + } + + public Criteria andAccountNoNotBetween(String value1, String value2) { + addCriterion("account_no not between", value1, value2, "accountNo"); + return (Criteria) this; + } + + public Criteria andBankNameIsNull() { + addCriterion("bank_name is null"); + return (Criteria) this; + } + + public Criteria andBankNameIsNotNull() { + addCriterion("bank_name is not null"); + return (Criteria) this; + } + + public Criteria andBankNameEqualTo(String value) { + addCriterion("bank_name =", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameNotEqualTo(String value) { + addCriterion("bank_name <>", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameGreaterThan(String value) { + addCriterion("bank_name >", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameGreaterThanOrEqualTo(String value) { + addCriterion("bank_name >=", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameLessThan(String value) { + addCriterion("bank_name <", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameLessThanOrEqualTo(String value) { + addCriterion("bank_name <=", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameLike(String value) { + addCriterion("bank_name like", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameNotLike(String value) { + addCriterion("bank_name not like", value, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameIn(List values) { + addCriterion("bank_name in", values, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameNotIn(List values) { + addCriterion("bank_name not in", values, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameBetween(String value1, String value2) { + addCriterion("bank_name between", value1, value2, "bankName"); + return (Criteria) this; + } + + public Criteria andBankNameNotBetween(String value1, String value2) { + addCriterion("bank_name not between", value1, value2, "bankName"); + return (Criteria) this; + } + + public Criteria andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andBankPhoneIsNull() { + addCriterion("bank_phone is null"); + return (Criteria) this; + } + + public Criteria andBankPhoneIsNotNull() { + addCriterion("bank_phone is not null"); + return (Criteria) this; + } + + public Criteria andBankPhoneEqualTo(String value) { + addCriterion("bank_phone =", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneNotEqualTo(String value) { + addCriterion("bank_phone <>", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneGreaterThan(String value) { + addCriterion("bank_phone >", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneGreaterThanOrEqualTo(String value) { + addCriterion("bank_phone >=", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneLessThan(String value) { + addCriterion("bank_phone <", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneLessThanOrEqualTo(String value) { + addCriterion("bank_phone <=", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneLike(String value) { + addCriterion("bank_phone like", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneNotLike(String value) { + addCriterion("bank_phone not like", value, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneIn(List values) { + addCriterion("bank_phone in", values, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneNotIn(List values) { + addCriterion("bank_phone not in", values, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneBetween(String value1, String value2) { + addCriterion("bank_phone between", value1, value2, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankPhoneNotBetween(String value1, String value2) { + addCriterion("bank_phone not between", value1, value2, "bankPhone"); + return (Criteria) this; + } + + public Criteria andBankCardIsNull() { + addCriterion("bank_card is null"); + return (Criteria) this; + } + + public Criteria andBankCardIsNotNull() { + addCriterion("bank_card is not null"); + return (Criteria) this; + } + + public Criteria andBankCardEqualTo(String value) { + addCriterion("bank_card =", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardNotEqualTo(String value) { + addCriterion("bank_card <>", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardGreaterThan(String value) { + addCriterion("bank_card >", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardGreaterThanOrEqualTo(String value) { + addCriterion("bank_card >=", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardLessThan(String value) { + addCriterion("bank_card <", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardLessThanOrEqualTo(String value) { + addCriterion("bank_card <=", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardLike(String value) { + addCriterion("bank_card like", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardNotLike(String value) { + addCriterion("bank_card not like", value, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardIn(List values) { + addCriterion("bank_card in", values, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardNotIn(List values) { + addCriterion("bank_card not in", values, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardBetween(String value1, String value2) { + addCriterion("bank_card between", value1, value2, "bankCard"); + return (Criteria) this; + } + + public Criteria andBankCardNotBetween(String value1, String value2) { + addCriterion("bank_card not between", value1, value2, "bankCard"); + 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 andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserNameIsNull() { + addCriterion("user_name is null"); + return (Criteria) this; + } + + public Criteria andUserNameIsNotNull() { + addCriterion("user_name is not null"); + return (Criteria) this; + } + + public Criteria andUserNameEqualTo(String value) { + addCriterion("user_name =", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotEqualTo(String value) { + addCriterion("user_name <>", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThan(String value) { + addCriterion("user_name >", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThanOrEqualTo(String value) { + addCriterion("user_name >=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThan(String value) { + addCriterion("user_name <", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThanOrEqualTo(String value) { + addCriterion("user_name <=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLike(String value) { + addCriterion("user_name like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotLike(String value) { + addCriterion("user_name not like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameIn(List values) { + addCriterion("user_name in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotIn(List values) { + addCriterion("user_name not in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameBetween(String value1, String value2) { + addCriterion("user_name between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotBetween(String value1, String value2) { + addCriterion("user_name not between", value1, value2, "userName"); + 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