清分账单加字段 交易日期

This commit is contained in:
2023-08-22 17:06:20 +08:00
parent 3394fdc753
commit ce7e2fc6f9
3 changed files with 75 additions and 51 deletions

View File

@@ -6,6 +6,7 @@
<!--@Table clearing_bill_info-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="bill_status" jdbcType="VARCHAR" property="billStatus" />
<result column="trade_date" jdbcType="VARCHAR" property="tradeDate" />
<result column="clearing_bill_code" jdbcType="VARCHAR" property="clearingBillCode" />
<result column="clearing_time" jdbcType="TIMESTAMP" property="clearingTime" />
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
@@ -24,8 +25,8 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, bill_status, clearing_bill_code, clearing_time, merchant_id, order_source, receivable_amount,
should_clearing_amount, actual_clearing_amount, fee_amount, withdrawable_amount,
id, bill_status, trade_date, clearing_bill_code, clearing_time, merchant_id, order_source,
receivable_amount, should_clearing_amount, actual_clearing_amount, fee_amount, withdrawable_amount,
withdraw_code, create_by, create_time, update_by, update_time, del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
@@ -42,18 +43,20 @@
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into clearing_bill_info (bill_status, clearing_bill_code, clearing_time,
merchant_id, order_source, receivable_amount,
should_clearing_amount, actual_clearing_amount,
fee_amount, withdrawable_amount, withdraw_code,
create_by, create_time, update_by,
update_time, del_flag)
values (#{billStatus,jdbcType=VARCHAR}, #{clearingBillCode,jdbcType=VARCHAR}, #{clearingTime,jdbcType=TIMESTAMP},
#{merchantId,jdbcType=VARCHAR}, #{orderSource,jdbcType=VARCHAR}, #{receivableAmount,jdbcType=DECIMAL},
#{shouldClearingAmount,jdbcType=DECIMAL}, #{actualClearingAmount,jdbcType=DECIMAL},
#{feeAmount,jdbcType=DECIMAL}, #{withdrawableAmount,jdbcType=DECIMAL}, #{withdrawCode,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR})
insert into clearing_bill_info (bill_status, trade_date, clearing_bill_code,
clearing_time, merchant_id, order_source,
receivable_amount, should_clearing_amount,
actual_clearing_amount, fee_amount, withdrawable_amount,
withdraw_code, create_by, create_time,
update_by, update_time, del_flag
)
values (#{billStatus,jdbcType=VARCHAR}, #{tradeDate,jdbcType=VARCHAR}, #{clearingBillCode,jdbcType=VARCHAR},
#{clearingTime,jdbcType=TIMESTAMP}, #{merchantId,jdbcType=VARCHAR}, #{orderSource,jdbcType=VARCHAR},
#{receivableAmount,jdbcType=DECIMAL}, #{shouldClearingAmount,jdbcType=DECIMAL},
#{actualClearingAmount,jdbcType=DECIMAL}, #{feeAmount,jdbcType=DECIMAL}, #{withdrawableAmount,jdbcType=DECIMAL},
#{withdrawCode,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
<!--@mbg.generated-->
@@ -62,6 +65,9 @@
<if test="billStatus != null">
bill_status,
</if>
<if test="tradeDate != null">
trade_date,
</if>
<if test="clearingBillCode != null">
clearing_bill_code,
</if>
@@ -112,6 +118,9 @@
<if test="billStatus != null">
#{billStatus,jdbcType=VARCHAR},
</if>
<if test="tradeDate != null">
#{tradeDate,jdbcType=VARCHAR},
</if>
<if test="clearingBillCode != null">
#{clearingBillCode,jdbcType=VARCHAR},
</if>
@@ -166,6 +175,9 @@
<if test="billStatus != null">
bill_status = #{billStatus,jdbcType=VARCHAR},
</if>
<if test="tradeDate != null">
trade_date = #{tradeDate,jdbcType=VARCHAR},
</if>
<if test="clearingBillCode != null">
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
</if>
@@ -218,6 +230,7 @@
<!--@mbg.generated-->
update clearing_bill_info
set bill_status = #{billStatus,jdbcType=VARCHAR},
trade_date = #{tradeDate,jdbcType=VARCHAR},
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
clearing_time = #{clearingTime,jdbcType=TIMESTAMP},
merchant_id = #{merchantId,jdbcType=VARCHAR},
@@ -251,7 +264,7 @@
update clearing_bill_info
set bill_status = #{billStatus,jdbcType=VARCHAR}
where id in
<foreach collection="clearingBillIds" item="item" open="(" separator="," close=")">
<foreach close=")" collection="clearingBillIds" item="item" open="(" separator=",">
#{item,jdbcType=INTEGER}
</foreach>
</update>