diff --git a/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java b/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java index 7e58073e..670959fe 100644 --- a/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java +++ b/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java @@ -116,6 +116,7 @@ public class AuthConfig implements WebMvcConfigurer { .excludePathPatterns("/outRechargeOrder/*") .excludePathPatterns("/wechat/*") .excludePathPatterns("/tuanyou/*") + .excludePathPatterns("/unionPay/*") .excludePathPatterns("/highGas/*") .excludePathPatterns("/common/*") .excludePathPatterns("/order/qzOrderToPay") diff --git a/hai-cweb/src/main/java/com/cweb/controller/pay/UnionPayController.java b/hai-cweb/src/main/java/com/cweb/controller/pay/UnionPayController.java index 1e9fd383..71a4d834 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/pay/UnionPayController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/pay/UnionPayController.java @@ -23,9 +23,7 @@ import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; @@ -82,13 +80,16 @@ public class UnionPayController { @RequestMapping(value = "/notify", method = RequestMethod.POST) @ApiOperation(value = "银联支付 -> 异步回调") - public void notify(@RequestBody JSONObject body, HttpServletRequest request, HttpServletResponse response) { + public void notify(@RequestParam Map params, HttpServletRequest request, HttpServletResponse response) { try { + System.out.println(params); + log.info(JSONObject.toJSONString(params)); - if (body == null){ + if (params == null){ return; } + JSONObject body = JSONObject.parseObject(MapUtils.getObject(params, "params"), JSONObject.class); if (StringUtils.isBlank(body.getString("tradetrace"))) { return; } @@ -104,7 +105,8 @@ public class UnionPayController { if (order.getOrderStatus() == 1) { order.setPaySerialNo(body.getString("wtorderid")); // 支付流水号 - order.setPayRealPrice(body.getBigDecimal("payamt")); // 实付金额 + //order.setPayRealPrice(body.getBigDecimal("payamt")); // 实付金额 + order.setPayRealPrice(order.getPayPrice()); // 实付金额 order.setPayTime(new Date()); // 支付时间 order.setPayModel(2); // 支付模式:1 金币,2 第三方平台,3 混合 order.setPayType(5); // 支付方式: 1:支付宝 2:微信 3:金币 4:工会卡 5:银联 @@ -263,7 +265,7 @@ public class UnionPayController { out.flush(); out.close(); } catch (Exception e) { - log.error("UnionPayController --> notify() error!", e); + log.error("UnionPayController --> notify() error!", e); } } diff --git a/hai-service/src/main/java/com/hai/dao/HighRefundAuditMapper.java b/hai-service/src/main/java/com/hai/dao/HighRefundAuditMapper.java new file mode 100644 index 00000000..a98a8e56 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighRefundAuditMapper.java @@ -0,0 +1,139 @@ +package com.hai.dao; + +import com.hai.entity.HighRefundAudit; +import com.hai.entity.HighRefundAuditExample; +import java.util.List; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.DeleteProvider; +import org.apache.ibatis.annotations.Insert; +import org.apache.ibatis.annotations.InsertProvider; +import org.apache.ibatis.annotations.Options; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.annotations.Update; +import org.apache.ibatis.annotations.UpdateProvider; +import org.apache.ibatis.type.JdbcType; +import org.springframework.stereotype.Repository; + +/** + * + * 代码由工具生成,请勿修改!!! + * 如果需要扩展请在其父类进行扩展 + * + **/ +@Repository +public interface HighRefundAuditMapper extends HighRefundAuditMapperExt { + @SelectProvider(type=HighRefundAuditSqlProvider.class, method="countByExample") + long countByExample(HighRefundAuditExample example); + + @DeleteProvider(type=HighRefundAuditSqlProvider.class, method="deleteByExample") + int deleteByExample(HighRefundAuditExample example); + + @Delete({ + "delete from high_refund_audit", + "where id = #{id,jdbcType=INTEGER}" + }) + int deleteByPrimaryKey(Integer id); + + @Insert({ + "insert into high_refund_audit (refund_source, refund_price, ", + "pay_type, source_order_no, ", + "pay_time, created_user_id, ", + "created_time, updated_user_id, ", + "updated_time, remark, ", + "`status`, ext_1, ext_2, ", + "ext_3)", + "values (#{refundSource,jdbcType=INTEGER}, #{refundPrice,jdbcType=DECIMAL}, ", + "#{payType,jdbcType=INTEGER}, #{sourceOrderNo,jdbcType=VARCHAR}, ", + "#{payTime,jdbcType=TIMESTAMP}, #{createdUserId,jdbcType=INTEGER}, ", + "#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=INTEGER}, ", + "#{updatedTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, ", + "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", + "#{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(HighRefundAudit record); + + @InsertProvider(type=HighRefundAuditSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(HighRefundAudit record); + + @SelectProvider(type=HighRefundAuditSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="refund_source", property="refundSource", jdbcType=JdbcType.INTEGER), + @Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), + @Result(column="source_order_no", property="sourceOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), + @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), + @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + List selectByExample(HighRefundAuditExample example); + + @Select({ + "select", + "id, refund_source, refund_price, pay_type, source_order_no, pay_time, created_user_id, ", + "created_time, updated_user_id, updated_time, remark, `status`, ext_1, ext_2, ", + "ext_3", + "from high_refund_audit", + "where id = #{id,jdbcType=INTEGER}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="refund_source", property="refundSource", jdbcType=JdbcType.INTEGER), + @Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), + @Result(column="source_order_no", property="sourceOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), + @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), + @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + HighRefundAudit selectByPrimaryKey(Integer id); + + @UpdateProvider(type=HighRefundAuditSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") HighRefundAudit record, @Param("example") HighRefundAuditExample example); + + @UpdateProvider(type=HighRefundAuditSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") HighRefundAudit record, @Param("example") HighRefundAuditExample example); + + @UpdateProvider(type=HighRefundAuditSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(HighRefundAudit record); + + @Update({ + "update high_refund_audit", + "set refund_source = #{refundSource,jdbcType=INTEGER},", + "refund_price = #{refundPrice,jdbcType=DECIMAL},", + "pay_type = #{payType,jdbcType=INTEGER},", + "source_order_no = #{sourceOrderNo,jdbcType=VARCHAR},", + "pay_time = #{payTime,jdbcType=TIMESTAMP},", + "created_user_id = #{createdUserId,jdbcType=INTEGER},", + "created_time = #{createdTime,jdbcType=TIMESTAMP},", + "updated_user_id = #{updatedUserId,jdbcType=INTEGER},", + "updated_time = #{updatedTime,jdbcType=TIMESTAMP},", + "remark = #{remark,jdbcType=VARCHAR},", + "`status` = #{status,jdbcType=INTEGER},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=INTEGER}" + }) + int updateByPrimaryKey(HighRefundAudit record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighRefundAuditMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighRefundAuditMapperExt.java new file mode 100644 index 00000000..cbc90f4f --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighRefundAuditMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface HighRefundAuditMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighRefundAuditSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighRefundAuditSqlProvider.java new file mode 100644 index 00000000..cab688ac --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighRefundAuditSqlProvider.java @@ -0,0 +1,374 @@ +package com.hai.dao; + +import com.hai.entity.HighRefundAudit; +import com.hai.entity.HighRefundAuditExample.Criteria; +import com.hai.entity.HighRefundAuditExample.Criterion; +import com.hai.entity.HighRefundAuditExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class HighRefundAuditSqlProvider { + + public String countByExample(HighRefundAuditExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("high_refund_audit"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(HighRefundAuditExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("high_refund_audit"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(HighRefundAudit record) { + SQL sql = new SQL(); + sql.INSERT_INTO("high_refund_audit"); + + if (record.getRefundSource() != null) { + sql.VALUES("refund_source", "#{refundSource,jdbcType=INTEGER}"); + } + + if (record.getRefundPrice() != null) { + sql.VALUES("refund_price", "#{refundPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayType() != null) { + sql.VALUES("pay_type", "#{payType,jdbcType=INTEGER}"); + } + + if (record.getSourceOrderNo() != null) { + sql.VALUES("source_order_no", "#{sourceOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getPayTime() != null) { + sql.VALUES("pay_time", "#{payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCreatedUserId() != null) { + sql.VALUES("created_user_id", "#{createdUserId,jdbcType=INTEGER}"); + } + + if (record.getCreatedTime() != null) { + sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=INTEGER}"); + } + + if (record.getUpdatedTime() != null) { + sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRemark() != null) { + sql.VALUES("remark", "#{remark,jdbcType=VARCHAR}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(HighRefundAuditExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("refund_source"); + sql.SELECT("refund_price"); + sql.SELECT("pay_type"); + sql.SELECT("source_order_no"); + sql.SELECT("pay_time"); + sql.SELECT("created_user_id"); + sql.SELECT("created_time"); + sql.SELECT("updated_user_id"); + sql.SELECT("updated_time"); + sql.SELECT("remark"); + sql.SELECT("`status`"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("high_refund_audit"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + HighRefundAudit record = (HighRefundAudit) parameter.get("record"); + HighRefundAuditExample example = (HighRefundAuditExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("high_refund_audit"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=INTEGER}"); + } + + if (record.getRefundSource() != null) { + sql.SET("refund_source = #{record.refundSource,jdbcType=INTEGER}"); + } + + if (record.getRefundPrice() != null) { + sql.SET("refund_price = #{record.refundPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayType() != null) { + sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); + } + + if (record.getSourceOrderNo() != null) { + sql.SET("source_order_no = #{record.sourceOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getPayTime() != null) { + sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCreatedUserId() != null) { + sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); + } + + if (record.getCreatedTime() != null) { + sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); + } + + if (record.getUpdatedTime() != null) { + sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRemark() != null) { + sql.SET("remark = #{record.remark,jdbcType=VARCHAR}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("high_refund_audit"); + + sql.SET("id = #{record.id,jdbcType=INTEGER}"); + sql.SET("refund_source = #{record.refundSource,jdbcType=INTEGER}"); + sql.SET("refund_price = #{record.refundPrice,jdbcType=DECIMAL}"); + sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); + sql.SET("source_order_no = #{record.sourceOrderNo,jdbcType=VARCHAR}"); + sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); + sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); + sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); + sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); + sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); + sql.SET("remark = #{record.remark,jdbcType=VARCHAR}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + HighRefundAuditExample example = (HighRefundAuditExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(HighRefundAudit record) { + SQL sql = new SQL(); + sql.UPDATE("high_refund_audit"); + + if (record.getRefundSource() != null) { + sql.SET("refund_source = #{refundSource,jdbcType=INTEGER}"); + } + + if (record.getRefundPrice() != null) { + sql.SET("refund_price = #{refundPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayType() != null) { + sql.SET("pay_type = #{payType,jdbcType=INTEGER}"); + } + + if (record.getSourceOrderNo() != null) { + sql.SET("source_order_no = #{sourceOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getPayTime() != null) { + sql.SET("pay_time = #{payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCreatedUserId() != null) { + sql.SET("created_user_id = #{createdUserId,jdbcType=INTEGER}"); + } + + if (record.getCreatedTime() != null) { + sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdatedUserId() != null) { + sql.SET("updated_user_id = #{updatedUserId,jdbcType=INTEGER}"); + } + + if (record.getUpdatedTime() != null) { + sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRemark() != null) { + sql.SET("remark = #{remark,jdbcType=VARCHAR}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=INTEGER}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, HighRefundAuditExample 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/HighRefundAudit.java b/hai-service/src/main/java/com/hai/entity/HighRefundAudit.java new file mode 100644 index 00000000..b9d9d34c --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighRefundAudit.java @@ -0,0 +1,290 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * high_refund_audit + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class HighRefundAudit implements Serializable { + /** + * 主键id + */ + private Integer id; + + /** + * 退款来源 1:话费退款 + */ + private Integer refundSource; + + /** + * 退款金额 + */ + private BigDecimal refundPrice; + + /** + * 支付类型 + */ + private Integer payType; + + /** + * 退款订单号 + */ + private String sourceOrderNo; + + /** + * 支付时间 + */ + private Date payTime; + + /** + * 创建人 + */ + private Integer createdUserId; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private Integer updatedUserId; + + /** + * 更新时间 + */ + private Date updatedTime; + + /** + * 备注 + */ + private String remark; + + /** + * 状态:1,审核通过 2.审核驳回 + */ + private Integer status; + + /** + * 额外字段 + */ + private String ext1; + + /** + * 额外字段 + */ + private String ext2; + + /** + * 额外字段 + */ + private String ext3; + + private static final long serialVersionUID = 1L; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getRefundSource() { + return refundSource; + } + + public void setRefundSource(Integer refundSource) { + this.refundSource = refundSource; + } + + public BigDecimal getRefundPrice() { + return refundPrice; + } + + public void setRefundPrice(BigDecimal refundPrice) { + this.refundPrice = refundPrice; + } + + public Integer getPayType() { + return payType; + } + + public void setPayType(Integer payType) { + this.payType = payType; + } + + public String getSourceOrderNo() { + return sourceOrderNo; + } + + public void setSourceOrderNo(String sourceOrderNo) { + this.sourceOrderNo = sourceOrderNo; + } + + public Date getPayTime() { + return payTime; + } + + public void setPayTime(Date payTime) { + this.payTime = payTime; + } + + public Integer getCreatedUserId() { + return createdUserId; + } + + public void setCreatedUserId(Integer createdUserId) { + this.createdUserId = createdUserId; + } + + public Date getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(Date createdTime) { + this.createdTime = createdTime; + } + + public Integer getUpdatedUserId() { + return updatedUserId; + } + + public void setUpdatedUserId(Integer updatedUserId) { + this.updatedUserId = updatedUserId; + } + + public Date getUpdatedTime() { + return updatedTime; + } + + public void setUpdatedTime(Date updatedTime) { + this.updatedTime = updatedTime; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + HighRefundAudit other = (HighRefundAudit) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getRefundSource() == null ? other.getRefundSource() == null : this.getRefundSource().equals(other.getRefundSource())) + && (this.getRefundPrice() == null ? other.getRefundPrice() == null : this.getRefundPrice().equals(other.getRefundPrice())) + && (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType())) + && (this.getSourceOrderNo() == null ? other.getSourceOrderNo() == null : this.getSourceOrderNo().equals(other.getSourceOrderNo())) + && (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime())) + && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) + && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) + && (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) + && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getRefundSource() == null) ? 0 : getRefundSource().hashCode()); + result = prime * result + ((getRefundPrice() == null) ? 0 : getRefundPrice().hashCode()); + result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode()); + result = prime * result + ((getSourceOrderNo() == null) ? 0 : getSourceOrderNo().hashCode()); + result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode()); + result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); + result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); + result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); + result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", refundSource=").append(refundSource); + sb.append(", refundPrice=").append(refundPrice); + sb.append(", payType=").append(payType); + sb.append(", sourceOrderNo=").append(sourceOrderNo); + sb.append(", payTime=").append(payTime); + sb.append(", createdUserId=").append(createdUserId); + sb.append(", createdTime=").append(createdTime); + sb.append(", updatedUserId=").append(updatedUserId); + sb.append(", updatedTime=").append(updatedTime); + sb.append(", remark=").append(remark); + sb.append(", status=").append(status); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighRefundAuditExample.java b/hai-service/src/main/java/com/hai/entity/HighRefundAuditExample.java new file mode 100644 index 00000000..fc40a43d --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighRefundAuditExample.java @@ -0,0 +1,1174 @@ +package com.hai.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HighRefundAuditExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public HighRefundAuditExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andRefundSourceIsNull() { + addCriterion("refund_source is null"); + return (Criteria) this; + } + + public Criteria andRefundSourceIsNotNull() { + addCriterion("refund_source is not null"); + return (Criteria) this; + } + + public Criteria andRefundSourceEqualTo(Integer value) { + addCriterion("refund_source =", value, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceNotEqualTo(Integer value) { + addCriterion("refund_source <>", value, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceGreaterThan(Integer value) { + addCriterion("refund_source >", value, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceGreaterThanOrEqualTo(Integer value) { + addCriterion("refund_source >=", value, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceLessThan(Integer value) { + addCriterion("refund_source <", value, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceLessThanOrEqualTo(Integer value) { + addCriterion("refund_source <=", value, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceIn(List values) { + addCriterion("refund_source in", values, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceNotIn(List values) { + addCriterion("refund_source not in", values, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceBetween(Integer value1, Integer value2) { + addCriterion("refund_source between", value1, value2, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundSourceNotBetween(Integer value1, Integer value2) { + addCriterion("refund_source not between", value1, value2, "refundSource"); + return (Criteria) this; + } + + public Criteria andRefundPriceIsNull() { + addCriterion("refund_price is null"); + return (Criteria) this; + } + + public Criteria andRefundPriceIsNotNull() { + addCriterion("refund_price is not null"); + return (Criteria) this; + } + + public Criteria andRefundPriceEqualTo(BigDecimal value) { + addCriterion("refund_price =", value, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceNotEqualTo(BigDecimal value) { + addCriterion("refund_price <>", value, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceGreaterThan(BigDecimal value) { + addCriterion("refund_price >", value, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("refund_price >=", value, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceLessThan(BigDecimal value) { + addCriterion("refund_price <", value, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("refund_price <=", value, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceIn(List values) { + addCriterion("refund_price in", values, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceNotIn(List values) { + addCriterion("refund_price not in", values, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("refund_price between", value1, value2, "refundPrice"); + return (Criteria) this; + } + + public Criteria andRefundPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("refund_price not between", value1, value2, "refundPrice"); + return (Criteria) this; + } + + public Criteria andPayTypeIsNull() { + addCriterion("pay_type is null"); + return (Criteria) this; + } + + public Criteria andPayTypeIsNotNull() { + addCriterion("pay_type is not null"); + return (Criteria) this; + } + + public Criteria andPayTypeEqualTo(Integer value) { + addCriterion("pay_type =", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotEqualTo(Integer value) { + addCriterion("pay_type <>", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeGreaterThan(Integer value) { + addCriterion("pay_type >", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("pay_type >=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThan(Integer value) { + addCriterion("pay_type <", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThanOrEqualTo(Integer value) { + addCriterion("pay_type <=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeIn(List values) { + addCriterion("pay_type in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotIn(List values) { + addCriterion("pay_type not in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeBetween(Integer value1, Integer value2) { + addCriterion("pay_type between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotBetween(Integer value1, Integer value2) { + addCriterion("pay_type not between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoIsNull() { + addCriterion("source_order_no is null"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoIsNotNull() { + addCriterion("source_order_no is not null"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoEqualTo(String value) { + addCriterion("source_order_no =", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoNotEqualTo(String value) { + addCriterion("source_order_no <>", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoGreaterThan(String value) { + addCriterion("source_order_no >", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("source_order_no >=", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoLessThan(String value) { + addCriterion("source_order_no <", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoLessThanOrEqualTo(String value) { + addCriterion("source_order_no <=", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoLike(String value) { + addCriterion("source_order_no like", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoNotLike(String value) { + addCriterion("source_order_no not like", value, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoIn(List values) { + addCriterion("source_order_no in", values, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoNotIn(List values) { + addCriterion("source_order_no not in", values, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoBetween(String value1, String value2) { + addCriterion("source_order_no between", value1, value2, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andSourceOrderNoNotBetween(String value1, String value2) { + addCriterion("source_order_no not between", value1, value2, "sourceOrderNo"); + return (Criteria) this; + } + + public Criteria andPayTimeIsNull() { + addCriterion("pay_time is null"); + return (Criteria) this; + } + + public Criteria andPayTimeIsNotNull() { + addCriterion("pay_time is not null"); + return (Criteria) this; + } + + public Criteria andPayTimeEqualTo(Date value) { + addCriterion("pay_time =", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotEqualTo(Date value) { + addCriterion("pay_time <>", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeGreaterThan(Date value) { + addCriterion("pay_time >", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeGreaterThanOrEqualTo(Date value) { + addCriterion("pay_time >=", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeLessThan(Date value) { + addCriterion("pay_time <", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeLessThanOrEqualTo(Date value) { + addCriterion("pay_time <=", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeIn(List values) { + addCriterion("pay_time in", values, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotIn(List values) { + addCriterion("pay_time not in", values, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeBetween(Date value1, Date value2) { + addCriterion("pay_time between", value1, value2, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotBetween(Date value1, Date value2) { + addCriterion("pay_time not between", value1, value2, "payTime"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNull() { + addCriterion("created_user_id is null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIsNotNull() { + addCriterion("created_user_id is not null"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdEqualTo(Integer value) { + addCriterion("created_user_id =", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotEqualTo(Integer value) { + addCriterion("created_user_id <>", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThan(Integer value) { + addCriterion("created_user_id >", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("created_user_id >=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThan(Integer value) { + addCriterion("created_user_id <", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdLessThanOrEqualTo(Integer value) { + addCriterion("created_user_id <=", value, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdIn(List values) { + addCriterion("created_user_id in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotIn(List values) { + addCriterion("created_user_id not in", values, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdBetween(Integer value1, Integer value2) { + addCriterion("created_user_id between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("created_user_id not between", value1, value2, "createdUserId"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIsNull() { + addCriterion("created_time is null"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIsNotNull() { + addCriterion("created_time is not null"); + return (Criteria) this; + } + + public Criteria andCreatedTimeEqualTo(Date value) { + addCriterion("created_time =", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotEqualTo(Date value) { + addCriterion("created_time <>", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeGreaterThan(Date value) { + addCriterion("created_time >", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) { + addCriterion("created_time >=", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeLessThan(Date value) { + addCriterion("created_time <", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeLessThanOrEqualTo(Date value) { + addCriterion("created_time <=", value, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeIn(List values) { + addCriterion("created_time in", values, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotIn(List values) { + addCriterion("created_time not in", values, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeBetween(Date value1, Date value2) { + addCriterion("created_time between", value1, value2, "createdTime"); + return (Criteria) this; + } + + public Criteria andCreatedTimeNotBetween(Date value1, Date value2) { + addCriterion("created_time not between", value1, value2, "createdTime"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIsNull() { + addCriterion("updated_user_id is null"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIsNotNull() { + addCriterion("updated_user_id is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdEqualTo(Integer value) { + addCriterion("updated_user_id =", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotEqualTo(Integer value) { + addCriterion("updated_user_id <>", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdGreaterThan(Integer value) { + addCriterion("updated_user_id >", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("updated_user_id >=", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLessThan(Integer value) { + addCriterion("updated_user_id <", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdLessThanOrEqualTo(Integer value) { + addCriterion("updated_user_id <=", value, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdIn(List values) { + addCriterion("updated_user_id in", values, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotIn(List values) { + addCriterion("updated_user_id not in", values, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdBetween(Integer value1, Integer value2) { + addCriterion("updated_user_id between", value1, value2, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("updated_user_id not between", value1, value2, "updatedUserId"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIsNull() { + addCriterion("updated_time is null"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIsNotNull() { + addCriterion("updated_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeEqualTo(Date value) { + addCriterion("updated_time =", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotEqualTo(Date value) { + addCriterion("updated_time <>", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeGreaterThan(Date value) { + addCriterion("updated_time >", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) { + addCriterion("updated_time >=", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeLessThan(Date value) { + addCriterion("updated_time <", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) { + addCriterion("updated_time <=", value, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeIn(List values) { + addCriterion("updated_time in", values, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotIn(List values) { + addCriterion("updated_time not in", values, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeBetween(Date value1, Date value2) { + addCriterion("updated_time between", value1, value2, "updatedTime"); + return (Criteria) this; + } + + public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) { + addCriterion("updated_time not between", value1, value2, "updatedTime"); + return (Criteria) this; + } + + public Criteria andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/resources/dev/commonConfig.properties b/hai-service/src/main/resources/dev/commonConfig.properties index 0732f63d..473f6d1f 100644 --- a/hai-service/src/main/resources/dev/commonConfig.properties +++ b/hai-service/src/main/resources/dev/commonConfig.properties @@ -24,11 +24,11 @@ HuiLianTongUnionCardAccessCode=6FCAE1470CEF465988351BB65ABAA8AE HuiLianTongUnionCardSignCode=F8E91A3C # ?????? -unionPayUrl=https://notify-test.eycard.cn:7443/WorthTech_Access_AppPaySystemV2/apppayacc -unionPayChannelid=D01X66666666761 -unionPayMerid=531000012972390 -unionPayTermid=W1489519 -unionPaySignKey=sa72ivadl84273dlj2kdaia2idiadik5 +unionPayUrl=https://open.eycard.cn:8443/WorthTech_Access_AppPaySystemV2/apppayacc +unionPayChannelid=D01X00000801226 +unionPayMerid=531000009488145 +unionPayTermid=39339061 +unionPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0 unionPayNotifyUrl=https://hsgcs.dctpay.com/crest/unionPay/notify # ??????