fix: 信用卡储蓄卡,sql修改。
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user