From 4e36b02cf8bad5b9bedb307203fc7335390753c8 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Tue, 8 Aug 2023 15:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/dev/application.yml | 4 + .../com/hai/dao/TbRechargePayOrderMapper.java | 111 ++++ .../hai/dao/TbRechargePayOrderMapperExt.java | 7 + .../dao/TbRechargePayOrderSqlProvider.java | 427 +++++++++++++ .../com/hai/entity/TbRechargePayOrder.java | 128 ++++ .../hai/entity/TbRechargePayOrderExample.java | 584 ++++++++++++++++++ .../entity/TbRechargePayOrderWithBLOBs.java | 276 +++++++++ 7 files changed, 1537 insertions(+) create mode 100644 hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapper.java create mode 100644 hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapperExt.java create mode 100644 hai-service/src/main/java/com/hai/dao/TbRechargePayOrderSqlProvider.java create mode 100644 hai-service/src/main/java/com/hai/entity/TbRechargePayOrder.java create mode 100644 hai-service/src/main/java/com/hai/entity/TbRechargePayOrderExample.java create mode 100644 hai-service/src/main/java/com/hai/entity/TbRechargePayOrderWithBLOBs.java diff --git a/hai-order/src/main/resources/dev/application.yml b/hai-order/src/main/resources/dev/application.yml index 381a73cc..f8c63d4e 100644 --- a/hai-order/src/main/resources/dev/application.yml +++ b/hai-order/src/main/resources/dev/application.yml @@ -61,10 +61,14 @@ spring: rocketmq: name-server: 139.9.154.68:9876 + access-key: huifukeji + secret-key: HF123456. producer: #必须指定group group: default-group + + mybatis: mapperLocations: - classpath*:sqlmap*/*.xml diff --git a/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapper.java b/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapper.java new file mode 100644 index 00000000..c18f8d5d --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapper.java @@ -0,0 +1,111 @@ +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; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.annotations.UpdateProvider; +import org.apache.ibatis.type.JdbcType; +import org.springframework.stereotype.Repository; + +/** + * + * 代码由工具生成,请勿修改!!! + * 如果需要扩展请在其父类进行扩展 + * + **/ +@Repository +public interface TbRechargePayOrderMapper extends TbRechargePayOrderMapperExt { + @SelectProvider(type=TbRechargePayOrderSqlProvider.class, method="countByExample") + long countByExample(TbRechargePayOrderExample example); + + @DeleteProvider(type=TbRechargePayOrderSqlProvider.class, method="deleteByExample") + int deleteByExample(TbRechargePayOrderExample example); + + @Insert({ + "insert into tb_recharge_pay_order (validStartDate, validEndDate, ", + "createtime, modifytime, ", + "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}, ", + "#{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})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(TbRechargePayOrderWithBLOBs 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 selectByExampleWithBLOBs(TbRechargePayOrderExample example); + + @SelectProvider(type=TbRechargePayOrderSqlProvider.class, method="selectByExample") + @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) + }) + List 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); + + @UpdateProvider(type=TbRechargePayOrderSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") TbRechargePayOrder record, @Param("example") TbRechargePayOrderExample example); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapperExt.java b/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapperExt.java new file mode 100644 index 00000000..c4ee924f --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface TbRechargePayOrderMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderSqlProvider.java b/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderSqlProvider.java new file mode 100644 index 00000000..23339560 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/TbRechargePayOrderSqlProvider.java @@ -0,0 +1,427 @@ +package com.hai.dao; + +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; + +public class TbRechargePayOrderSqlProvider { + + public String countByExample(TbRechargePayOrderExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("tb_recharge_pay_order"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(TbRechargePayOrderExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("tb_recharge_pay_order"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(TbRechargePayOrderWithBLOBs record) { + SQL sql = new SQL(); + sql.INSERT_INTO("tb_recharge_pay_order"); + + if (record.getValidstartdate() != null) { + sql.VALUES("validStartDate", "#{validstartdate,jdbcType=TIMESTAMP}"); + } + + if (record.getValidenddate() != null) { + sql.VALUES("validEndDate", "#{validenddate,jdbcType=TIMESTAMP}"); + } + + if (record.getCreatetime() != null) { + sql.VALUES("createtime", "#{createtime,jdbcType=TIMESTAMP}"); + } + + if (record.getModifytime() != null) { + sql.VALUES("modifytime", "#{modifytime,jdbcType=TIMESTAMP}"); + } + + if (record.getPrebalance() != null) { + sql.VALUES("preBalance", "#{prebalance,jdbcType=DECIMAL}"); + } + + if (record.getPostbalance() != null) { + sql.VALUES("postBalance", "#{postbalance,jdbcType=DECIMAL}"); + } + + if (record.getRechargeid() != null) { + sql.VALUES("rechargeId", "#{rechargeid,jdbcType=LONGVARCHAR}"); + } + + if (record.getPhone() != null) { + sql.VALUES("phone", "#{phone,jdbcType=LONGVARCHAR}"); + } + + if (record.getCouno() != null) { + sql.VALUES("couNo", "#{couno,jdbcType=LONGVARCHAR}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=LONGVARCHAR}"); + } + + if (record.getDistributorid() != null) { + sql.VALUES("distributorId", "#{distributorid,jdbcType=LONGVARCHAR}"); + } + + if (record.getDistcoucount() != null) { + sql.VALUES("distCouCount", "#{distcoucount,jdbcType=LONGVARCHAR}"); + } + + if (record.getCoutypecode() != null) { + sql.VALUES("couTypeCode", "#{coutypecode,jdbcType=LONGVARCHAR}"); + } + + if (record.getCreateuser() != null) { + sql.VALUES("`createuser`", "#{createuser,jdbcType=LONGVARCHAR}"); + } + + if (record.getModifyuser() != null) { + sql.VALUES("modifyuser", "#{modifyuser,jdbcType=LONGVARCHAR}"); + } + + if (record.getBillversion() != null) { + sql.VALUES("billVersion", "#{billversion,jdbcType=LONGVARCHAR}"); + } + + if (record.getReconversion() != null) { + sql.VALUES("reconVersion", "#{reconversion,jdbcType=LONGVARCHAR}"); + } + + if (record.getPromoterid() != null) { + sql.VALUES("promoterId", "#{promoterid,jdbcType=LONGVARCHAR}"); + } + + if (record.getAccessType() != null) { + sql.VALUES("access_type", "#{accessType,jdbcType=LONGVARCHAR}"); + } + + if (record.getStaticcheckcode() != null) { + sql.VALUES("staticCheckCode", "#{staticcheckcode,jdbcType=LONGVARCHAR}"); + } + + if (record.getUseShop() != null) { + sql.VALUES("use_shop", "#{useShop,jdbcType=LONGVARCHAR}"); + } + + if (record.getUseTime() != null) { + sql.VALUES("use_time", "#{useTime,jdbcType=LONGVARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExampleWithBLOBs(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("id"); + sql.SELECT("rechargeId"); + sql.SELECT("phone"); + sql.SELECT("couNo"); + sql.SELECT("`status`"); + sql.SELECT("distributorId"); + sql.SELECT("distCouCount"); + sql.SELECT("couTypeCode"); + sql.SELECT("`createuser`"); + sql.SELECT("modifyuser"); + 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.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 updateByExampleSelective(Map parameter) { + TbRechargePayOrderWithBLOBs record = (TbRechargePayOrderWithBLOBs) 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.getCreatetime() != null) { + sql.SET("createtime = #{record.createtime,jdbcType=TIMESTAMP}"); + } + + if (record.getModifytime() != null) { + sql.SET("modifytime = #{record.modifytime,jdbcType=TIMESTAMP}"); + } + + if (record.getPrebalance() != null) { + sql.SET("preBalance = #{record.prebalance,jdbcType=DECIMAL}"); + } + + if (record.getPostbalance() != null) { + sql.SET("postBalance = #{record.postbalance,jdbcType=DECIMAL}"); + } + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=LONGVARCHAR}"); + } + + if (record.getRechargeid() != null) { + sql.SET("rechargeId = #{record.rechargeid,jdbcType=LONGVARCHAR}"); + } + + if (record.getPhone() != null) { + sql.SET("phone = #{record.phone,jdbcType=LONGVARCHAR}"); + } + + if (record.getCouno() != null) { + sql.SET("couNo = #{record.couno,jdbcType=LONGVARCHAR}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=LONGVARCHAR}"); + } + + if (record.getDistributorid() != null) { + sql.SET("distributorId = #{record.distributorid,jdbcType=LONGVARCHAR}"); + } + + if (record.getDistcoucount() != null) { + sql.SET("distCouCount = #{record.distcoucount,jdbcType=LONGVARCHAR}"); + } + + if (record.getCoutypecode() != null) { + sql.SET("couTypeCode = #{record.coutypecode,jdbcType=LONGVARCHAR}"); + } + + if (record.getCreateuser() != null) { + sql.SET("`createuser` = #{record.createuser,jdbcType=LONGVARCHAR}"); + } + + if (record.getModifyuser() != null) { + sql.SET("modifyuser = #{record.modifyuser,jdbcType=LONGVARCHAR}"); + } + + if (record.getBillversion() != null) { + sql.SET("billVersion = #{record.billversion,jdbcType=LONGVARCHAR}"); + } + + if (record.getReconversion() != null) { + sql.SET("reconVersion = #{record.reconversion,jdbcType=LONGVARCHAR}"); + } + + if (record.getPromoterid() != null) { + sql.SET("promoterId = #{record.promoterid,jdbcType=LONGVARCHAR}"); + } + + if (record.getAccessType() != null) { + sql.SET("access_type = #{record.accessType,jdbcType=LONGVARCHAR}"); + } + + if (record.getStaticcheckcode() != null) { + sql.SET("staticCheckCode = #{record.staticcheckcode,jdbcType=LONGVARCHAR}"); + } + + if (record.getUseShop() != null) { + sql.SET("use_shop = #{record.useShop,jdbcType=LONGVARCHAR}"); + } + + if (record.getUseTime() != null) { + sql.SET("use_time = #{record.useTime,jdbcType=LONGVARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExampleWithBLOBs(Map 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(); + } + + public String updateByExample(Map 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}"); + + TbRechargePayOrderExample example = (TbRechargePayOrderExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + protected void applyWhere(SQL sql, TbRechargePayOrderExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/TbRechargePayOrder.java b/hai-service/src/main/java/com/hai/entity/TbRechargePayOrder.java new file mode 100644 index 00000000..1ae165d0 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/TbRechargePayOrder.java @@ -0,0 +1,128 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * tb_recharge_pay_order + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class TbRechargePayOrder implements Serializable { + private Date validstartdate; + + private Date validenddate; + + private Date createtime; + + private Date modifytime; + + private BigDecimal prebalance; + + private BigDecimal postbalance; + + private static final long serialVersionUID = 1L; + + public Date getValidstartdate() { + return validstartdate; + } + + public void setValidstartdate(Date validstartdate) { + this.validstartdate = validstartdate; + } + + public Date getValidenddate() { + return validenddate; + } + + public void setValidenddate(Date validenddate) { + this.validenddate = validenddate; + } + + public Date getCreatetime() { + return createtime; + } + + public void setCreatetime(Date createtime) { + this.createtime = createtime; + } + + public Date getModifytime() { + return modifytime; + } + + public void setModifytime(Date modifytime) { + this.modifytime = modifytime; + } + + public BigDecimal getPrebalance() { + return prebalance; + } + + public void setPrebalance(BigDecimal prebalance) { + this.prebalance = prebalance; + } + + public BigDecimal getPostbalance() { + return postbalance; + } + + public void setPostbalance(BigDecimal postbalance) { + this.postbalance = postbalance; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + TbRechargePayOrder other = (TbRechargePayOrder) that; + return (this.getValidstartdate() == null ? other.getValidstartdate() == null : this.getValidstartdate().equals(other.getValidstartdate())) + && (this.getValidenddate() == null ? other.getValidenddate() == null : this.getValidenddate().equals(other.getValidenddate())) + && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime())) + && (this.getModifytime() == null ? other.getModifytime() == null : this.getModifytime().equals(other.getModifytime())) + && (this.getPrebalance() == null ? other.getPrebalance() == null : this.getPrebalance().equals(other.getPrebalance())) + && (this.getPostbalance() == null ? other.getPostbalance() == null : this.getPostbalance().equals(other.getPostbalance())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getValidstartdate() == null) ? 0 : getValidstartdate().hashCode()); + result = prime * result + ((getValidenddate() == null) ? 0 : getValidenddate().hashCode()); + result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode()); + result = prime * result + ((getModifytime() == null) ? 0 : getModifytime().hashCode()); + result = prime * result + ((getPrebalance() == null) ? 0 : getPrebalance().hashCode()); + result = prime * result + ((getPostbalance() == null) ? 0 : getPostbalance().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", validstartdate=").append(validstartdate); + sb.append(", validenddate=").append(validenddate); + sb.append(", createtime=").append(createtime); + sb.append(", modifytime=").append(modifytime); + sb.append(", prebalance=").append(prebalance); + sb.append(", postbalance=").append(postbalance); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/TbRechargePayOrderExample.java b/hai-service/src/main/java/com/hai/entity/TbRechargePayOrderExample.java new file mode 100644 index 00000000..8072d40e --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/TbRechargePayOrderExample.java @@ -0,0 +1,584 @@ +package com.hai.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TbRechargePayOrderExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public TbRechargePayOrderExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andValidstartdateIsNull() { + addCriterion("validStartDate is null"); + return (Criteria) this; + } + + public Criteria andValidstartdateIsNotNull() { + addCriterion("validStartDate is not null"); + return (Criteria) this; + } + + public Criteria andValidstartdateEqualTo(Date value) { + addCriterion("validStartDate =", value, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateNotEqualTo(Date value) { + addCriterion("validStartDate <>", value, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateGreaterThan(Date value) { + addCriterion("validStartDate >", value, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateGreaterThanOrEqualTo(Date value) { + addCriterion("validStartDate >=", value, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateLessThan(Date value) { + addCriterion("validStartDate <", value, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateLessThanOrEqualTo(Date value) { + addCriterion("validStartDate <=", value, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateIn(List values) { + addCriterion("validStartDate in", values, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateNotIn(List values) { + addCriterion("validStartDate not in", values, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateBetween(Date value1, Date value2) { + addCriterion("validStartDate between", value1, value2, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidstartdateNotBetween(Date value1, Date value2) { + addCriterion("validStartDate not between", value1, value2, "validstartdate"); + return (Criteria) this; + } + + public Criteria andValidenddateIsNull() { + addCriterion("validEndDate is null"); + return (Criteria) this; + } + + public Criteria andValidenddateIsNotNull() { + addCriterion("validEndDate is not null"); + return (Criteria) this; + } + + public Criteria andValidenddateEqualTo(Date value) { + addCriterion("validEndDate =", value, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateNotEqualTo(Date value) { + addCriterion("validEndDate <>", value, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateGreaterThan(Date value) { + addCriterion("validEndDate >", value, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateGreaterThanOrEqualTo(Date value) { + addCriterion("validEndDate >=", value, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateLessThan(Date value) { + addCriterion("validEndDate <", value, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateLessThanOrEqualTo(Date value) { + addCriterion("validEndDate <=", value, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateIn(List values) { + addCriterion("validEndDate in", values, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateNotIn(List values) { + addCriterion("validEndDate not in", values, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateBetween(Date value1, Date value2) { + addCriterion("validEndDate between", value1, value2, "validenddate"); + return (Criteria) this; + } + + public Criteria andValidenddateNotBetween(Date value1, Date value2) { + addCriterion("validEndDate not between", value1, value2, "validenddate"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNull() { + addCriterion("createtime is null"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNotNull() { + addCriterion("createtime is not null"); + return (Criteria) this; + } + + public Criteria andCreatetimeEqualTo(Date value) { + addCriterion("createtime =", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotEqualTo(Date value) { + addCriterion("createtime <>", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThan(Date value) { + addCriterion("createtime >", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("createtime >=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThan(Date value) { + addCriterion("createtime <", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThanOrEqualTo(Date value) { + addCriterion("createtime <=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeIn(List values) { + addCriterion("createtime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List values) { + addCriterion("createtime not in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeBetween(Date value1, Date value2) { + addCriterion("createtime between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotBetween(Date value1, Date value2) { + addCriterion("createtime not between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andModifytimeIsNull() { + addCriterion("modifytime is null"); + return (Criteria) this; + } + + public Criteria andModifytimeIsNotNull() { + addCriterion("modifytime is not null"); + return (Criteria) this; + } + + public Criteria andModifytimeEqualTo(Date value) { + addCriterion("modifytime =", value, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeNotEqualTo(Date value) { + addCriterion("modifytime <>", value, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeGreaterThan(Date value) { + addCriterion("modifytime >", value, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeGreaterThanOrEqualTo(Date value) { + addCriterion("modifytime >=", value, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeLessThan(Date value) { + addCriterion("modifytime <", value, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeLessThanOrEqualTo(Date value) { + addCriterion("modifytime <=", value, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeIn(List values) { + addCriterion("modifytime in", values, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeNotIn(List values) { + addCriterion("modifytime not in", values, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeBetween(Date value1, Date value2) { + addCriterion("modifytime between", value1, value2, "modifytime"); + return (Criteria) this; + } + + public Criteria andModifytimeNotBetween(Date value1, Date value2) { + addCriterion("modifytime not between", value1, value2, "modifytime"); + return (Criteria) this; + } + + public Criteria andPrebalanceIsNull() { + addCriterion("preBalance is null"); + return (Criteria) this; + } + + public Criteria andPrebalanceIsNotNull() { + addCriterion("preBalance is not null"); + return (Criteria) this; + } + + public Criteria andPrebalanceEqualTo(BigDecimal value) { + addCriterion("preBalance =", value, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceNotEqualTo(BigDecimal value) { + addCriterion("preBalance <>", value, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceGreaterThan(BigDecimal value) { + addCriterion("preBalance >", value, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("preBalance >=", value, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceLessThan(BigDecimal value) { + addCriterion("preBalance <", value, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceLessThanOrEqualTo(BigDecimal value) { + addCriterion("preBalance <=", value, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceIn(List values) { + addCriterion("preBalance in", values, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceNotIn(List values) { + addCriterion("preBalance not in", values, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("preBalance between", value1, value2, "prebalance"); + return (Criteria) this; + } + + public Criteria andPrebalanceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("preBalance not between", value1, value2, "prebalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceIsNull() { + addCriterion("postBalance is null"); + return (Criteria) this; + } + + public Criteria andPostbalanceIsNotNull() { + addCriterion("postBalance is not null"); + return (Criteria) this; + } + + public Criteria andPostbalanceEqualTo(BigDecimal value) { + addCriterion("postBalance =", value, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceNotEqualTo(BigDecimal value) { + addCriterion("postBalance <>", value, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceGreaterThan(BigDecimal value) { + addCriterion("postBalance >", value, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("postBalance >=", value, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceLessThan(BigDecimal value) { + addCriterion("postBalance <", value, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceLessThanOrEqualTo(BigDecimal value) { + addCriterion("postBalance <=", value, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceIn(List values) { + addCriterion("postBalance in", values, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceNotIn(List values) { + addCriterion("postBalance not in", values, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("postBalance between", value1, value2, "postbalance"); + return (Criteria) this; + } + + public Criteria andPostbalanceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("postBalance not between", value1, value2, "postbalance"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/TbRechargePayOrderWithBLOBs.java b/hai-service/src/main/java/com/hai/entity/TbRechargePayOrderWithBLOBs.java new file mode 100644 index 00000000..9c9e8af0 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/TbRechargePayOrderWithBLOBs.java @@ -0,0 +1,276 @@ +package com.hai.entity; + +import java.io.Serializable; + +/** + * tb_recharge_pay_order + * @author + */ +public class TbRechargePayOrderWithBLOBs extends TbRechargePayOrder implements Serializable { + private String id; + + private String rechargeid; + + private String phone; + + private String couno; + + private String status; + + private String distributorid; + + private String distcoucount; + + private String coutypecode; + + private String createuser; + + private String modifyuser; + + private String billversion; + + private String reconversion; + + private String promoterid; + + private String accessType; + + private String staticcheckcode; + + private String useShop; + + private String useTime; + + private static final long serialVersionUID = 1L; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + 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 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 String getCreateuser() { + return createuser; + } + + public void setCreateuser(String createuser) { + this.createuser = createuser; + } + + public String getModifyuser() { + return modifyuser; + } + + public void setModifyuser(String modifyuser) { + this.modifyuser = modifyuser; + } + + 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 String getUseShop() { + return useShop; + } + + public void setUseShop(String useShop) { + this.useShop = useShop; + } + + public String getUseTime() { + return useTime; + } + + public void setUseTime(String useTime) { + this.useTime = useTime; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + TbRechargePayOrderWithBLOBs other = (TbRechargePayOrderWithBLOBs) that; + return (this.getValidstartdate() == null ? other.getValidstartdate() == null : this.getValidstartdate().equals(other.getValidstartdate())) + && (this.getValidenddate() == null ? other.getValidenddate() == null : this.getValidenddate().equals(other.getValidenddate())) + && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime())) + && (this.getModifytime() == null ? other.getModifytime() == null : this.getModifytime().equals(other.getModifytime())) + && (this.getPrebalance() == null ? other.getPrebalance() == null : this.getPrebalance().equals(other.getPrebalance())) + && (this.getPostbalance() == null ? other.getPostbalance() == null : this.getPostbalance().equals(other.getPostbalance())) + && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (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.getDistcoucount() == null ? other.getDistcoucount() == null : this.getDistcoucount().equals(other.getDistcoucount())) + && (this.getCoutypecode() == null ? other.getCoutypecode() == null : this.getCoutypecode().equals(other.getCoutypecode())) + && (this.getCreateuser() == null ? other.getCreateuser() == null : this.getCreateuser().equals(other.getCreateuser())) + && (this.getModifyuser() == null ? other.getModifyuser() == null : this.getModifyuser().equals(other.getModifyuser())) + && (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.getUseShop() == null ? other.getUseShop() == null : this.getUseShop().equals(other.getUseShop())) + && (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getValidstartdate() == null) ? 0 : getValidstartdate().hashCode()); + result = prime * result + ((getValidenddate() == null) ? 0 : getValidenddate().hashCode()); + result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode()); + result = prime * result + ((getModifytime() == null) ? 0 : getModifytime().hashCode()); + result = prime * result + ((getPrebalance() == null) ? 0 : getPrebalance().hashCode()); + result = prime * result + ((getPostbalance() == null) ? 0 : getPostbalance().hashCode()); + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + 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 + ((getDistcoucount() == null) ? 0 : getDistcoucount().hashCode()); + result = prime * result + ((getCoutypecode() == null) ? 0 : getCoutypecode().hashCode()); + result = prime * result + ((getCreateuser() == null) ? 0 : getCreateuser().hashCode()); + result = prime * result + ((getModifyuser() == null) ? 0 : getModifyuser().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 + ((getUseShop() == null) ? 0 : getUseShop().hashCode()); + result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().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(", 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(", distcoucount=").append(distcoucount); + sb.append(", coutypecode=").append(coutypecode); + sb.append(", createuser=").append(createuser); + sb.append(", modifyuser=").append(modifyuser); + 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(", useShop=").append(useShop); + sb.append(", useTime=").append(useTime); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file