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