fix: 还款明细新增待还款账号和余额。
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user