From 4c7c2254fe1c686311773187ba48b077958b3c34 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 4 Aug 2023 10:01:48 +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 --- .../com/hfkj/dao/BsTradeSettleMapper.java | 190 ++ .../com/hfkj/dao/BsTradeSettleMapperExt.java | 7 + .../hfkj/dao/BsTradeSettleSqlProvider.java | 556 +++++ .../java/com/hfkj/entity/BsTradeSettle.java | 493 ++++ .../com/hfkj/entity/BsTradeSettleExample.java | 2061 +++++++++++++++++ .../hfkj/service/BsTradeSettleService.java | 35 + .../impl/BsTradeSettleServiceImpl.java | 41 + 7 files changed, 3383 insertions(+) create mode 100644 service/src/main/java/com/hfkj/dao/BsTradeSettleMapper.java create mode 100644 service/src/main/java/com/hfkj/dao/BsTradeSettleMapperExt.java create mode 100644 service/src/main/java/com/hfkj/dao/BsTradeSettleSqlProvider.java create mode 100644 service/src/main/java/com/hfkj/entity/BsTradeSettle.java create mode 100644 service/src/main/java/com/hfkj/entity/BsTradeSettleExample.java create mode 100644 service/src/main/java/com/hfkj/service/BsTradeSettleService.java create mode 100644 service/src/main/java/com/hfkj/service/impl/BsTradeSettleServiceImpl.java diff --git a/service/src/main/java/com/hfkj/dao/BsTradeSettleMapper.java b/service/src/main/java/com/hfkj/dao/BsTradeSettleMapper.java new file mode 100644 index 0000000..cf73e90 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsTradeSettleMapper.java @@ -0,0 +1,190 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsTradeSettle; +import com.hfkj.entity.BsTradeSettleExample; +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 BsTradeSettleMapper extends BsTradeSettleMapperExt { + @SelectProvider(type=BsTradeSettleSqlProvider.class, method="countByExample") + long countByExample(BsTradeSettleExample example); + + @DeleteProvider(type=BsTradeSettleSqlProvider.class, method="deleteByExample") + int deleteByExample(BsTradeSettleExample example); + + @Delete({ + "delete from bs_trade_settle", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into bs_trade_settle (company_id, agent_id, ", + "salesman_id, salesman_name, ", + "mer_id, mer_name, mer_abbreviate, ", + "mer_no, store_id, store_name, ", + "platform_type, platform_mer_no, ", + "platform_trade_no, platform_log_no, ", + "pay_mode, out_trade_no, ", + "trade_type, trade_amount, ", + "trade_time, shd_fee_amt, ", + "settle_amount, settle_date, ", + "fee_rate, create_time, ", + "ext_1, ext_2, ext_3)", + "values (#{companyId,jdbcType=BIGINT}, #{agentId,jdbcType=BIGINT}, ", + "#{salesmanId,jdbcType=BIGINT}, #{salesmanName,jdbcType=VARCHAR}, ", + "#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{merAbbreviate,jdbcType=VARCHAR}, ", + "#{merNo,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ", + "#{platformType,jdbcType=INTEGER}, #{platformMerNo,jdbcType=VARCHAR}, ", + "#{platformTradeNo,jdbcType=VARCHAR}, #{platformLogNo,jdbcType=VARCHAR}, ", + "#{payMode,jdbcType=VARCHAR}, #{outTradeNo,jdbcType=VARCHAR}, ", + "#{tradeType,jdbcType=INTEGER}, #{tradeAmount,jdbcType=DECIMAL}, ", + "#{tradeTime,jdbcType=TIMESTAMP}, #{shdFeeAmt,jdbcType=DECIMAL}, ", + "#{settleAmount,jdbcType=DECIMAL}, #{settleDate,jdbcType=DATE}, ", + "#{feeRate,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(BsTradeSettle record); + + @InsertProvider(type=BsTradeSettleSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(BsTradeSettle record); + + @SelectProvider(type=BsTradeSettleSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), + @Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), + @Result(column="salesman_id", property="salesmanId", jdbcType=JdbcType.BIGINT), + @Result(column="salesman_name", property="salesmanName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), + @Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_abbreviate", property="merAbbreviate", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR), + @Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), + @Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), + @Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), + @Result(column="platform_mer_no", property="platformMerNo", jdbcType=JdbcType.VARCHAR), + @Result(column="platform_trade_no", property="platformTradeNo", jdbcType=JdbcType.VARCHAR), + @Result(column="platform_log_no", property="platformLogNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_mode", property="payMode", jdbcType=JdbcType.VARCHAR), + @Result(column="out_trade_no", property="outTradeNo", jdbcType=JdbcType.VARCHAR), + @Result(column="trade_type", property="tradeType", jdbcType=JdbcType.INTEGER), + @Result(column="trade_amount", property="tradeAmount", jdbcType=JdbcType.DECIMAL), + @Result(column="trade_time", property="tradeTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="shd_fee_amt", property="shdFeeAmt", jdbcType=JdbcType.DECIMAL), + @Result(column="settle_amount", property="settleAmount", jdbcType=JdbcType.DECIMAL), + @Result(column="settle_date", property="settleDate", jdbcType=JdbcType.DATE), + @Result(column="fee_rate", property="feeRate", jdbcType=JdbcType.DECIMAL), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @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(BsTradeSettleExample example); + + @Select({ + "select", + "id, company_id, agent_id, salesman_id, salesman_name, mer_id, mer_name, mer_abbreviate, ", + "mer_no, store_id, store_name, platform_type, platform_mer_no, platform_trade_no, ", + "platform_log_no, pay_mode, out_trade_no, trade_type, trade_amount, trade_time, ", + "shd_fee_amt, settle_amount, settle_date, fee_rate, create_time, ext_1, ext_2, ", + "ext_3", + "from bs_trade_settle", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), + @Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), + @Result(column="salesman_id", property="salesmanId", jdbcType=JdbcType.BIGINT), + @Result(column="salesman_name", property="salesmanName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), + @Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_abbreviate", property="merAbbreviate", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR), + @Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), + @Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), + @Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), + @Result(column="platform_mer_no", property="platformMerNo", jdbcType=JdbcType.VARCHAR), + @Result(column="platform_trade_no", property="platformTradeNo", jdbcType=JdbcType.VARCHAR), + @Result(column="platform_log_no", property="platformLogNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_mode", property="payMode", jdbcType=JdbcType.VARCHAR), + @Result(column="out_trade_no", property="outTradeNo", jdbcType=JdbcType.VARCHAR), + @Result(column="trade_type", property="tradeType", jdbcType=JdbcType.INTEGER), + @Result(column="trade_amount", property="tradeAmount", jdbcType=JdbcType.DECIMAL), + @Result(column="trade_time", property="tradeTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="shd_fee_amt", property="shdFeeAmt", jdbcType=JdbcType.DECIMAL), + @Result(column="settle_amount", property="settleAmount", jdbcType=JdbcType.DECIMAL), + @Result(column="settle_date", property="settleDate", jdbcType=JdbcType.DATE), + @Result(column="fee_rate", property="feeRate", jdbcType=JdbcType.DECIMAL), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @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) + }) + BsTradeSettle selectByPrimaryKey(Long id); + + @UpdateProvider(type=BsTradeSettleSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") BsTradeSettle record, @Param("example") BsTradeSettleExample example); + + @UpdateProvider(type=BsTradeSettleSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") BsTradeSettle record, @Param("example") BsTradeSettleExample example); + + @UpdateProvider(type=BsTradeSettleSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(BsTradeSettle record); + + @Update({ + "update bs_trade_settle", + "set company_id = #{companyId,jdbcType=BIGINT},", + "agent_id = #{agentId,jdbcType=BIGINT},", + "salesman_id = #{salesmanId,jdbcType=BIGINT},", + "salesman_name = #{salesmanName,jdbcType=VARCHAR},", + "mer_id = #{merId,jdbcType=BIGINT},", + "mer_name = #{merName,jdbcType=VARCHAR},", + "mer_abbreviate = #{merAbbreviate,jdbcType=VARCHAR},", + "mer_no = #{merNo,jdbcType=VARCHAR},", + "store_id = #{storeId,jdbcType=BIGINT},", + "store_name = #{storeName,jdbcType=VARCHAR},", + "platform_type = #{platformType,jdbcType=INTEGER},", + "platform_mer_no = #{platformMerNo,jdbcType=VARCHAR},", + "platform_trade_no = #{platformTradeNo,jdbcType=VARCHAR},", + "platform_log_no = #{platformLogNo,jdbcType=VARCHAR},", + "pay_mode = #{payMode,jdbcType=VARCHAR},", + "out_trade_no = #{outTradeNo,jdbcType=VARCHAR},", + "trade_type = #{tradeType,jdbcType=INTEGER},", + "trade_amount = #{tradeAmount,jdbcType=DECIMAL},", + "trade_time = #{tradeTime,jdbcType=TIMESTAMP},", + "shd_fee_amt = #{shdFeeAmt,jdbcType=DECIMAL},", + "settle_amount = #{settleAmount,jdbcType=DECIMAL},", + "settle_date = #{settleDate,jdbcType=DATE},", + "fee_rate = #{feeRate,jdbcType=DECIMAL},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(BsTradeSettle record); +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsTradeSettleMapperExt.java b/service/src/main/java/com/hfkj/dao/BsTradeSettleMapperExt.java new file mode 100644 index 0000000..7a55ecc --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsTradeSettleMapperExt.java @@ -0,0 +1,7 @@ +package com.hfkj.dao; + +/** + * mapper扩展类 + */ +public interface BsTradeSettleMapperExt { +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsTradeSettleSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsTradeSettleSqlProvider.java new file mode 100644 index 0000000..d542234 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsTradeSettleSqlProvider.java @@ -0,0 +1,556 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsTradeSettle; +import com.hfkj.entity.BsTradeSettleExample.Criteria; +import com.hfkj.entity.BsTradeSettleExample.Criterion; +import com.hfkj.entity.BsTradeSettleExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class BsTradeSettleSqlProvider { + + public String countByExample(BsTradeSettleExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("bs_trade_settle"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(BsTradeSettleExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("bs_trade_settle"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(BsTradeSettle record) { + SQL sql = new SQL(); + sql.INSERT_INTO("bs_trade_settle"); + + if (record.getCompanyId() != null) { + sql.VALUES("company_id", "#{companyId,jdbcType=BIGINT}"); + } + + if (record.getAgentId() != null) { + sql.VALUES("agent_id", "#{agentId,jdbcType=BIGINT}"); + } + + if (record.getSalesmanId() != null) { + sql.VALUES("salesman_id", "#{salesmanId,jdbcType=BIGINT}"); + } + + if (record.getSalesmanName() != null) { + sql.VALUES("salesman_name", "#{salesmanName,jdbcType=VARCHAR}"); + } + + if (record.getMerId() != null) { + sql.VALUES("mer_id", "#{merId,jdbcType=BIGINT}"); + } + + if (record.getMerName() != null) { + sql.VALUES("mer_name", "#{merName,jdbcType=VARCHAR}"); + } + + if (record.getMerAbbreviate() != null) { + sql.VALUES("mer_abbreviate", "#{merAbbreviate,jdbcType=VARCHAR}"); + } + + if (record.getMerNo() != null) { + sql.VALUES("mer_no", "#{merNo,jdbcType=VARCHAR}"); + } + + if (record.getStoreId() != null) { + sql.VALUES("store_id", "#{storeId,jdbcType=BIGINT}"); + } + + if (record.getStoreName() != null) { + sql.VALUES("store_name", "#{storeName,jdbcType=VARCHAR}"); + } + + if (record.getPlatformType() != null) { + sql.VALUES("platform_type", "#{platformType,jdbcType=INTEGER}"); + } + + if (record.getPlatformMerNo() != null) { + sql.VALUES("platform_mer_no", "#{platformMerNo,jdbcType=VARCHAR}"); + } + + if (record.getPlatformTradeNo() != null) { + sql.VALUES("platform_trade_no", "#{platformTradeNo,jdbcType=VARCHAR}"); + } + + if (record.getPlatformLogNo() != null) { + sql.VALUES("platform_log_no", "#{platformLogNo,jdbcType=VARCHAR}"); + } + + if (record.getPayMode() != null) { + sql.VALUES("pay_mode", "#{payMode,jdbcType=VARCHAR}"); + } + + if (record.getOutTradeNo() != null) { + sql.VALUES("out_trade_no", "#{outTradeNo,jdbcType=VARCHAR}"); + } + + if (record.getTradeType() != null) { + sql.VALUES("trade_type", "#{tradeType,jdbcType=INTEGER}"); + } + + if (record.getTradeAmount() != null) { + sql.VALUES("trade_amount", "#{tradeAmount,jdbcType=DECIMAL}"); + } + + if (record.getTradeTime() != null) { + sql.VALUES("trade_time", "#{tradeTime,jdbcType=TIMESTAMP}"); + } + + if (record.getShdFeeAmt() != null) { + sql.VALUES("shd_fee_amt", "#{shdFeeAmt,jdbcType=DECIMAL}"); + } + + if (record.getSettleAmount() != null) { + sql.VALUES("settle_amount", "#{settleAmount,jdbcType=DECIMAL}"); + } + + if (record.getSettleDate() != null) { + sql.VALUES("settle_date", "#{settleDate,jdbcType=DATE}"); + } + + if (record.getFeeRate() != null) { + sql.VALUES("fee_rate", "#{feeRate,jdbcType=DECIMAL}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + 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(BsTradeSettleExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("company_id"); + sql.SELECT("agent_id"); + sql.SELECT("salesman_id"); + sql.SELECT("salesman_name"); + sql.SELECT("mer_id"); + sql.SELECT("mer_name"); + sql.SELECT("mer_abbreviate"); + sql.SELECT("mer_no"); + sql.SELECT("store_id"); + sql.SELECT("store_name"); + sql.SELECT("platform_type"); + sql.SELECT("platform_mer_no"); + sql.SELECT("platform_trade_no"); + sql.SELECT("platform_log_no"); + sql.SELECT("pay_mode"); + sql.SELECT("out_trade_no"); + sql.SELECT("trade_type"); + sql.SELECT("trade_amount"); + sql.SELECT("trade_time"); + sql.SELECT("shd_fee_amt"); + sql.SELECT("settle_amount"); + sql.SELECT("settle_date"); + sql.SELECT("fee_rate"); + sql.SELECT("create_time"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("bs_trade_settle"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + BsTradeSettle record = (BsTradeSettle) parameter.get("record"); + BsTradeSettleExample example = (BsTradeSettleExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("bs_trade_settle"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getCompanyId() != null) { + sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); + } + + if (record.getAgentId() != null) { + sql.SET("agent_id = #{record.agentId,jdbcType=BIGINT}"); + } + + if (record.getSalesmanId() != null) { + sql.SET("salesman_id = #{record.salesmanId,jdbcType=BIGINT}"); + } + + if (record.getSalesmanName() != null) { + sql.SET("salesman_name = #{record.salesmanName,jdbcType=VARCHAR}"); + } + + if (record.getMerId() != null) { + sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); + } + + if (record.getMerName() != null) { + sql.SET("mer_name = #{record.merName,jdbcType=VARCHAR}"); + } + + if (record.getMerAbbreviate() != null) { + sql.SET("mer_abbreviate = #{record.merAbbreviate,jdbcType=VARCHAR}"); + } + + if (record.getMerNo() != null) { + sql.SET("mer_no = #{record.merNo,jdbcType=VARCHAR}"); + } + + if (record.getStoreId() != null) { + sql.SET("store_id = #{record.storeId,jdbcType=BIGINT}"); + } + + if (record.getStoreName() != null) { + sql.SET("store_name = #{record.storeName,jdbcType=VARCHAR}"); + } + + if (record.getPlatformType() != null) { + sql.SET("platform_type = #{record.platformType,jdbcType=INTEGER}"); + } + + if (record.getPlatformMerNo() != null) { + sql.SET("platform_mer_no = #{record.platformMerNo,jdbcType=VARCHAR}"); + } + + if (record.getPlatformTradeNo() != null) { + sql.SET("platform_trade_no = #{record.platformTradeNo,jdbcType=VARCHAR}"); + } + + if (record.getPlatformLogNo() != null) { + sql.SET("platform_log_no = #{record.platformLogNo,jdbcType=VARCHAR}"); + } + + if (record.getPayMode() != null) { + sql.SET("pay_mode = #{record.payMode,jdbcType=VARCHAR}"); + } + + if (record.getOutTradeNo() != null) { + sql.SET("out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR}"); + } + + if (record.getTradeType() != null) { + sql.SET("trade_type = #{record.tradeType,jdbcType=INTEGER}"); + } + + if (record.getTradeAmount() != null) { + sql.SET("trade_amount = #{record.tradeAmount,jdbcType=DECIMAL}"); + } + + if (record.getTradeTime() != null) { + sql.SET("trade_time = #{record.tradeTime,jdbcType=TIMESTAMP}"); + } + + if (record.getShdFeeAmt() != null) { + sql.SET("shd_fee_amt = #{record.shdFeeAmt,jdbcType=DECIMAL}"); + } + + if (record.getSettleAmount() != null) { + sql.SET("settle_amount = #{record.settleAmount,jdbcType=DECIMAL}"); + } + + if (record.getSettleDate() != null) { + sql.SET("settle_date = #{record.settleDate,jdbcType=DATE}"); + } + + if (record.getFeeRate() != null) { + sql.SET("fee_rate = #{record.feeRate,jdbcType=DECIMAL}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + 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("bs_trade_settle"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); + sql.SET("agent_id = #{record.agentId,jdbcType=BIGINT}"); + sql.SET("salesman_id = #{record.salesmanId,jdbcType=BIGINT}"); + sql.SET("salesman_name = #{record.salesmanName,jdbcType=VARCHAR}"); + sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); + sql.SET("mer_name = #{record.merName,jdbcType=VARCHAR}"); + sql.SET("mer_abbreviate = #{record.merAbbreviate,jdbcType=VARCHAR}"); + sql.SET("mer_no = #{record.merNo,jdbcType=VARCHAR}"); + sql.SET("store_id = #{record.storeId,jdbcType=BIGINT}"); + sql.SET("store_name = #{record.storeName,jdbcType=VARCHAR}"); + sql.SET("platform_type = #{record.platformType,jdbcType=INTEGER}"); + sql.SET("platform_mer_no = #{record.platformMerNo,jdbcType=VARCHAR}"); + sql.SET("platform_trade_no = #{record.platformTradeNo,jdbcType=VARCHAR}"); + sql.SET("platform_log_no = #{record.platformLogNo,jdbcType=VARCHAR}"); + sql.SET("pay_mode = #{record.payMode,jdbcType=VARCHAR}"); + sql.SET("out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR}"); + sql.SET("trade_type = #{record.tradeType,jdbcType=INTEGER}"); + sql.SET("trade_amount = #{record.tradeAmount,jdbcType=DECIMAL}"); + sql.SET("trade_time = #{record.tradeTime,jdbcType=TIMESTAMP}"); + sql.SET("shd_fee_amt = #{record.shdFeeAmt,jdbcType=DECIMAL}"); + sql.SET("settle_amount = #{record.settleAmount,jdbcType=DECIMAL}"); + sql.SET("settle_date = #{record.settleDate,jdbcType=DATE}"); + sql.SET("fee_rate = #{record.feeRate,jdbcType=DECIMAL}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + BsTradeSettleExample example = (BsTradeSettleExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(BsTradeSettle record) { + SQL sql = new SQL(); + sql.UPDATE("bs_trade_settle"); + + if (record.getCompanyId() != null) { + sql.SET("company_id = #{companyId,jdbcType=BIGINT}"); + } + + if (record.getAgentId() != null) { + sql.SET("agent_id = #{agentId,jdbcType=BIGINT}"); + } + + if (record.getSalesmanId() != null) { + sql.SET("salesman_id = #{salesmanId,jdbcType=BIGINT}"); + } + + if (record.getSalesmanName() != null) { + sql.SET("salesman_name = #{salesmanName,jdbcType=VARCHAR}"); + } + + if (record.getMerId() != null) { + sql.SET("mer_id = #{merId,jdbcType=BIGINT}"); + } + + if (record.getMerName() != null) { + sql.SET("mer_name = #{merName,jdbcType=VARCHAR}"); + } + + if (record.getMerAbbreviate() != null) { + sql.SET("mer_abbreviate = #{merAbbreviate,jdbcType=VARCHAR}"); + } + + if (record.getMerNo() != null) { + sql.SET("mer_no = #{merNo,jdbcType=VARCHAR}"); + } + + if (record.getStoreId() != null) { + sql.SET("store_id = #{storeId,jdbcType=BIGINT}"); + } + + if (record.getStoreName() != null) { + sql.SET("store_name = #{storeName,jdbcType=VARCHAR}"); + } + + if (record.getPlatformType() != null) { + sql.SET("platform_type = #{platformType,jdbcType=INTEGER}"); + } + + if (record.getPlatformMerNo() != null) { + sql.SET("platform_mer_no = #{platformMerNo,jdbcType=VARCHAR}"); + } + + if (record.getPlatformTradeNo() != null) { + sql.SET("platform_trade_no = #{platformTradeNo,jdbcType=VARCHAR}"); + } + + if (record.getPlatformLogNo() != null) { + sql.SET("platform_log_no = #{platformLogNo,jdbcType=VARCHAR}"); + } + + if (record.getPayMode() != null) { + sql.SET("pay_mode = #{payMode,jdbcType=VARCHAR}"); + } + + if (record.getOutTradeNo() != null) { + sql.SET("out_trade_no = #{outTradeNo,jdbcType=VARCHAR}"); + } + + if (record.getTradeType() != null) { + sql.SET("trade_type = #{tradeType,jdbcType=INTEGER}"); + } + + if (record.getTradeAmount() != null) { + sql.SET("trade_amount = #{tradeAmount,jdbcType=DECIMAL}"); + } + + if (record.getTradeTime() != null) { + sql.SET("trade_time = #{tradeTime,jdbcType=TIMESTAMP}"); + } + + if (record.getShdFeeAmt() != null) { + sql.SET("shd_fee_amt = #{shdFeeAmt,jdbcType=DECIMAL}"); + } + + if (record.getSettleAmount() != null) { + sql.SET("settle_amount = #{settleAmount,jdbcType=DECIMAL}"); + } + + if (record.getSettleDate() != null) { + sql.SET("settle_date = #{settleDate,jdbcType=DATE}"); + } + + if (record.getFeeRate() != null) { + sql.SET("fee_rate = #{feeRate,jdbcType=DECIMAL}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, BsTradeSettleExample 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/service/src/main/java/com/hfkj/entity/BsTradeSettle.java b/service/src/main/java/com/hfkj/entity/BsTradeSettle.java new file mode 100644 index 0000000..42c53a6 --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsTradeSettle.java @@ -0,0 +1,493 @@ +package com.hfkj.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * bs_trade_settle + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class BsTradeSettle implements Serializable { + /** + * 主键 + */ + private Long id; + + /** + * 公司id + */ + private Long companyId; + + /** + * 代理商id + */ + private Long agentId; + + /** + * 业务员id + */ + private Long salesmanId; + + /** + * 业务员名称 + */ + private String salesmanName; + + /** + * 商户id + */ + private Long merId; + + /** + * 商户名称 + */ + private String merName; + + /** + * 商户简称 + */ + private String merAbbreviate; + + /** + * 商户号 + */ + private String merNo; + + /** + * 门店id + */ + private Long storeId; + + /** + * 门店名称 + */ + private String storeName; + + /** + * 平台类型 1:拉卡拉 + */ + private Integer platformType; + + /** + * 平台商户号 + */ + private String platformMerNo; + + /** + * 平台流水号 + */ + private String platformTradeNo; + + /** + * 平台对账单流水号 + */ + private String platformLogNo; + + /** + * 支付模式: +微信:WECHAT +支付宝:ALIPAY +银联:UQRCODEPAY +【建行】龙支付:DRAGON + */ + private String payMode; + + /** + * 商户交易流水 + */ + private String outTradeNo; + + /** + * 交易类型 1:支付 2:退款 + */ + private Integer tradeType; + + /** + * 交易金额 + */ + private BigDecimal tradeAmount; + + /** + * 交易时间 + */ + private Date tradeTime; + + /** + * 交易手续费 + */ + private BigDecimal shdFeeAmt; + + /** + * 结算金额 + */ + private BigDecimal settleAmount; + + /** + * 结算日期 + */ + private Date settleDate; + + /** + * 费率 + */ + private BigDecimal feeRate; + + /** + * 创建时间 + */ + private Date createTime; + + private String ext1; + + private String ext2; + + private String ext3; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getAgentId() { + return agentId; + } + + public void setAgentId(Long agentId) { + this.agentId = agentId; + } + + public Long getSalesmanId() { + return salesmanId; + } + + public void setSalesmanId(Long salesmanId) { + this.salesmanId = salesmanId; + } + + public String getSalesmanName() { + return salesmanName; + } + + public void setSalesmanName(String salesmanName) { + this.salesmanName = salesmanName; + } + + public Long getMerId() { + return merId; + } + + public void setMerId(Long merId) { + this.merId = merId; + } + + public String getMerName() { + return merName; + } + + public void setMerName(String merName) { + this.merName = merName; + } + + public String getMerAbbreviate() { + return merAbbreviate; + } + + public void setMerAbbreviate(String merAbbreviate) { + this.merAbbreviate = merAbbreviate; + } + + public String getMerNo() { + return merNo; + } + + public void setMerNo(String merNo) { + this.merNo = merNo; + } + + public Long getStoreId() { + return storeId; + } + + public void setStoreId(Long storeId) { + this.storeId = storeId; + } + + public String getStoreName() { + return storeName; + } + + public void setStoreName(String storeName) { + this.storeName = storeName; + } + + public Integer getPlatformType() { + return platformType; + } + + public void setPlatformType(Integer platformType) { + this.platformType = platformType; + } + + public String getPlatformMerNo() { + return platformMerNo; + } + + public void setPlatformMerNo(String platformMerNo) { + this.platformMerNo = platformMerNo; + } + + public String getPlatformTradeNo() { + return platformTradeNo; + } + + public void setPlatformTradeNo(String platformTradeNo) { + this.platformTradeNo = platformTradeNo; + } + + public String getPlatformLogNo() { + return platformLogNo; + } + + public void setPlatformLogNo(String platformLogNo) { + this.platformLogNo = platformLogNo; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public String getOutTradeNo() { + return outTradeNo; + } + + public void setOutTradeNo(String outTradeNo) { + this.outTradeNo = outTradeNo; + } + + public Integer getTradeType() { + return tradeType; + } + + public void setTradeType(Integer tradeType) { + this.tradeType = tradeType; + } + + public BigDecimal getTradeAmount() { + return tradeAmount; + } + + public void setTradeAmount(BigDecimal tradeAmount) { + this.tradeAmount = tradeAmount; + } + + public Date getTradeTime() { + return tradeTime; + } + + public void setTradeTime(Date tradeTime) { + this.tradeTime = tradeTime; + } + + public BigDecimal getShdFeeAmt() { + return shdFeeAmt; + } + + public void setShdFeeAmt(BigDecimal shdFeeAmt) { + this.shdFeeAmt = shdFeeAmt; + } + + public BigDecimal getSettleAmount() { + return settleAmount; + } + + public void setSettleAmount(BigDecimal settleAmount) { + this.settleAmount = settleAmount; + } + + public Date getSettleDate() { + return settleDate; + } + + public void setSettleDate(Date settleDate) { + this.settleDate = settleDate; + } + + public BigDecimal getFeeRate() { + return feeRate; + } + + public void setFeeRate(BigDecimal feeRate) { + this.feeRate = feeRate; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + 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; + } + BsTradeSettle other = (BsTradeSettle) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) + && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId())) + && (this.getSalesmanId() == null ? other.getSalesmanId() == null : this.getSalesmanId().equals(other.getSalesmanId())) + && (this.getSalesmanName() == null ? other.getSalesmanName() == null : this.getSalesmanName().equals(other.getSalesmanName())) + && (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId())) + && (this.getMerName() == null ? other.getMerName() == null : this.getMerName().equals(other.getMerName())) + && (this.getMerAbbreviate() == null ? other.getMerAbbreviate() == null : this.getMerAbbreviate().equals(other.getMerAbbreviate())) + && (this.getMerNo() == null ? other.getMerNo() == null : this.getMerNo().equals(other.getMerNo())) + && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId())) + && (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName())) + && (this.getPlatformType() == null ? other.getPlatformType() == null : this.getPlatformType().equals(other.getPlatformType())) + && (this.getPlatformMerNo() == null ? other.getPlatformMerNo() == null : this.getPlatformMerNo().equals(other.getPlatformMerNo())) + && (this.getPlatformTradeNo() == null ? other.getPlatformTradeNo() == null : this.getPlatformTradeNo().equals(other.getPlatformTradeNo())) + && (this.getPlatformLogNo() == null ? other.getPlatformLogNo() == null : this.getPlatformLogNo().equals(other.getPlatformLogNo())) + && (this.getPayMode() == null ? other.getPayMode() == null : this.getPayMode().equals(other.getPayMode())) + && (this.getOutTradeNo() == null ? other.getOutTradeNo() == null : this.getOutTradeNo().equals(other.getOutTradeNo())) + && (this.getTradeType() == null ? other.getTradeType() == null : this.getTradeType().equals(other.getTradeType())) + && (this.getTradeAmount() == null ? other.getTradeAmount() == null : this.getTradeAmount().equals(other.getTradeAmount())) + && (this.getTradeTime() == null ? other.getTradeTime() == null : this.getTradeTime().equals(other.getTradeTime())) + && (this.getShdFeeAmt() == null ? other.getShdFeeAmt() == null : this.getShdFeeAmt().equals(other.getShdFeeAmt())) + && (this.getSettleAmount() == null ? other.getSettleAmount() == null : this.getSettleAmount().equals(other.getSettleAmount())) + && (this.getSettleDate() == null ? other.getSettleDate() == null : this.getSettleDate().equals(other.getSettleDate())) + && (this.getFeeRate() == null ? other.getFeeRate() == null : this.getFeeRate().equals(other.getFeeRate())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (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 + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); + result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); + result = prime * result + ((getSalesmanId() == null) ? 0 : getSalesmanId().hashCode()); + result = prime * result + ((getSalesmanName() == null) ? 0 : getSalesmanName().hashCode()); + result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode()); + result = prime * result + ((getMerName() == null) ? 0 : getMerName().hashCode()); + result = prime * result + ((getMerAbbreviate() == null) ? 0 : getMerAbbreviate().hashCode()); + result = prime * result + ((getMerNo() == null) ? 0 : getMerNo().hashCode()); + result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode()); + result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode()); + result = prime * result + ((getPlatformType() == null) ? 0 : getPlatformType().hashCode()); + result = prime * result + ((getPlatformMerNo() == null) ? 0 : getPlatformMerNo().hashCode()); + result = prime * result + ((getPlatformTradeNo() == null) ? 0 : getPlatformTradeNo().hashCode()); + result = prime * result + ((getPlatformLogNo() == null) ? 0 : getPlatformLogNo().hashCode()); + result = prime * result + ((getPayMode() == null) ? 0 : getPayMode().hashCode()); + result = prime * result + ((getOutTradeNo() == null) ? 0 : getOutTradeNo().hashCode()); + result = prime * result + ((getTradeType() == null) ? 0 : getTradeType().hashCode()); + result = prime * result + ((getTradeAmount() == null) ? 0 : getTradeAmount().hashCode()); + result = prime * result + ((getTradeTime() == null) ? 0 : getTradeTime().hashCode()); + result = prime * result + ((getShdFeeAmt() == null) ? 0 : getShdFeeAmt().hashCode()); + result = prime * result + ((getSettleAmount() == null) ? 0 : getSettleAmount().hashCode()); + result = prime * result + ((getSettleDate() == null) ? 0 : getSettleDate().hashCode()); + result = prime * result + ((getFeeRate() == null) ? 0 : getFeeRate().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().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(", companyId=").append(companyId); + sb.append(", agentId=").append(agentId); + sb.append(", salesmanId=").append(salesmanId); + sb.append(", salesmanName=").append(salesmanName); + sb.append(", merId=").append(merId); + sb.append(", merName=").append(merName); + sb.append(", merAbbreviate=").append(merAbbreviate); + sb.append(", merNo=").append(merNo); + sb.append(", storeId=").append(storeId); + sb.append(", storeName=").append(storeName); + sb.append(", platformType=").append(platformType); + sb.append(", platformMerNo=").append(platformMerNo); + sb.append(", platformTradeNo=").append(platformTradeNo); + sb.append(", platformLogNo=").append(platformLogNo); + sb.append(", payMode=").append(payMode); + sb.append(", outTradeNo=").append(outTradeNo); + sb.append(", tradeType=").append(tradeType); + sb.append(", tradeAmount=").append(tradeAmount); + sb.append(", tradeTime=").append(tradeTime); + sb.append(", shdFeeAmt=").append(shdFeeAmt); + sb.append(", settleAmount=").append(settleAmount); + sb.append(", settleDate=").append(settleDate); + sb.append(", feeRate=").append(feeRate); + sb.append(", createTime=").append(createTime); + 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/service/src/main/java/com/hfkj/entity/BsTradeSettleExample.java b/service/src/main/java/com/hfkj/entity/BsTradeSettleExample.java new file mode 100644 index 0000000..b56d94d --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsTradeSettleExample.java @@ -0,0 +1,2061 @@ +package com.hfkj.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class BsTradeSettleExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public BsTradeSettleExample() { + 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)); + } + + protected void addCriterionForJDBCDate(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value.getTime()), property); + } + + protected void addCriterionForJDBCDate(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List dateList = new ArrayList(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + dateList.add(new java.sql.Date(iter.next().getTime())); + } + addCriterion(condition, dateList, property); + } + + protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andAgentIdIsNull() { + addCriterion("agent_id is null"); + return (Criteria) this; + } + + public Criteria andAgentIdIsNotNull() { + addCriterion("agent_id is not null"); + return (Criteria) this; + } + + public Criteria andAgentIdEqualTo(Long value) { + addCriterion("agent_id =", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotEqualTo(Long value) { + addCriterion("agent_id <>", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdGreaterThan(Long value) { + addCriterion("agent_id >", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdGreaterThanOrEqualTo(Long value) { + addCriterion("agent_id >=", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdLessThan(Long value) { + addCriterion("agent_id <", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdLessThanOrEqualTo(Long value) { + addCriterion("agent_id <=", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdIn(List values) { + addCriterion("agent_id in", values, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotIn(List values) { + addCriterion("agent_id not in", values, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdBetween(Long value1, Long value2) { + addCriterion("agent_id between", value1, value2, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotBetween(Long value1, Long value2) { + addCriterion("agent_id not between", value1, value2, "agentId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdIsNull() { + addCriterion("salesman_id is null"); + return (Criteria) this; + } + + public Criteria andSalesmanIdIsNotNull() { + addCriterion("salesman_id is not null"); + return (Criteria) this; + } + + public Criteria andSalesmanIdEqualTo(Long value) { + addCriterion("salesman_id =", value, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdNotEqualTo(Long value) { + addCriterion("salesman_id <>", value, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdGreaterThan(Long value) { + addCriterion("salesman_id >", value, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdGreaterThanOrEqualTo(Long value) { + addCriterion("salesman_id >=", value, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdLessThan(Long value) { + addCriterion("salesman_id <", value, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdLessThanOrEqualTo(Long value) { + addCriterion("salesman_id <=", value, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdIn(List values) { + addCriterion("salesman_id in", values, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdNotIn(List values) { + addCriterion("salesman_id not in", values, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdBetween(Long value1, Long value2) { + addCriterion("salesman_id between", value1, value2, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanIdNotBetween(Long value1, Long value2) { + addCriterion("salesman_id not between", value1, value2, "salesmanId"); + return (Criteria) this; + } + + public Criteria andSalesmanNameIsNull() { + addCriterion("salesman_name is null"); + return (Criteria) this; + } + + public Criteria andSalesmanNameIsNotNull() { + addCriterion("salesman_name is not null"); + return (Criteria) this; + } + + public Criteria andSalesmanNameEqualTo(String value) { + addCriterion("salesman_name =", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameNotEqualTo(String value) { + addCriterion("salesman_name <>", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameGreaterThan(String value) { + addCriterion("salesman_name >", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameGreaterThanOrEqualTo(String value) { + addCriterion("salesman_name >=", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameLessThan(String value) { + addCriterion("salesman_name <", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameLessThanOrEqualTo(String value) { + addCriterion("salesman_name <=", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameLike(String value) { + addCriterion("salesman_name like", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameNotLike(String value) { + addCriterion("salesman_name not like", value, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameIn(List values) { + addCriterion("salesman_name in", values, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameNotIn(List values) { + addCriterion("salesman_name not in", values, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameBetween(String value1, String value2) { + addCriterion("salesman_name between", value1, value2, "salesmanName"); + return (Criteria) this; + } + + public Criteria andSalesmanNameNotBetween(String value1, String value2) { + addCriterion("salesman_name not between", value1, value2, "salesmanName"); + return (Criteria) this; + } + + public Criteria andMerIdIsNull() { + addCriterion("mer_id is null"); + return (Criteria) this; + } + + public Criteria andMerIdIsNotNull() { + addCriterion("mer_id is not null"); + return (Criteria) this; + } + + public Criteria andMerIdEqualTo(Long value) { + addCriterion("mer_id =", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdNotEqualTo(Long value) { + addCriterion("mer_id <>", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdGreaterThan(Long value) { + addCriterion("mer_id >", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdGreaterThanOrEqualTo(Long value) { + addCriterion("mer_id >=", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdLessThan(Long value) { + addCriterion("mer_id <", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdLessThanOrEqualTo(Long value) { + addCriterion("mer_id <=", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdIn(List values) { + addCriterion("mer_id in", values, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdNotIn(List values) { + addCriterion("mer_id not in", values, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdBetween(Long value1, Long value2) { + addCriterion("mer_id between", value1, value2, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdNotBetween(Long value1, Long value2) { + addCriterion("mer_id not between", value1, value2, "merId"); + return (Criteria) this; + } + + public Criteria andMerNameIsNull() { + addCriterion("mer_name is null"); + return (Criteria) this; + } + + public Criteria andMerNameIsNotNull() { + addCriterion("mer_name is not null"); + return (Criteria) this; + } + + public Criteria andMerNameEqualTo(String value) { + addCriterion("mer_name =", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotEqualTo(String value) { + addCriterion("mer_name <>", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameGreaterThan(String value) { + addCriterion("mer_name >", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameGreaterThanOrEqualTo(String value) { + addCriterion("mer_name >=", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameLessThan(String value) { + addCriterion("mer_name <", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameLessThanOrEqualTo(String value) { + addCriterion("mer_name <=", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameLike(String value) { + addCriterion("mer_name like", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotLike(String value) { + addCriterion("mer_name not like", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameIn(List values) { + addCriterion("mer_name in", values, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotIn(List values) { + addCriterion("mer_name not in", values, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameBetween(String value1, String value2) { + addCriterion("mer_name between", value1, value2, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotBetween(String value1, String value2) { + addCriterion("mer_name not between", value1, value2, "merName"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateIsNull() { + addCriterion("mer_abbreviate is null"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateIsNotNull() { + addCriterion("mer_abbreviate is not null"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateEqualTo(String value) { + addCriterion("mer_abbreviate =", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateNotEqualTo(String value) { + addCriterion("mer_abbreviate <>", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateGreaterThan(String value) { + addCriterion("mer_abbreviate >", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateGreaterThanOrEqualTo(String value) { + addCriterion("mer_abbreviate >=", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateLessThan(String value) { + addCriterion("mer_abbreviate <", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateLessThanOrEqualTo(String value) { + addCriterion("mer_abbreviate <=", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateLike(String value) { + addCriterion("mer_abbreviate like", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateNotLike(String value) { + addCriterion("mer_abbreviate not like", value, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateIn(List values) { + addCriterion("mer_abbreviate in", values, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateNotIn(List values) { + addCriterion("mer_abbreviate not in", values, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateBetween(String value1, String value2) { + addCriterion("mer_abbreviate between", value1, value2, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerAbbreviateNotBetween(String value1, String value2) { + addCriterion("mer_abbreviate not between", value1, value2, "merAbbreviate"); + return (Criteria) this; + } + + public Criteria andMerNoIsNull() { + addCriterion("mer_no is null"); + return (Criteria) this; + } + + public Criteria andMerNoIsNotNull() { + addCriterion("mer_no is not null"); + return (Criteria) this; + } + + public Criteria andMerNoEqualTo(String value) { + addCriterion("mer_no =", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoNotEqualTo(String value) { + addCriterion("mer_no <>", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoGreaterThan(String value) { + addCriterion("mer_no >", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoGreaterThanOrEqualTo(String value) { + addCriterion("mer_no >=", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoLessThan(String value) { + addCriterion("mer_no <", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoLessThanOrEqualTo(String value) { + addCriterion("mer_no <=", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoLike(String value) { + addCriterion("mer_no like", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoNotLike(String value) { + addCriterion("mer_no not like", value, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoIn(List values) { + addCriterion("mer_no in", values, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoNotIn(List values) { + addCriterion("mer_no not in", values, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoBetween(String value1, String value2) { + addCriterion("mer_no between", value1, value2, "merNo"); + return (Criteria) this; + } + + public Criteria andMerNoNotBetween(String value1, String value2) { + addCriterion("mer_no not between", value1, value2, "merNo"); + return (Criteria) this; + } + + public Criteria andStoreIdIsNull() { + addCriterion("store_id is null"); + return (Criteria) this; + } + + public Criteria andStoreIdIsNotNull() { + addCriterion("store_id is not null"); + return (Criteria) this; + } + + public Criteria andStoreIdEqualTo(Long value) { + addCriterion("store_id =", value, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdNotEqualTo(Long value) { + addCriterion("store_id <>", value, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdGreaterThan(Long value) { + addCriterion("store_id >", value, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdGreaterThanOrEqualTo(Long value) { + addCriterion("store_id >=", value, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdLessThan(Long value) { + addCriterion("store_id <", value, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdLessThanOrEqualTo(Long value) { + addCriterion("store_id <=", value, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdIn(List values) { + addCriterion("store_id in", values, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdNotIn(List values) { + addCriterion("store_id not in", values, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdBetween(Long value1, Long value2) { + addCriterion("store_id between", value1, value2, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreIdNotBetween(Long value1, Long value2) { + addCriterion("store_id not between", value1, value2, "storeId"); + return (Criteria) this; + } + + public Criteria andStoreNameIsNull() { + addCriterion("store_name is null"); + return (Criteria) this; + } + + public Criteria andStoreNameIsNotNull() { + addCriterion("store_name is not null"); + return (Criteria) this; + } + + public Criteria andStoreNameEqualTo(String value) { + addCriterion("store_name =", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameNotEqualTo(String value) { + addCriterion("store_name <>", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameGreaterThan(String value) { + addCriterion("store_name >", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameGreaterThanOrEqualTo(String value) { + addCriterion("store_name >=", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameLessThan(String value) { + addCriterion("store_name <", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameLessThanOrEqualTo(String value) { + addCriterion("store_name <=", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameLike(String value) { + addCriterion("store_name like", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameNotLike(String value) { + addCriterion("store_name not like", value, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameIn(List values) { + addCriterion("store_name in", values, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameNotIn(List values) { + addCriterion("store_name not in", values, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameBetween(String value1, String value2) { + addCriterion("store_name between", value1, value2, "storeName"); + return (Criteria) this; + } + + public Criteria andStoreNameNotBetween(String value1, String value2) { + addCriterion("store_name not between", value1, value2, "storeName"); + return (Criteria) this; + } + + public Criteria andPlatformTypeIsNull() { + addCriterion("platform_type is null"); + return (Criteria) this; + } + + public Criteria andPlatformTypeIsNotNull() { + addCriterion("platform_type is not null"); + return (Criteria) this; + } + + public Criteria andPlatformTypeEqualTo(Integer value) { + addCriterion("platform_type =", value, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeNotEqualTo(Integer value) { + addCriterion("platform_type <>", value, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeGreaterThan(Integer value) { + addCriterion("platform_type >", value, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("platform_type >=", value, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeLessThan(Integer value) { + addCriterion("platform_type <", value, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeLessThanOrEqualTo(Integer value) { + addCriterion("platform_type <=", value, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeIn(List values) { + addCriterion("platform_type in", values, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeNotIn(List values) { + addCriterion("platform_type not in", values, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeBetween(Integer value1, Integer value2) { + addCriterion("platform_type between", value1, value2, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformTypeNotBetween(Integer value1, Integer value2) { + addCriterion("platform_type not between", value1, value2, "platformType"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoIsNull() { + addCriterion("platform_mer_no is null"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoIsNotNull() { + addCriterion("platform_mer_no is not null"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoEqualTo(String value) { + addCriterion("platform_mer_no =", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoNotEqualTo(String value) { + addCriterion("platform_mer_no <>", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoGreaterThan(String value) { + addCriterion("platform_mer_no >", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoGreaterThanOrEqualTo(String value) { + addCriterion("platform_mer_no >=", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoLessThan(String value) { + addCriterion("platform_mer_no <", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoLessThanOrEqualTo(String value) { + addCriterion("platform_mer_no <=", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoLike(String value) { + addCriterion("platform_mer_no like", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoNotLike(String value) { + addCriterion("platform_mer_no not like", value, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoIn(List values) { + addCriterion("platform_mer_no in", values, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoNotIn(List values) { + addCriterion("platform_mer_no not in", values, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoBetween(String value1, String value2) { + addCriterion("platform_mer_no between", value1, value2, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformMerNoNotBetween(String value1, String value2) { + addCriterion("platform_mer_no not between", value1, value2, "platformMerNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoIsNull() { + addCriterion("platform_trade_no is null"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoIsNotNull() { + addCriterion("platform_trade_no is not null"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoEqualTo(String value) { + addCriterion("platform_trade_no =", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoNotEqualTo(String value) { + addCriterion("platform_trade_no <>", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoGreaterThan(String value) { + addCriterion("platform_trade_no >", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoGreaterThanOrEqualTo(String value) { + addCriterion("platform_trade_no >=", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoLessThan(String value) { + addCriterion("platform_trade_no <", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoLessThanOrEqualTo(String value) { + addCriterion("platform_trade_no <=", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoLike(String value) { + addCriterion("platform_trade_no like", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoNotLike(String value) { + addCriterion("platform_trade_no not like", value, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoIn(List values) { + addCriterion("platform_trade_no in", values, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoNotIn(List values) { + addCriterion("platform_trade_no not in", values, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoBetween(String value1, String value2) { + addCriterion("platform_trade_no between", value1, value2, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformTradeNoNotBetween(String value1, String value2) { + addCriterion("platform_trade_no not between", value1, value2, "platformTradeNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoIsNull() { + addCriterion("platform_log_no is null"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoIsNotNull() { + addCriterion("platform_log_no is not null"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoEqualTo(String value) { + addCriterion("platform_log_no =", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoNotEqualTo(String value) { + addCriterion("platform_log_no <>", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoGreaterThan(String value) { + addCriterion("platform_log_no >", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoGreaterThanOrEqualTo(String value) { + addCriterion("platform_log_no >=", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoLessThan(String value) { + addCriterion("platform_log_no <", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoLessThanOrEqualTo(String value) { + addCriterion("platform_log_no <=", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoLike(String value) { + addCriterion("platform_log_no like", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoNotLike(String value) { + addCriterion("platform_log_no not like", value, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoIn(List values) { + addCriterion("platform_log_no in", values, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoNotIn(List values) { + addCriterion("platform_log_no not in", values, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoBetween(String value1, String value2) { + addCriterion("platform_log_no between", value1, value2, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPlatformLogNoNotBetween(String value1, String value2) { + addCriterion("platform_log_no not between", value1, value2, "platformLogNo"); + return (Criteria) this; + } + + public Criteria andPayModeIsNull() { + addCriterion("pay_mode is null"); + return (Criteria) this; + } + + public Criteria andPayModeIsNotNull() { + addCriterion("pay_mode is not null"); + return (Criteria) this; + } + + public Criteria andPayModeEqualTo(String value) { + addCriterion("pay_mode =", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeNotEqualTo(String value) { + addCriterion("pay_mode <>", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeGreaterThan(String value) { + addCriterion("pay_mode >", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeGreaterThanOrEqualTo(String value) { + addCriterion("pay_mode >=", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeLessThan(String value) { + addCriterion("pay_mode <", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeLessThanOrEqualTo(String value) { + addCriterion("pay_mode <=", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeLike(String value) { + addCriterion("pay_mode like", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeNotLike(String value) { + addCriterion("pay_mode not like", value, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeIn(List values) { + addCriterion("pay_mode in", values, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeNotIn(List values) { + addCriterion("pay_mode not in", values, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeBetween(String value1, String value2) { + addCriterion("pay_mode between", value1, value2, "payMode"); + return (Criteria) this; + } + + public Criteria andPayModeNotBetween(String value1, String value2) { + addCriterion("pay_mode not between", value1, value2, "payMode"); + return (Criteria) this; + } + + public Criteria andOutTradeNoIsNull() { + addCriterion("out_trade_no is null"); + return (Criteria) this; + } + + public Criteria andOutTradeNoIsNotNull() { + addCriterion("out_trade_no is not null"); + return (Criteria) this; + } + + public Criteria andOutTradeNoEqualTo(String value) { + addCriterion("out_trade_no =", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoNotEqualTo(String value) { + addCriterion("out_trade_no <>", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoGreaterThan(String value) { + addCriterion("out_trade_no >", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoGreaterThanOrEqualTo(String value) { + addCriterion("out_trade_no >=", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoLessThan(String value) { + addCriterion("out_trade_no <", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoLessThanOrEqualTo(String value) { + addCriterion("out_trade_no <=", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoLike(String value) { + addCriterion("out_trade_no like", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoNotLike(String value) { + addCriterion("out_trade_no not like", value, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoIn(List values) { + addCriterion("out_trade_no in", values, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoNotIn(List values) { + addCriterion("out_trade_no not in", values, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoBetween(String value1, String value2) { + addCriterion("out_trade_no between", value1, value2, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andOutTradeNoNotBetween(String value1, String value2) { + addCriterion("out_trade_no not between", value1, value2, "outTradeNo"); + return (Criteria) this; + } + + public Criteria andTradeTypeIsNull() { + addCriterion("trade_type is null"); + return (Criteria) this; + } + + public Criteria andTradeTypeIsNotNull() { + addCriterion("trade_type is not null"); + return (Criteria) this; + } + + public Criteria andTradeTypeEqualTo(Integer value) { + addCriterion("trade_type =", value, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeNotEqualTo(Integer value) { + addCriterion("trade_type <>", value, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeGreaterThan(Integer value) { + addCriterion("trade_type >", value, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("trade_type >=", value, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeLessThan(Integer value) { + addCriterion("trade_type <", value, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeLessThanOrEqualTo(Integer value) { + addCriterion("trade_type <=", value, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeIn(List values) { + addCriterion("trade_type in", values, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeNotIn(List values) { + addCriterion("trade_type not in", values, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeBetween(Integer value1, Integer value2) { + addCriterion("trade_type between", value1, value2, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeTypeNotBetween(Integer value1, Integer value2) { + addCriterion("trade_type not between", value1, value2, "tradeType"); + return (Criteria) this; + } + + public Criteria andTradeAmountIsNull() { + addCriterion("trade_amount is null"); + return (Criteria) this; + } + + public Criteria andTradeAmountIsNotNull() { + addCriterion("trade_amount is not null"); + return (Criteria) this; + } + + public Criteria andTradeAmountEqualTo(BigDecimal value) { + addCriterion("trade_amount =", value, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountNotEqualTo(BigDecimal value) { + addCriterion("trade_amount <>", value, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountGreaterThan(BigDecimal value) { + addCriterion("trade_amount >", value, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("trade_amount >=", value, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountLessThan(BigDecimal value) { + addCriterion("trade_amount <", value, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("trade_amount <=", value, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountIn(List values) { + addCriterion("trade_amount in", values, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountNotIn(List values) { + addCriterion("trade_amount not in", values, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("trade_amount between", value1, value2, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("trade_amount not between", value1, value2, "tradeAmount"); + return (Criteria) this; + } + + public Criteria andTradeTimeIsNull() { + addCriterion("trade_time is null"); + return (Criteria) this; + } + + public Criteria andTradeTimeIsNotNull() { + addCriterion("trade_time is not null"); + return (Criteria) this; + } + + public Criteria andTradeTimeEqualTo(Date value) { + addCriterion("trade_time =", value, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeNotEqualTo(Date value) { + addCriterion("trade_time <>", value, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeGreaterThan(Date value) { + addCriterion("trade_time >", value, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeGreaterThanOrEqualTo(Date value) { + addCriterion("trade_time >=", value, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeLessThan(Date value) { + addCriterion("trade_time <", value, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeLessThanOrEqualTo(Date value) { + addCriterion("trade_time <=", value, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeIn(List values) { + addCriterion("trade_time in", values, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeNotIn(List values) { + addCriterion("trade_time not in", values, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeBetween(Date value1, Date value2) { + addCriterion("trade_time between", value1, value2, "tradeTime"); + return (Criteria) this; + } + + public Criteria andTradeTimeNotBetween(Date value1, Date value2) { + addCriterion("trade_time not between", value1, value2, "tradeTime"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtIsNull() { + addCriterion("shd_fee_amt is null"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtIsNotNull() { + addCriterion("shd_fee_amt is not null"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtEqualTo(BigDecimal value) { + addCriterion("shd_fee_amt =", value, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtNotEqualTo(BigDecimal value) { + addCriterion("shd_fee_amt <>", value, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtGreaterThan(BigDecimal value) { + addCriterion("shd_fee_amt >", value, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("shd_fee_amt >=", value, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtLessThan(BigDecimal value) { + addCriterion("shd_fee_amt <", value, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtLessThanOrEqualTo(BigDecimal value) { + addCriterion("shd_fee_amt <=", value, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtIn(List values) { + addCriterion("shd_fee_amt in", values, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtNotIn(List values) { + addCriterion("shd_fee_amt not in", values, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("shd_fee_amt between", value1, value2, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andShdFeeAmtNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("shd_fee_amt not between", value1, value2, "shdFeeAmt"); + return (Criteria) this; + } + + public Criteria andSettleAmountIsNull() { + addCriterion("settle_amount is null"); + return (Criteria) this; + } + + public Criteria andSettleAmountIsNotNull() { + addCriterion("settle_amount is not null"); + return (Criteria) this; + } + + public Criteria andSettleAmountEqualTo(BigDecimal value) { + addCriterion("settle_amount =", value, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountNotEqualTo(BigDecimal value) { + addCriterion("settle_amount <>", value, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountGreaterThan(BigDecimal value) { + addCriterion("settle_amount >", value, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("settle_amount >=", value, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountLessThan(BigDecimal value) { + addCriterion("settle_amount <", value, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("settle_amount <=", value, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountIn(List values) { + addCriterion("settle_amount in", values, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountNotIn(List values) { + addCriterion("settle_amount not in", values, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("settle_amount between", value1, value2, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("settle_amount not between", value1, value2, "settleAmount"); + return (Criteria) this; + } + + public Criteria andSettleDateIsNull() { + addCriterion("settle_date is null"); + return (Criteria) this; + } + + public Criteria andSettleDateIsNotNull() { + addCriterion("settle_date is not null"); + return (Criteria) this; + } + + public Criteria andSettleDateEqualTo(Date value) { + addCriterionForJDBCDate("settle_date =", value, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateNotEqualTo(Date value) { + addCriterionForJDBCDate("settle_date <>", value, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateGreaterThan(Date value) { + addCriterionForJDBCDate("settle_date >", value, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("settle_date >=", value, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateLessThan(Date value) { + addCriterionForJDBCDate("settle_date <", value, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("settle_date <=", value, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateIn(List values) { + addCriterionForJDBCDate("settle_date in", values, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateNotIn(List values) { + addCriterionForJDBCDate("settle_date not in", values, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("settle_date between", value1, value2, "settleDate"); + return (Criteria) this; + } + + public Criteria andSettleDateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("settle_date not between", value1, value2, "settleDate"); + return (Criteria) this; + } + + public Criteria andFeeRateIsNull() { + addCriterion("fee_rate is null"); + return (Criteria) this; + } + + public Criteria andFeeRateIsNotNull() { + addCriterion("fee_rate is not null"); + return (Criteria) this; + } + + public Criteria andFeeRateEqualTo(BigDecimal value) { + addCriterion("fee_rate =", value, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateNotEqualTo(BigDecimal value) { + addCriterion("fee_rate <>", value, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateGreaterThan(BigDecimal value) { + addCriterion("fee_rate >", value, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("fee_rate >=", value, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateLessThan(BigDecimal value) { + addCriterion("fee_rate <", value, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateLessThanOrEqualTo(BigDecimal value) { + addCriterion("fee_rate <=", value, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateIn(List values) { + addCriterion("fee_rate in", values, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateNotIn(List values) { + addCriterion("fee_rate not in", values, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("fee_rate between", value1, value2, "feeRate"); + return (Criteria) this; + } + + public Criteria andFeeRateNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("fee_rate not between", value1, value2, "feeRate"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + 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/service/src/main/java/com/hfkj/service/BsTradeSettleService.java b/service/src/main/java/com/hfkj/service/BsTradeSettleService.java new file mode 100644 index 0000000..7da261c --- /dev/null +++ b/service/src/main/java/com/hfkj/service/BsTradeSettleService.java @@ -0,0 +1,35 @@ +package com.hfkj.service; + +import com.hfkj.entity.BsTradeSettle; + +import java.util.List; +import java.util.Map; + +/** + * 交易结算 + * @className: BsTradeSettleService + * @author: HuRui + * @date: 2023/8/4 + **/ +public interface BsTradeSettleService { + + /** + * 编辑数据 + * @param tradeSettle + */ + void editData(BsTradeSettle tradeSettle); + + /** + * 查询详情 + * @param id + * @return + */ + BsTradeSettle getDetailById(Long id); + + /** + * 查询交易列表 + * @param param + * @return + */ + List getTradeSettleList(Map param); +} diff --git a/service/src/main/java/com/hfkj/service/impl/BsTradeSettleServiceImpl.java b/service/src/main/java/com/hfkj/service/impl/BsTradeSettleServiceImpl.java new file mode 100644 index 0000000..fa40ae1 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/impl/BsTradeSettleServiceImpl.java @@ -0,0 +1,41 @@ +package com.hfkj.service.impl; + +import com.hfkj.dao.BsTradeSettleMapper; +import com.hfkj.entity.BsTradeSettle; +import com.hfkj.service.BsTradeSettleService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; +import java.util.Map; + +/** + * @className: BsTradeSettleServiceImpl + * @author: HuRui + * @date: 2023/8/4 + **/ +@Service("tradeSettleService") +public class BsTradeSettleServiceImpl implements BsTradeSettleService { + + @Resource + private BsTradeSettleMapper tradeSettleMapper; + + @Override + public void editData(BsTradeSettle tradeSettle) { + if (tradeSettle.getId() == null) { + tradeSettleMapper.insert(tradeSettle); + } else { + tradeSettleMapper.updateByPrimaryKey(tradeSettle); + } + } + + @Override + public BsTradeSettle getDetailById(Long id) { + return tradeSettleMapper.selectByPrimaryKey(id); + } + + @Override + public List getTradeSettleList(Map param) { + return null; + } +}