提交代码

new-dev
胡锐 1 year ago
parent 8c2828dec2
commit c4acab63b9
  1. 99
      hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapper.java
  2. 256
      hai-service/src/main/java/com/hai/dao/TbRechargePayOrderSqlProvider.java
  3. 212
      hai-service/src/main/java/com/hai/entity/TbRechargePayOrder.java
  4. 1394
      hai-service/src/main/java/com/hai/entity/TbRechargePayOrderExample.java

@ -2,12 +2,10 @@ package com.hai.dao;
import com.hai.entity.TbRechargePayOrder;
import com.hai.entity.TbRechargePayOrderExample;
import com.hai.entity.TbRechargePayOrderWithBLOBs;
import java.util.List;
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;
@ -31,80 +29,63 @@ public interface TbRechargePayOrderMapper extends TbRechargePayOrderMapperExt {
int deleteByExample(TbRechargePayOrderExample example);
@Insert({
"insert into tb_recharge_pay_order (validStartDate, validEndDate, ",
"createtime, modifytime, ",
"insert into tb_recharge_pay_order (rechargeId, phone, ",
"couNo, `status`, distributorId, ",
"validStartDate, validEndDate, ",
"distCouCount, couTypeCode, ",
"createtime, `createuser`, ",
"modifytime, modifyuser, ",
"preBalance, postBalance, ",
"rechargeId, phone, ",
"couNo, `status`, ",
"distributorId, distCouCount, ",
"couTypeCode, `createuser`, ",
"modifyuser, billVersion, ",
"reconVersion, promoterId, ",
"access_type, staticCheckCode, ",
"use_shop, use_time)",
"values (#{validstartdate,jdbcType=TIMESTAMP}, #{validenddate,jdbcType=TIMESTAMP}, ",
"#{createtime,jdbcType=TIMESTAMP}, #{modifytime,jdbcType=TIMESTAMP}, ",
"billVersion, reconVersion, ",
"promoterId, access_type, ",
"staticCheckCode, use_time, ",
"use_shop)",
"values (#{rechargeid,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, ",
"#{couno,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{distributorid,jdbcType=VARCHAR}, ",
"#{validstartdate,jdbcType=TIMESTAMP}, #{validenddate,jdbcType=TIMESTAMP}, ",
"#{distcoucount,jdbcType=VARCHAR}, #{coutypecode,jdbcType=VARCHAR}, ",
"#{createtime,jdbcType=TIMESTAMP}, #{createuser,jdbcType=VARCHAR}, ",
"#{modifytime,jdbcType=TIMESTAMP}, #{modifyuser,jdbcType=VARCHAR}, ",
"#{prebalance,jdbcType=DECIMAL}, #{postbalance,jdbcType=DECIMAL}, ",
"#{rechargeid,jdbcType=LONGVARCHAR}, #{phone,jdbcType=LONGVARCHAR}, ",
"#{couno,jdbcType=LONGVARCHAR}, #{status,jdbcType=LONGVARCHAR}, ",
"#{distributorid,jdbcType=LONGVARCHAR}, #{distcoucount,jdbcType=LONGVARCHAR}, ",
"#{coutypecode,jdbcType=LONGVARCHAR}, #{createuser,jdbcType=LONGVARCHAR}, ",
"#{modifyuser,jdbcType=LONGVARCHAR}, #{billversion,jdbcType=LONGVARCHAR}, ",
"#{reconversion,jdbcType=LONGVARCHAR}, #{promoterid,jdbcType=LONGVARCHAR}, ",
"#{accessType,jdbcType=LONGVARCHAR}, #{staticcheckcode,jdbcType=LONGVARCHAR}, ",
"#{useShop,jdbcType=LONGVARCHAR}, #{useTime,jdbcType=LONGVARCHAR})"
"#{billversion,jdbcType=VARCHAR}, #{reconversion,jdbcType=VARCHAR}, ",
"#{promoterid,jdbcType=VARCHAR}, #{accessType,jdbcType=VARCHAR}, ",
"#{staticcheckcode,jdbcType=VARCHAR}, #{useTime,jdbcType=TIMESTAMP}, ",
"#{useShop,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(TbRechargePayOrderWithBLOBs record);
int insert(TbRechargePayOrder record);
@InsertProvider(type=TbRechargePayOrderSqlProvider.class, method="insertSelective")
@Options(useGeneratedKeys=true,keyProperty="id")
int insertSelective(TbRechargePayOrderWithBLOBs record);
@SelectProvider(type=TbRechargePayOrderSqlProvider.class, method="selectByExampleWithBLOBs")
@Results({
@Result(column="validStartDate", property="validstartdate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="validEndDate", property="validenddate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="createtime", property="createtime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="modifytime", property="modifytime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="preBalance", property="prebalance", jdbcType=JdbcType.DECIMAL),
@Result(column="postBalance", property="postbalance", jdbcType=JdbcType.DECIMAL),
@Result(column="id", property="id", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="rechargeId", property="rechargeid", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="phone", property="phone", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="couNo", property="couno", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="distributorId", property="distributorid", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="distCouCount", property="distcoucount", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="couTypeCode", property="coutypecode", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="createuser", property="createuser", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="modifyuser", property="modifyuser", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="billVersion", property="billversion", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="reconVersion", property="reconversion", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="promoterId", property="promoterid", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="access_type", property="accessType", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="staticCheckCode", property="staticcheckcode", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="use_shop", property="useShop", jdbcType=JdbcType.LONGVARCHAR),
@Result(column="use_time", property="useTime", jdbcType=JdbcType.LONGVARCHAR)
})
List<TbRechargePayOrderWithBLOBs> selectByExampleWithBLOBs(TbRechargePayOrderExample example);
int insertSelective(TbRechargePayOrder record);
@SelectProvider(type=TbRechargePayOrderSqlProvider.class, method="selectByExample")
@Results({
@Result(column="rechargeId", property="rechargeid", jdbcType=JdbcType.VARCHAR),
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
@Result(column="couNo", property="couno", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
@Result(column="distributorId", property="distributorid", jdbcType=JdbcType.VARCHAR),
@Result(column="validStartDate", property="validstartdate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="validEndDate", property="validenddate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="distCouCount", property="distcoucount", jdbcType=JdbcType.VARCHAR),
@Result(column="couTypeCode", property="coutypecode", jdbcType=JdbcType.VARCHAR),
@Result(column="createtime", property="createtime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="createuser", property="createuser", jdbcType=JdbcType.VARCHAR),
@Result(column="modifytime", property="modifytime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="modifyuser", property="modifyuser", jdbcType=JdbcType.VARCHAR),
@Result(column="preBalance", property="prebalance", jdbcType=JdbcType.DECIMAL),
@Result(column="postBalance", property="postbalance", jdbcType=JdbcType.DECIMAL)
@Result(column="postBalance", property="postbalance", jdbcType=JdbcType.DECIMAL),
@Result(column="billVersion", property="billversion", jdbcType=JdbcType.VARCHAR),
@Result(column="reconVersion", property="reconversion", jdbcType=JdbcType.VARCHAR),
@Result(column="promoterId", property="promoterid", jdbcType=JdbcType.VARCHAR),
@Result(column="access_type", property="accessType", jdbcType=JdbcType.VARCHAR),
@Result(column="staticCheckCode", property="staticcheckcode", jdbcType=JdbcType.VARCHAR),
@Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="use_shop", property="useShop", jdbcType=JdbcType.VARCHAR)
})
List<TbRechargePayOrder> selectByExample(TbRechargePayOrderExample example);
@UpdateProvider(type=TbRechargePayOrderSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") TbRechargePayOrderWithBLOBs record, @Param("example") TbRechargePayOrderExample example);
@UpdateProvider(type=TbRechargePayOrderSqlProvider.class, method="updateByExampleWithBLOBs")
int updateByExampleWithBLOBs(@Param("record") TbRechargePayOrderWithBLOBs record, @Param("example") TbRechargePayOrderExample example);
int updateByExampleSelective(@Param("record") TbRechargePayOrder record, @Param("example") TbRechargePayOrderExample example);
@UpdateProvider(type=TbRechargePayOrderSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") TbRechargePayOrder record, @Param("example") TbRechargePayOrderExample example);

@ -1,9 +1,9 @@
package com.hai.dao;
import com.hai.entity.TbRechargePayOrder;
import com.hai.entity.TbRechargePayOrderExample.Criteria;
import com.hai.entity.TbRechargePayOrderExample.Criterion;
import com.hai.entity.TbRechargePayOrderExample;
import com.hai.entity.TbRechargePayOrderWithBLOBs;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.jdbc.SQL;
@ -24,152 +24,129 @@ public class TbRechargePayOrderSqlProvider {
return sql.toString();
}
public String insertSelective(TbRechargePayOrderWithBLOBs record) {
public String insertSelective(TbRechargePayOrder record) {
SQL sql = new SQL();
sql.INSERT_INTO("tb_recharge_pay_order");
if (record.getValidstartdate() != null) {
sql.VALUES("validStartDate", "#{validstartdate,jdbcType=TIMESTAMP}");
if (record.getRechargeid() != null) {
sql.VALUES("rechargeId", "#{rechargeid,jdbcType=VARCHAR}");
}
if (record.getValidenddate() != null) {
sql.VALUES("validEndDate", "#{validenddate,jdbcType=TIMESTAMP}");
if (record.getPhone() != null) {
sql.VALUES("phone", "#{phone,jdbcType=VARCHAR}");
}
if (record.getCreatetime() != null) {
sql.VALUES("createtime", "#{createtime,jdbcType=TIMESTAMP}");
if (record.getCouno() != null) {
sql.VALUES("couNo", "#{couno,jdbcType=VARCHAR}");
}
if (record.getModifytime() != null) {
sql.VALUES("modifytime", "#{modifytime,jdbcType=TIMESTAMP}");
if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=VARCHAR}");
}
if (record.getPrebalance() != null) {
sql.VALUES("preBalance", "#{prebalance,jdbcType=DECIMAL}");
if (record.getDistributorid() != null) {
sql.VALUES("distributorId", "#{distributorid,jdbcType=VARCHAR}");
}
if (record.getPostbalance() != null) {
sql.VALUES("postBalance", "#{postbalance,jdbcType=DECIMAL}");
if (record.getValidstartdate() != null) {
sql.VALUES("validStartDate", "#{validstartdate,jdbcType=TIMESTAMP}");
}
if (record.getRechargeid() != null) {
sql.VALUES("rechargeId", "#{rechargeid,jdbcType=LONGVARCHAR}");
if (record.getValidenddate() != null) {
sql.VALUES("validEndDate", "#{validenddate,jdbcType=TIMESTAMP}");
}
if (record.getPhone() != null) {
sql.VALUES("phone", "#{phone,jdbcType=LONGVARCHAR}");
if (record.getDistcoucount() != null) {
sql.VALUES("distCouCount", "#{distcoucount,jdbcType=VARCHAR}");
}
if (record.getCouno() != null) {
sql.VALUES("couNo", "#{couno,jdbcType=LONGVARCHAR}");
if (record.getCoutypecode() != null) {
sql.VALUES("couTypeCode", "#{coutypecode,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=LONGVARCHAR}");
if (record.getCreatetime() != null) {
sql.VALUES("createtime", "#{createtime,jdbcType=TIMESTAMP}");
}
if (record.getDistributorid() != null) {
sql.VALUES("distributorId", "#{distributorid,jdbcType=LONGVARCHAR}");
if (record.getCreateuser() != null) {
sql.VALUES("`createuser`", "#{createuser,jdbcType=VARCHAR}");
}
if (record.getDistcoucount() != null) {
sql.VALUES("distCouCount", "#{distcoucount,jdbcType=LONGVARCHAR}");
if (record.getModifytime() != null) {
sql.VALUES("modifytime", "#{modifytime,jdbcType=TIMESTAMP}");
}
if (record.getCoutypecode() != null) {
sql.VALUES("couTypeCode", "#{coutypecode,jdbcType=LONGVARCHAR}");
if (record.getModifyuser() != null) {
sql.VALUES("modifyuser", "#{modifyuser,jdbcType=VARCHAR}");
}
if (record.getCreateuser() != null) {
sql.VALUES("`createuser`", "#{createuser,jdbcType=LONGVARCHAR}");
if (record.getPrebalance() != null) {
sql.VALUES("preBalance", "#{prebalance,jdbcType=DECIMAL}");
}
if (record.getModifyuser() != null) {
sql.VALUES("modifyuser", "#{modifyuser,jdbcType=LONGVARCHAR}");
if (record.getPostbalance() != null) {
sql.VALUES("postBalance", "#{postbalance,jdbcType=DECIMAL}");
}
if (record.getBillversion() != null) {
sql.VALUES("billVersion", "#{billversion,jdbcType=LONGVARCHAR}");
sql.VALUES("billVersion", "#{billversion,jdbcType=VARCHAR}");
}
if (record.getReconversion() != null) {
sql.VALUES("reconVersion", "#{reconversion,jdbcType=LONGVARCHAR}");
sql.VALUES("reconVersion", "#{reconversion,jdbcType=VARCHAR}");
}
if (record.getPromoterid() != null) {
sql.VALUES("promoterId", "#{promoterid,jdbcType=LONGVARCHAR}");
sql.VALUES("promoterId", "#{promoterid,jdbcType=VARCHAR}");
}
if (record.getAccessType() != null) {
sql.VALUES("access_type", "#{accessType,jdbcType=LONGVARCHAR}");
sql.VALUES("access_type", "#{accessType,jdbcType=VARCHAR}");
}
if (record.getStaticcheckcode() != null) {
sql.VALUES("staticCheckCode", "#{staticcheckcode,jdbcType=LONGVARCHAR}");
sql.VALUES("staticCheckCode", "#{staticcheckcode,jdbcType=VARCHAR}");
}
if (record.getUseShop() != null) {
sql.VALUES("use_shop", "#{useShop,jdbcType=LONGVARCHAR}");
if (record.getUseTime() != null) {
sql.VALUES("use_time", "#{useTime,jdbcType=TIMESTAMP}");
}
if (record.getUseTime() != null) {
sql.VALUES("use_time", "#{useTime,jdbcType=LONGVARCHAR}");
if (record.getUseShop() != null) {
sql.VALUES("use_shop", "#{useShop,jdbcType=VARCHAR}");
}
return sql.toString();
}
public String selectByExampleWithBLOBs(TbRechargePayOrderExample example) {
public String selectByExample(TbRechargePayOrderExample example) {
SQL sql = new SQL();
if (example != null && example.isDistinct()) {
sql.SELECT_DISTINCT("validStartDate");
sql.SELECT_DISTINCT("rechargeId");
} else {
sql.SELECT("validStartDate");
}
sql.SELECT("validEndDate");
sql.SELECT("createtime");
sql.SELECT("modifytime");
sql.SELECT("preBalance");
sql.SELECT("postBalance");
sql.SELECT("id");
sql.SELECT("rechargeId");
}
sql.SELECT("phone");
sql.SELECT("couNo");
sql.SELECT("`status`");
sql.SELECT("distributorId");
sql.SELECT("validStartDate");
sql.SELECT("validEndDate");
sql.SELECT("distCouCount");
sql.SELECT("couTypeCode");
sql.SELECT("createtime");
sql.SELECT("`createuser`");
sql.SELECT("modifytime");
sql.SELECT("modifyuser");
sql.SELECT("preBalance");
sql.SELECT("postBalance");
sql.SELECT("billVersion");
sql.SELECT("reconVersion");
sql.SELECT("promoterId");
sql.SELECT("access_type");
sql.SELECT("staticCheckCode");
sql.SELECT("use_shop");
sql.SELECT("use_time");
sql.FROM("tb_recharge_pay_order");
applyWhere(sql, example, false);
if (example != null && example.getOrderByClause() != null) {
sql.ORDER_BY(example.getOrderByClause());
}
return sql.toString();
}
public String selectByExample(TbRechargePayOrderExample example) {
SQL sql = new SQL();
if (example != null && example.isDistinct()) {
sql.SELECT_DISTINCT("validStartDate");
} else {
sql.SELECT("validStartDate");
}
sql.SELECT("validEndDate");
sql.SELECT("createtime");
sql.SELECT("modifytime");
sql.SELECT("preBalance");
sql.SELECT("postBalance");
sql.SELECT("use_shop");
sql.FROM("tb_recharge_pay_order");
applyWhere(sql, example, false);
@ -181,137 +158,100 @@ public class TbRechargePayOrderSqlProvider {
}
public String updateByExampleSelective(Map<String, Object> parameter) {
TbRechargePayOrderWithBLOBs record = (TbRechargePayOrderWithBLOBs) parameter.get("record");
TbRechargePayOrder record = (TbRechargePayOrder) parameter.get("record");
TbRechargePayOrderExample example = (TbRechargePayOrderExample) parameter.get("example");
SQL sql = new SQL();
sql.UPDATE("tb_recharge_pay_order");
if (record.getValidstartdate() != null) {
sql.SET("validStartDate = #{record.validstartdate,jdbcType=TIMESTAMP}");
}
if (record.getValidenddate() != null) {
sql.SET("validEndDate = #{record.validenddate,jdbcType=TIMESTAMP}");
if (record.getRechargeid() != null) {
sql.SET("rechargeId = #{record.rechargeid,jdbcType=VARCHAR}");
}
if (record.getCreatetime() != null) {
sql.SET("createtime = #{record.createtime,jdbcType=TIMESTAMP}");
if (record.getPhone() != null) {
sql.SET("phone = #{record.phone,jdbcType=VARCHAR}");
}
if (record.getModifytime() != null) {
sql.SET("modifytime = #{record.modifytime,jdbcType=TIMESTAMP}");
if (record.getCouno() != null) {
sql.SET("couNo = #{record.couno,jdbcType=VARCHAR}");
}
if (record.getPrebalance() != null) {
sql.SET("preBalance = #{record.prebalance,jdbcType=DECIMAL}");
if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=VARCHAR}");
}
if (record.getPostbalance() != null) {
sql.SET("postBalance = #{record.postbalance,jdbcType=DECIMAL}");
if (record.getDistributorid() != null) {
sql.SET("distributorId = #{record.distributorid,jdbcType=VARCHAR}");
}
if (record.getId() != null) {
sql.SET("id = #{record.id,jdbcType=LONGVARCHAR}");
if (record.getValidstartdate() != null) {
sql.SET("validStartDate = #{record.validstartdate,jdbcType=TIMESTAMP}");
}
if (record.getRechargeid() != null) {
sql.SET("rechargeId = #{record.rechargeid,jdbcType=LONGVARCHAR}");
if (record.getValidenddate() != null) {
sql.SET("validEndDate = #{record.validenddate,jdbcType=TIMESTAMP}");
}
if (record.getPhone() != null) {
sql.SET("phone = #{record.phone,jdbcType=LONGVARCHAR}");
if (record.getDistcoucount() != null) {
sql.SET("distCouCount = #{record.distcoucount,jdbcType=VARCHAR}");
}
if (record.getCouno() != null) {
sql.SET("couNo = #{record.couno,jdbcType=LONGVARCHAR}");
if (record.getCoutypecode() != null) {
sql.SET("couTypeCode = #{record.coutypecode,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=LONGVARCHAR}");
if (record.getCreatetime() != null) {
sql.SET("createtime = #{record.createtime,jdbcType=TIMESTAMP}");
}
if (record.getDistributorid() != null) {
sql.SET("distributorId = #{record.distributorid,jdbcType=LONGVARCHAR}");
if (record.getCreateuser() != null) {
sql.SET("`createuser` = #{record.createuser,jdbcType=VARCHAR}");
}
if (record.getDistcoucount() != null) {
sql.SET("distCouCount = #{record.distcoucount,jdbcType=LONGVARCHAR}");
if (record.getModifytime() != null) {
sql.SET("modifytime = #{record.modifytime,jdbcType=TIMESTAMP}");
}
if (record.getCoutypecode() != null) {
sql.SET("couTypeCode = #{record.coutypecode,jdbcType=LONGVARCHAR}");
if (record.getModifyuser() != null) {
sql.SET("modifyuser = #{record.modifyuser,jdbcType=VARCHAR}");
}
if (record.getCreateuser() != null) {
sql.SET("`createuser` = #{record.createuser,jdbcType=LONGVARCHAR}");
if (record.getPrebalance() != null) {
sql.SET("preBalance = #{record.prebalance,jdbcType=DECIMAL}");
}
if (record.getModifyuser() != null) {
sql.SET("modifyuser = #{record.modifyuser,jdbcType=LONGVARCHAR}");
if (record.getPostbalance() != null) {
sql.SET("postBalance = #{record.postbalance,jdbcType=DECIMAL}");
}
if (record.getBillversion() != null) {
sql.SET("billVersion = #{record.billversion,jdbcType=LONGVARCHAR}");
sql.SET("billVersion = #{record.billversion,jdbcType=VARCHAR}");
}
if (record.getReconversion() != null) {
sql.SET("reconVersion = #{record.reconversion,jdbcType=LONGVARCHAR}");
sql.SET("reconVersion = #{record.reconversion,jdbcType=VARCHAR}");
}
if (record.getPromoterid() != null) {
sql.SET("promoterId = #{record.promoterid,jdbcType=LONGVARCHAR}");
sql.SET("promoterId = #{record.promoterid,jdbcType=VARCHAR}");
}
if (record.getAccessType() != null) {
sql.SET("access_type = #{record.accessType,jdbcType=LONGVARCHAR}");
sql.SET("access_type = #{record.accessType,jdbcType=VARCHAR}");
}
if (record.getStaticcheckcode() != null) {
sql.SET("staticCheckCode = #{record.staticcheckcode,jdbcType=LONGVARCHAR}");
}
if (record.getUseShop() != null) {
sql.SET("use_shop = #{record.useShop,jdbcType=LONGVARCHAR}");
sql.SET("staticCheckCode = #{record.staticcheckcode,jdbcType=VARCHAR}");
}
if (record.getUseTime() != null) {
sql.SET("use_time = #{record.useTime,jdbcType=LONGVARCHAR}");
sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}");
}
applyWhere(sql, example, true);
return sql.toString();
if (record.getUseShop() != null) {
sql.SET("use_shop = #{record.useShop,jdbcType=VARCHAR}");
}
public String updateByExampleWithBLOBs(Map<String, Object> parameter) {
SQL sql = new SQL();
sql.UPDATE("tb_recharge_pay_order");
sql.SET("validStartDate = #{record.validstartdate,jdbcType=TIMESTAMP}");
sql.SET("validEndDate = #{record.validenddate,jdbcType=TIMESTAMP}");
sql.SET("createtime = #{record.createtime,jdbcType=TIMESTAMP}");
sql.SET("modifytime = #{record.modifytime,jdbcType=TIMESTAMP}");
sql.SET("preBalance = #{record.prebalance,jdbcType=DECIMAL}");
sql.SET("postBalance = #{record.postbalance,jdbcType=DECIMAL}");
sql.SET("id = #{record.id,jdbcType=LONGVARCHAR}");
sql.SET("rechargeId = #{record.rechargeid,jdbcType=LONGVARCHAR}");
sql.SET("phone = #{record.phone,jdbcType=LONGVARCHAR}");
sql.SET("couNo = #{record.couno,jdbcType=LONGVARCHAR}");
sql.SET("`status` = #{record.status,jdbcType=LONGVARCHAR}");
sql.SET("distributorId = #{record.distributorid,jdbcType=LONGVARCHAR}");
sql.SET("distCouCount = #{record.distcoucount,jdbcType=LONGVARCHAR}");
sql.SET("couTypeCode = #{record.coutypecode,jdbcType=LONGVARCHAR}");
sql.SET("`createuser` = #{record.createuser,jdbcType=LONGVARCHAR}");
sql.SET("modifyuser = #{record.modifyuser,jdbcType=LONGVARCHAR}");
sql.SET("billVersion = #{record.billversion,jdbcType=LONGVARCHAR}");
sql.SET("reconVersion = #{record.reconversion,jdbcType=LONGVARCHAR}");
sql.SET("promoterId = #{record.promoterid,jdbcType=LONGVARCHAR}");
sql.SET("access_type = #{record.accessType,jdbcType=LONGVARCHAR}");
sql.SET("staticCheckCode = #{record.staticcheckcode,jdbcType=LONGVARCHAR}");
sql.SET("use_shop = #{record.useShop,jdbcType=LONGVARCHAR}");
sql.SET("use_time = #{record.useTime,jdbcType=LONGVARCHAR}");
TbRechargePayOrderExample example = (TbRechargePayOrderExample) parameter.get("example");
applyWhere(sql, example, true);
return sql.toString();
}
@ -320,12 +260,28 @@ public class TbRechargePayOrderSqlProvider {
SQL sql = new SQL();
sql.UPDATE("tb_recharge_pay_order");
sql.SET("rechargeId = #{record.rechargeid,jdbcType=VARCHAR}");
sql.SET("phone = #{record.phone,jdbcType=VARCHAR}");
sql.SET("couNo = #{record.couno,jdbcType=VARCHAR}");
sql.SET("`status` = #{record.status,jdbcType=VARCHAR}");
sql.SET("distributorId = #{record.distributorid,jdbcType=VARCHAR}");
sql.SET("validStartDate = #{record.validstartdate,jdbcType=TIMESTAMP}");
sql.SET("validEndDate = #{record.validenddate,jdbcType=TIMESTAMP}");
sql.SET("distCouCount = #{record.distcoucount,jdbcType=VARCHAR}");
sql.SET("couTypeCode = #{record.coutypecode,jdbcType=VARCHAR}");
sql.SET("createtime = #{record.createtime,jdbcType=TIMESTAMP}");
sql.SET("`createuser` = #{record.createuser,jdbcType=VARCHAR}");
sql.SET("modifytime = #{record.modifytime,jdbcType=TIMESTAMP}");
sql.SET("modifyuser = #{record.modifyuser,jdbcType=VARCHAR}");
sql.SET("preBalance = #{record.prebalance,jdbcType=DECIMAL}");
sql.SET("postBalance = #{record.postbalance,jdbcType=DECIMAL}");
sql.SET("billVersion = #{record.billversion,jdbcType=VARCHAR}");
sql.SET("reconVersion = #{record.reconversion,jdbcType=VARCHAR}");
sql.SET("promoterId = #{record.promoterid,jdbcType=VARCHAR}");
sql.SET("access_type = #{record.accessType,jdbcType=VARCHAR}");
sql.SET("staticCheckCode = #{record.staticcheckcode,jdbcType=VARCHAR}");
sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}");
sql.SET("use_shop = #{record.useShop,jdbcType=VARCHAR}");
TbRechargePayOrderExample example = (TbRechargePayOrderExample) parameter.get("example");
applyWhere(sql, example, true);

@ -14,20 +14,92 @@ import java.util.Date;
*
**/
public class TbRechargePayOrder implements Serializable {
private String rechargeid;
private String phone;
private String couno;
private String status;
private String distributorid;
private Date validstartdate;
private Date validenddate;
private String distcoucount;
private String coutypecode;
private Date createtime;
private String createuser;
private Date modifytime;
private String modifyuser;
private BigDecimal prebalance;
private BigDecimal postbalance;
private String billversion;
private String reconversion;
private String promoterid;
private String accessType;
private String staticcheckcode;
private Date useTime;
private String useShop;
private static final long serialVersionUID = 1L;
public String getRechargeid() {
return rechargeid;
}
public void setRechargeid(String rechargeid) {
this.rechargeid = rechargeid;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getCouno() {
return couno;
}
public void setCouno(String couno) {
this.couno = couno;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDistributorid() {
return distributorid;
}
public void setDistributorid(String distributorid) {
this.distributorid = distributorid;
}
public Date getValidstartdate() {
return validstartdate;
}
@ -44,6 +116,22 @@ public class TbRechargePayOrder implements Serializable {
this.validenddate = validenddate;
}
public String getDistcoucount() {
return distcoucount;
}
public void setDistcoucount(String distcoucount) {
this.distcoucount = distcoucount;
}
public String getCoutypecode() {
return coutypecode;
}
public void setCoutypecode(String coutypecode) {
this.coutypecode = coutypecode;
}
public Date getCreatetime() {
return createtime;
}
@ -52,6 +140,14 @@ public class TbRechargePayOrder implements Serializable {
this.createtime = createtime;
}
public String getCreateuser() {
return createuser;
}
public void setCreateuser(String createuser) {
this.createuser = createuser;
}
public Date getModifytime() {
return modifytime;
}
@ -60,6 +156,14 @@ public class TbRechargePayOrder implements Serializable {
this.modifytime = modifytime;
}
public String getModifyuser() {
return modifyuser;
}
public void setModifyuser(String modifyuser) {
this.modifyuser = modifyuser;
}
public BigDecimal getPrebalance() {
return prebalance;
}
@ -76,6 +180,62 @@ public class TbRechargePayOrder implements Serializable {
this.postbalance = postbalance;
}
public String getBillversion() {
return billversion;
}
public void setBillversion(String billversion) {
this.billversion = billversion;
}
public String getReconversion() {
return reconversion;
}
public void setReconversion(String reconversion) {
this.reconversion = reconversion;
}
public String getPromoterid() {
return promoterid;
}
public void setPromoterid(String promoterid) {
this.promoterid = promoterid;
}
public String getAccessType() {
return accessType;
}
public void setAccessType(String accessType) {
this.accessType = accessType;
}
public String getStaticcheckcode() {
return staticcheckcode;
}
public void setStaticcheckcode(String staticcheckcode) {
this.staticcheckcode = staticcheckcode;
}
public Date getUseTime() {
return useTime;
}
public void setUseTime(Date useTime) {
this.useTime = useTime;
}
public String getUseShop() {
return useShop;
}
public void setUseShop(String useShop) {
this.useShop = useShop;
}
@Override
public boolean equals(Object that) {
if (this == that) {
@ -88,24 +248,56 @@ public class TbRechargePayOrder implements Serializable {
return false;
}
TbRechargePayOrder other = (TbRechargePayOrder) that;
return (this.getValidstartdate() == null ? other.getValidstartdate() == null : this.getValidstartdate().equals(other.getValidstartdate()))
return (this.getRechargeid() == null ? other.getRechargeid() == null : this.getRechargeid().equals(other.getRechargeid()))
&& (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
&& (this.getCouno() == null ? other.getCouno() == null : this.getCouno().equals(other.getCouno()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getDistributorid() == null ? other.getDistributorid() == null : this.getDistributorid().equals(other.getDistributorid()))
&& (this.getValidstartdate() == null ? other.getValidstartdate() == null : this.getValidstartdate().equals(other.getValidstartdate()))
&& (this.getValidenddate() == null ? other.getValidenddate() == null : this.getValidenddate().equals(other.getValidenddate()))
&& (this.getDistcoucount() == null ? other.getDistcoucount() == null : this.getDistcoucount().equals(other.getDistcoucount()))
&& (this.getCoutypecode() == null ? other.getCoutypecode() == null : this.getCoutypecode().equals(other.getCoutypecode()))
&& (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
&& (this.getCreateuser() == null ? other.getCreateuser() == null : this.getCreateuser().equals(other.getCreateuser()))
&& (this.getModifytime() == null ? other.getModifytime() == null : this.getModifytime().equals(other.getModifytime()))
&& (this.getModifyuser() == null ? other.getModifyuser() == null : this.getModifyuser().equals(other.getModifyuser()))
&& (this.getPrebalance() == null ? other.getPrebalance() == null : this.getPrebalance().equals(other.getPrebalance()))
&& (this.getPostbalance() == null ? other.getPostbalance() == null : this.getPostbalance().equals(other.getPostbalance()));
&& (this.getPostbalance() == null ? other.getPostbalance() == null : this.getPostbalance().equals(other.getPostbalance()))
&& (this.getBillversion() == null ? other.getBillversion() == null : this.getBillversion().equals(other.getBillversion()))
&& (this.getReconversion() == null ? other.getReconversion() == null : this.getReconversion().equals(other.getReconversion()))
&& (this.getPromoterid() == null ? other.getPromoterid() == null : this.getPromoterid().equals(other.getPromoterid()))
&& (this.getAccessType() == null ? other.getAccessType() == null : this.getAccessType().equals(other.getAccessType()))
&& (this.getStaticcheckcode() == null ? other.getStaticcheckcode() == null : this.getStaticcheckcode().equals(other.getStaticcheckcode()))
&& (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime()))
&& (this.getUseShop() == null ? other.getUseShop() == null : this.getUseShop().equals(other.getUseShop()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getRechargeid() == null) ? 0 : getRechargeid().hashCode());
result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
result = prime * result + ((getCouno() == null) ? 0 : getCouno().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getDistributorid() == null) ? 0 : getDistributorid().hashCode());
result = prime * result + ((getValidstartdate() == null) ? 0 : getValidstartdate().hashCode());
result = prime * result + ((getValidenddate() == null) ? 0 : getValidenddate().hashCode());
result = prime * result + ((getDistcoucount() == null) ? 0 : getDistcoucount().hashCode());
result = prime * result + ((getCoutypecode() == null) ? 0 : getCoutypecode().hashCode());
result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
result = prime * result + ((getCreateuser() == null) ? 0 : getCreateuser().hashCode());
result = prime * result + ((getModifytime() == null) ? 0 : getModifytime().hashCode());
result = prime * result + ((getModifyuser() == null) ? 0 : getModifyuser().hashCode());
result = prime * result + ((getPrebalance() == null) ? 0 : getPrebalance().hashCode());
result = prime * result + ((getPostbalance() == null) ? 0 : getPostbalance().hashCode());
result = prime * result + ((getBillversion() == null) ? 0 : getBillversion().hashCode());
result = prime * result + ((getReconversion() == null) ? 0 : getReconversion().hashCode());
result = prime * result + ((getPromoterid() == null) ? 0 : getPromoterid().hashCode());
result = prime * result + ((getAccessType() == null) ? 0 : getAccessType().hashCode());
result = prime * result + ((getStaticcheckcode() == null) ? 0 : getStaticcheckcode().hashCode());
result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode());
result = prime * result + ((getUseShop() == null) ? 0 : getUseShop().hashCode());
return result;
}
@ -115,12 +307,28 @@ public class TbRechargePayOrder implements Serializable {
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", rechargeid=").append(rechargeid);
sb.append(", phone=").append(phone);
sb.append(", couno=").append(couno);
sb.append(", status=").append(status);
sb.append(", distributorid=").append(distributorid);
sb.append(", validstartdate=").append(validstartdate);
sb.append(", validenddate=").append(validenddate);
sb.append(", distcoucount=").append(distcoucount);
sb.append(", coutypecode=").append(coutypecode);
sb.append(", createtime=").append(createtime);
sb.append(", createuser=").append(createuser);
sb.append(", modifytime=").append(modifytime);
sb.append(", modifyuser=").append(modifyuser);
sb.append(", prebalance=").append(prebalance);
sb.append(", postbalance=").append(postbalance);
sb.append(", billversion=").append(billversion);
sb.append(", reconversion=").append(reconversion);
sb.append(", promoterid=").append(promoterid);
sb.append(", accessType=").append(accessType);
sb.append(", staticcheckcode=").append(staticcheckcode);
sb.append(", useTime=").append(useTime);
sb.append(", useShop=").append(useShop);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();

Loading…
Cancel
Save