fix: 还款明细新增待还款账号和余额。

This commit is contained in:
tianyongbao
2026-03-06 09:26:19 +08:00
parent 2c7a0e07f2
commit ff84ef0d79
3 changed files with 10 additions and 2 deletions

View File

@@ -17,4 +17,8 @@ public class InstallmentHistoryDetailVo extends InstallmentHistoryDetail
private String repaymentAccountName;
private Double repaymentAccountBalance;
}

View File

@@ -1164,6 +1164,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
detailItem.put("currentAmount", vo.getCurrentAmount());
detailItem.put("principal", vo.getPrincipal());
detailItem.put("interest", vo.getInterest());
detailItem.put("repaymentAccountName", vo.getRepaymentAccountName());
detailItem.put("repaymentAccountBalance", vo.getRepaymentAccountBalance());
detailItems.add(detailItem);
}
}

View File

@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="bankCardLendName" column="bank_card_lend_name" />
<result property="repaymentAccountId" column="repayment_account_id" />
<result property="repaymentAccountName" column="repayment_account_name" />
<result property="repaymentAccountBalance" column="repayment_account_name" />
</resultMap>
<sql id="selectInstallmentHistoryDetailVo">
@@ -54,13 +55,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
'',
right(debit.code,
4),
'') as repayment_account_name
'') as repayment_account_name,
debit.balance as repayment_account_balance
from
installment_history_detail a
left join bank_card_lend bcl on
bcl.id = a.bank_card_lend_id
left join installment_history ih on ih.id=a.installment_history_id
left join bank_card_lend debit on
left join accounts debit on
debit.id = a.repayment_account_id
</sql>