@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user