fix: 还款明细新增待还款账号和余额。
This commit is contained in:
@@ -17,4 +17,8 @@ public class InstallmentHistoryDetailVo extends InstallmentHistoryDetail
|
|||||||
|
|
||||||
private String repaymentAccountName;
|
private String repaymentAccountName;
|
||||||
|
|
||||||
|
private Double repaymentAccountBalance;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1164,6 +1164,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
|||||||
detailItem.put("currentAmount", vo.getCurrentAmount());
|
detailItem.put("currentAmount", vo.getCurrentAmount());
|
||||||
detailItem.put("principal", vo.getPrincipal());
|
detailItem.put("principal", vo.getPrincipal());
|
||||||
detailItem.put("interest", vo.getInterest());
|
detailItem.put("interest", vo.getInterest());
|
||||||
|
detailItem.put("repaymentAccountName", vo.getRepaymentAccountName());
|
||||||
|
detailItem.put("repaymentAccountBalance", vo.getRepaymentAccountBalance());
|
||||||
detailItems.add(detailItem);
|
detailItems.add(detailItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="bankCardLendName" column="bank_card_lend_name" />
|
<result property="bankCardLendName" column="bank_card_lend_name" />
|
||||||
<result property="repaymentAccountId" column="repayment_account_id" />
|
<result property="repaymentAccountId" column="repayment_account_id" />
|
||||||
<result property="repaymentAccountName" column="repayment_account_name" />
|
<result property="repaymentAccountName" column="repayment_account_name" />
|
||||||
|
<result property="repaymentAccountBalance" column="repayment_account_name" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectInstallmentHistoryDetailVo">
|
<sql id="selectInstallmentHistoryDetailVo">
|
||||||
@@ -54,13 +55,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
'(',
|
'(',
|
||||||
right(debit.code,
|
right(debit.code,
|
||||||
4),
|
4),
|
||||||
')') as repayment_account_name
|
')') as repayment_account_name,
|
||||||
|
debit.balance as repayment_account_balance
|
||||||
from
|
from
|
||||||
installment_history_detail a
|
installment_history_detail a
|
||||||
left join bank_card_lend bcl on
|
left join bank_card_lend bcl on
|
||||||
bcl.id = a.bank_card_lend_id
|
bcl.id = a.bank_card_lend_id
|
||||||
left join installment_history ih on ih.id=a.installment_history_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
|
debit.id = a.repayment_account_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user