fix: 信用卡储蓄卡,sql修改。

This commit is contained in:
tianyongbao
2026-01-29 21:07:49 +08:00
parent 1076afc439
commit d91864df16
2 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bankType != null "> and a.bank_type = #{bankType}</if>
<if test="multiAccountConsolidated != null and multiAccountConsolidated != ''"> and a.multi_account_consolidated = #{multiAccountConsolidated}</if>
</where>
order by a.order_num desc
order by a.order_num asc
</select>
<select id="selectBankBaseInfoById" parameterType="Long" resultMap="BankBaseInfoResult">

View File

@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="cardFace" column="card_face" />
<result property="cardTier" column="card_tier" />
<result property="bankId" column="bank_id" />
<result property="bankName" column="bank_name" />
</resultMap>
<sql id="selectBankCardLendVo">
@@ -66,10 +67,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.card_tier,
a.bank_id,
t.balance,
b.bank_name,
t.available_limit
from bank_card_lend a
left join accounts t on t.id=a.id
</sql>
left join bank_base_info b on b.id=a.bank_id
</sql>
<select id="selectBankCardLendList" parameterType="BankCardLendDto" resultMap="BankCardLendResult">
<include refid="selectBankCardLendVo"/>