卡片管理
This commit is contained in:
parent
7be40de7c4
commit
7f7068e782
|
|
@ -42,14 +42,14 @@ 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>
|
||||
<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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue