fix:功能优化,增加最近还款日期。

This commit is contained in:
tianyongbao
2024-04-26 17:33:23 +08:00
parent 3fa4db6637
commit 4eaa708b9d
2 changed files with 16 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="balance" column="balance" />
<result property="bankName" column="bank_name" />
<result property="bankCode" column="bank_code" />
<result property="repaymentDate" column="repayment_date" />
</resultMap>
<sql id="selectInstallmentHistoryVo">
@@ -53,6 +53,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ihd.installment_history_id = a.id
and ihd .posting_state = '0'
) as balance,
(
select
min(d.repayment_date)
from
installment_history_detail d
where
d.installment_history_id = a.id
and d.posting_state = '0')
as repayment_date,
a.repaid_period,
a.total_interest,
a.interest_rate,