fix: 账户统计功能优化。

This commit is contained in:
tianyongbao
2025-05-14 10:02:27 +08:00
parent 451d33532d
commit a1dcc56a23
3 changed files with 49 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="payDate" column="pay_date" />
<result property="creditLimit" column="credit_limit" />
<result property="debitType" column="debit_type" />
<result property="investType" column="invest_type" />
<result property="lendType" column="lend_type" />
<result property="status" column="status" />
<result property="recentDealTime" column="recent_deal_time" />
@@ -52,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bcl.pay_date ,
bcl.credit_limit ,
bcl.debit_type,
invest.type as invest_type,
bcl.lend_type,
(select create_time from accounts_deal_record adr where adr.account_id=a.account_id
order by adr.create_time desc
@@ -59,8 +61,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) as recent_deal_time
from
accounts a
left join bank_card_lend bcl on
bcl.id = a.id
left join bank_card_lend bcl on bcl.id = a.id
left join future_stocks invest on invest.id = a.id
</sql>
<select id="selectAccountsList" parameterType="AccountsDto" resultMap="AccountsResult">