fix:分期历史,增加计算利率。

This commit is contained in:
tianyongbao
2024-04-30 10:58:58 +08:00
parent 0378efef14
commit 3fe4a74f33
4 changed files with 83 additions and 22 deletions

View File

@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="bankName" column="bank_name" />
<result property="bankCode" column="bank_code" />
<result property="repaymentDate" column="repayment_date" />
<result property="calculateInterestRate" column="calculate_interest_rate" />
</resultMap>
<sql id="selectInstallmentHistoryVo">
@@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.installment_amount,
a.installment_date,
a.period,
a.calculate_interest_rate,
(
select
CASE
@@ -129,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="balance != null">balance,</if>
<if test="calculateInterestRate != null">calculate_interest_rate,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -153,7 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="balance != null">#{balance},</if>
<if test="calculateInterestRate != null">#{calculateInterestRate},</if>
</trim>
</insert>
@@ -180,6 +182,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="balance != null">balance = #{balance},</if>
<if test="calculateInterestRate != null">calculate_interest_rate = #{calculateInterestRate},</if>
</trim>
where id = #{id}
</update>