卡片管理

This commit is contained in:
sxu 2025-05-06 09:09:06 +08:00
parent 7be40de7c4
commit 7f7068e782
1 changed files with 3 additions and 3 deletions

View File

@ -43,13 +43,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectAccCardList" parameterType="com.bonus.canteen.core.account.domain.AccCard" resultMap="AccCardResult">
<include refid="selectAccCardVo"/>
<where>
ac.card_status in (1,4,5)
<if test="userId != null "> and ac.user_id = #{userId}</if>
<if test="accId != null "> and ac.acc_id = #{accId}</if>
<if test="cardNum != null "> and ac.card_num = #{cardNum}</if>
<if test="serialNum != null and serialNum != ''"> and ac.serial_num = #{serialNum}</if>
<if test="cardNature != null and cardNature != ''"> and ac.card_nature = #{cardNature}</if>
<if test="cardType != null "> and ac.card_type = #{cardType}</if>
<if test="cardStatus != null "> and ac.card_status = #{cardStatus}</if>
<if test="deposit != null "> and ac.deposit = #{deposit}</if>
<if test="productCost != null "> and ac.product_cost = #{productCost}</if>
<if test="pendProductCost != null "> and ac.pend_product_cost = #{pendProductCost}</if>
@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where acc_id = #{accId} and card_status != 6
where acc_id = #{accId}
</update>
<delete id="deleteAccCardById" parameterType="Long">