fix: 系统功能升级,账户增加status字段,修改相关功能。

This commit is contained in:
tianyongbao
2024-07-17 19:41:00 +08:00
parent 4babea4ff2
commit 1dcd33a595
13 changed files with 89 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="payDate" column="pay_date" />
<result property="creditLimit" column="credit_limit" />
<result property="debitType" column="debit_type" />
<result property="status" column="status" />
</resultMap>
<sql id="selectAccountsVo">
@@ -43,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.remark,
a.account_id,
a.state,
a.status,
bcl.bill_date ,
bcl.pay_date ,
bcl.credit_limit ,
@@ -60,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="state != null and state != ''"> and a.state = #{state}</if>
<if test="status != null and status != ''"> and a.status = #{status}</if>
<if test="accountId != null and accountId != ''"> and a.account_id = #{accountId}</if>
</where>
<!-- 数据范围过滤 -->
@@ -90,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if>
<if test="accountId != null and accountId != ''">account_id,</if>
<if test="state != null">state,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -107,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">#{remark},</if>
<if test="accountId != null and accountId != ''">#{accountId},</if>
<if test="state != null">#{state},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
@@ -127,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark = #{remark},</if>
<if test="accountId != null and accountId != ''">account_id = #{accountId},</if>
<if test="state != null">state = #{state},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>

View File

@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="isZeroBill" column="is_zero_bill" />
<result property="balance" column="balance" />
<result property="availableLimit" column="available_limit" />
<result property="status" column="status" />
</resultMap>
<sql id="selectBankCardLendVo">
@@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.is_next_bill_date,
a.next_bill_date_time,
a.is_zero_bill,
a.status,
t.balance,
t.available_limit
from bank_card_lend a
@@ -73,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="debitType != null and debitType != ''"> and a.debit_type = #{debitType}</if>
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
<if test="status != null and status != ''"> and a.status = #{status}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
@@ -110,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isNextBillDate != null">is_next_bill_date,</if>
<if test="nextBillDateTime != null">next_bill_date_time,</if>
<if test="isZeroBill != null">is_zero_bill,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -135,6 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isNextBillDate != null">#{isNextBillDate},</if>
<if test="nextBillDateTime != null">#{nextBillDateTime},</if>
<if test="isZeroBill != null">#{isZeroBill},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
@@ -163,6 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isNextBillDate != null">is_next_bill_date = #{isNextBillDate},</if>
<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>
</trim>
where id = #{id}
</update>

View File

@@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="bankCode" column="bank_code" />
<result property="balance" column="balance" />
<result property="availableLimit" column="available_limit" />
<result property="status" column="status" />
</resultMap>
<sql id="selectFutureStocksVo">
@@ -49,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.update_time,
a.del_flag,
a.remark ,
a.status,
bc."name" as bank_name,
bc.code as bank_code,
t.balance,
@@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="status != null and status != ''"> and a.status = #{status}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
@@ -98,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">update_time,</if>
<if test="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -118,6 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
@@ -141,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>

View File

@@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="ratePlus" column="rate_plus" />
<result property="bankName" column="bank_name" />
<result property="bankCode" column="bank_code" />
<result property="status" column="status" />
</resultMap>
<sql id="selectPosMachineVo">
@@ -50,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.merchant_type,
a.merchant_code,
a.activation_date,
a.status,
bc."name" as bank_name,
bc.code as bank_code
from
@@ -63,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="status != null and status != ''"> and a.status = #{status}</if>
<if test="merchantName != null and merchantName != ''"> and a.merchant_name like '%'|| #{merchantName}||'%'</if>
</where>
<!-- 数据范围过滤 -->
@@ -97,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="merchantType != null">merchant_type,</if>
<if test="merchantCode != null">merchant_code,</if>
<if test="activationDate != null">activation_date,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -118,6 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="merchantType != null">#{merchantType},</if>
<if test="merchantCode != null">#{merchantCode},</if>
<if test="activationDate != null">#{activationDate},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
@@ -142,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="merchantType != null">merchant_type = #{merchantType},</if>
<if test="merchantCode != null">merchant_code = #{merchantCode},</if>
<if test="activationDate != null">activation_date = #{activationDate},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>