Merge branch 'new-dev' into 2.0-dev

# Conflicts:
#	hai-service/src/main/java/com/hai/openApi/service/impl/ApiOrderCreateHandleServiceImpl.java
#	hai-service/src/main/java/com/hai/openApi/service/impl/ApiOrderServiceImpl.java
master
袁野 8 months ago
parent 54e0b04eb6
commit 935f495a1c
  1. 183
      hai-service/src/main/java/com/hai/dao/EtcCarMsgMapper.java
  2. 7
      hai-service/src/main/java/com/hai/dao/EtcCarMsgMapperExt.java
  3. 528
      hai-service/src/main/java/com/hai/dao/EtcCarMsgSqlProvider.java
  4. 158
      hai-service/src/main/java/com/hai/dao/EtcCustMsgMapper.java
  5. 7
      hai-service/src/main/java/com/hai/dao/EtcCustMsgMapperExt.java
  6. 444
      hai-service/src/main/java/com/hai/dao/EtcCustMsgSqlProvider.java
  7. 465
      hai-service/src/main/java/com/hai/entity/EtcCarMsg.java
  8. 1923
      hai-service/src/main/java/com/hai/entity/EtcCarMsgExample.java
  9. 369
      hai-service/src/main/java/com/hai/entity/EtcCustMsg.java
  10. 1573
      hai-service/src/main/java/com/hai/entity/EtcCustMsgExample.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<EtcCarMsg> 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);
}

@ -0,0 +1,7 @@
package com.hai.dao;
/**
* mapper扩展类
*/
public interface EtcCarMsgMapperExt {
}

@ -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<String, Object> 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<String, Object> 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<Criteria> 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<Criterion> 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());
}
}
}

@ -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<EtcCustMsg> 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);
}

@ -0,0 +1,7 @@
package com.hai.dao;
/**
* mapper扩展类
*/
public interface EtcCustMsgMapperExt {
}

@ -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<String, Object> 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<String, Object> 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<Criteria> 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<Criterion> 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());
}
}
}

@ -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();
}
}

@ -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();
}
}
Loading…
Cancel
Save