fix: 统计分析,自测问题修复。

This commit is contained in:
tianyongbao
2024-05-11 17:06:08 +08:00
parent 406323c383
commit 456b334d2f
3 changed files with 97 additions and 7 deletions

View File

@@ -21,10 +21,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" />
<result property="type" column="type" />
<result property="periods" column="periods" />
<result property="bankCardLendName" column="bank_card_lend_name" />
</resultMap>
<sql id="selectInstallmentHistoryDetailVo">
select a.id, a.installment_history_id, a.bank_card_lend_id, a.current_amount, a.repayment_date, a.principal, a.interest, a.posting_state, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.type, a.periods from installment_history_detail a
select
a.id,
a.installment_history_id,
a.bank_card_lend_id,
a.current_amount,
a.repayment_date,
a.principal,
a.interest,
a.posting_state,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.del_flag,
a.remark,
a.type,
a.periods,
CONCAT(bcl."name",
'',
right(bcl.code,
4),
'') as bank_card_lend_name
from
installment_history_detail a
left join bank_card_lend bcl on
bcl.id = a.bank_card_lend_id
</sql>
<select id="selectInstallmentHistoryDetailList" parameterType="InstallmentHistoryDetailDto" resultMap="InstallmentHistoryDetailResult">