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="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">
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user