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

This commit is contained in:
tianyongbao
2026-01-29 21:07:49 +08:00
parent 7859bd4d50
commit 93ed830f9a
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="bankType != null "> and a.bank_type = #{bankType}</if>
<if test="multiAccountConsolidated != null and multiAccountConsolidated != ''"> and a.multi_account_consolidated = #{multiAccountConsolidated}</if> <if test="multiAccountConsolidated != null and multiAccountConsolidated != ''"> and a.multi_account_consolidated = #{multiAccountConsolidated}</if>
</where> </where>
order by a.order_num desc order by a.order_num asc
</select> </select>
<select id="selectBankBaseInfoById" parameterType="Long" resultMap="BankBaseInfoResult"> <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="cardFace" column="card_face" />
<result property="cardTier" column="card_tier" /> <result property="cardTier" column="card_tier" />
<result property="bankId" column="bank_id" /> <result property="bankId" column="bank_id" />
<result property="bankName" column="bank_name" />
</resultMap> </resultMap>
<sql id="selectBankCardLendVo"> <sql id="selectBankCardLendVo">
@@ -66,9 +67,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.card_tier, a.card_tier,
a.bank_id, a.bank_id,
t.balance, t.balance,
b.bank_name,
t.available_limit t.available_limit
from bank_card_lend a from bank_card_lend a
left join accounts t on t.id=a.id left join accounts t on t.id=a.id
left join bank_base_info b on b.id=a.bank_id
</sql> </sql>
<select id="selectBankCardLendList" parameterType="BankCardLendDto" resultMap="BankCardLendResult"> <select id="selectBankCardLendList" parameterType="BankCardLendDto" resultMap="BankCardLendResult">