feat: 新增银行基础信息管理,信用卡储蓄卡新增字段。
This commit is contained in:
@@ -31,6 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="balance" column="balance" />
|
||||
<result property="availableLimit" column="available_limit" />
|
||||
<result property="status" column="status" />
|
||||
<result property="cardFace" column="card_face" />
|
||||
<result property="cardTier" column="card_tier" />
|
||||
<result property="bankId" column="bank_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBankCardLendVo">
|
||||
@@ -59,6 +62,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.next_bill_date_time,
|
||||
a.is_zero_bill,
|
||||
a.status,
|
||||
a.card_face,
|
||||
a.card_tier,
|
||||
a.bank_id,
|
||||
t.balance,
|
||||
t.available_limit
|
||||
from bank_card_lend a
|
||||
@@ -74,8 +80,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="debitType != null and debitType != ''"> and a.debit_type = #{debitType}</if>
|
||||
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
|
||||
<if test="bankId != null "> and a.bank_id = #{bankId}</if>
|
||||
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="status != null and status != ''"> and a.card_tier = #{status}</if>
|
||||
<if test="cardTier != null and cardTier != ''"> and a.status = #{cardTier}</if>
|
||||
<if test="repayFlag != null and repayFlag != ''"> and a.debit_type in('1','2','3')</if>
|
||||
<if test="staticFlag != null and staticFlag != ''"> and ( a.debit_type in('1','2') and a.status!='2') </if>
|
||||
<if test="startMonth!=null and startMonth !=''">
|
||||
@@ -128,6 +136,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="nextBillDateTime != null">next_bill_date_time,</if>
|
||||
<if test="isZeroBill != null">is_zero_bill,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="cardFace != null">card_face,</if>
|
||||
<if test="cardTier != null">card_tier,</if>
|
||||
<if test="bankId != null">bank_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -154,6 +165,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="nextBillDateTime != null">#{nextBillDateTime},</if>
|
||||
<if test="isZeroBill != null">#{isZeroBill},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="cardFace != null">#{cardFace},</if>
|
||||
<if test="cardTier != null">#{cardTier},</if>
|
||||
<if test="bankId != null">#{bankId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -183,6 +197,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="nextBillDateTime != null">next_bill_date_time = #{nextBillDateTime},</if>
|
||||
<if test="isZeroBill != null">is_zero_bill = #{isZeroBill},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="cardFace != null">card_face = #{cardFace},</if>
|
||||
<if test="cardTier != null">card_tier = #{cardTier},</if>
|
||||
<if test="bankId != null">bank_id = #{bankId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user