feat: 新增银行基础信息管理,信用卡储蓄卡新增字段。

This commit is contained in:
tianyongbao
2026-01-29 15:04:43 +08:00
parent 79badebce0
commit b5d1c62364
12 changed files with 683 additions and 2 deletions

View File

@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.intc.invest.mapper.BankBaseInfoMapper">
<resultMap type="BankBaseInfoVo" id="BankBaseInfoResult">
<result property="id" column="id" />
<result property="bankName" column="bank_name" />
<result property="bankShortName" column="bank_short_name" />
<result property="bankType" column="bank_type" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="unifiedCreditCode" column="unified_credit_code" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="delFlag" column="del_flag" />
<result property="englishShortName" column="english_short_name" />
<result property="multiAccountConsolidated" column="multi_account_consolidated" />
<result property="orderNum" column="order_num" />
</resultMap>
<sql id="selectBankBaseInfoVo">
select a.id, a.bank_name, a.bank_short_name, a.bank_type, a.province, a.city, a.unified_credit_code, a.remark, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.english_short_name, a.multi_account_consolidated, a.order_num from bank_base_info a
</sql>
<select id="selectBankBaseInfoList" parameterType="BankBaseInfoDto" resultMap="BankBaseInfoResult">
<include refid="selectBankBaseInfoVo"/>
<where>
a.del_flag='0'
<if test="bankName != null and bankName != ''"> and a.bank_name like '%'|| #{bankName}||'%'</if>
<if test="bankShortName != null and bankShortName != ''"> and a.bank_short_name like '%'|| #{bankShortName}||'%'</if>
<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
</select>
<select id="selectBankBaseInfoById" parameterType="Long" resultMap="BankBaseInfoResult">
<include refid="selectBankBaseInfoVo"/>
where a.id = #{id}
</select>
<insert id="insertBankBaseInfo" parameterType="BankBaseInfo">
insert into bank_base_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="bankName != null">bank_name,</if>
<if test="bankShortName != null">bank_short_name,</if>
<if test="bankType != null">bank_type,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="unifiedCreditCode != null">unified_credit_code,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="delFlag != null">del_flag,</if>
<if test="englishShortName != null">english_short_name,</if>
<if test="multiAccountConsolidated != null">multi_account_consolidated,</if>
<if test="orderNum != null">order_num,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="bankName != null">#{bankName},</if>
<if test="bankShortName != null">#{bankShortName},</if>
<if test="bankType != null">#{bankType},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="unifiedCreditCode != null">#{unifiedCreditCode},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="englishShortName != null">#{englishShortName},</if>
<if test="multiAccountConsolidated != null">#{multiAccountConsolidated},</if>
<if test="orderNum != null">#{orderNum},</if>
</trim>
</insert>
<update id="updateBankBaseInfo" parameterType="BankBaseInfo">
update bank_base_info
<trim prefix="SET" suffixOverrides=",">
<if test="bankName != null">bank_name = #{bankName},</if>
<if test="bankShortName != null">bank_short_name = #{bankShortName},</if>
<if test="bankType != null">bank_type = #{bankType},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="unifiedCreditCode != null">unified_credit_code = #{unifiedCreditCode},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="englishShortName != null">english_short_name = #{englishShortName},</if>
<if test="multiAccountConsolidated != null">multi_account_consolidated = #{multiAccountConsolidated},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBankBaseInfoById" parameterType="Long">
delete from bank_base_info where id = #{id}
</delete>
<delete id="deleteBankBaseInfoByIds" parameterType="String">
delete from bank_base_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeBankBaseInfoById" parameterType="Long">
update bank_base_info set del_flag='1' where id = #{id}
</update>
<update id="removeBankBaseInfoByIds" parameterType="String">
update bank_base_info set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -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>