From 951c94ad11acdfdd8d174fe0840a9c11d55f4cc7 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Thu, 13 Feb 2025 12:32:19 +0800 Subject: [PATCH] feat(runVip): 添加线上充值字段并更新相关页面和数据映射 --- src/main/resources/mapper/modules/MallMemberWalletMapper.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml index cc3b0b8..2a37ee5 100644 --- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml @@ -13,10 +13,51 @@ where id=#{record.id} and revision=#{record.revision} </update> + <update id="updateScoreWithVersion"> + update mall_member_wallet + set revision = revision + 1, + score = #{record.score} + where id=#{record.id} and revision=#{record.revision} + </update> + + <update id="updateCommissionWithVersion"> + update mall_member_wallet + set revision = revision + 1, + commission = #{record.commission} + where id=#{record.id} and revision=#{record.revision} + </update> + <update id="updateBalanceWithId"> update mall_member_wallet set revision = revision + 1, balance = #{record.balance} where id=#{record.id} </update> + + <update id="updateAmountWithVersion"> + update mall_member_wallet + set revision = revision + 1 + <if test="record.balance != null"> + , balance = #{record.balance} + </if> + <if test="record.score != null"> + , score = #{record.score} + </if> + <if test="record.prizeScore != null"> + , prize_score = #{record.prizeScore} + </if> + <if test="record.commission != null"> + , commission = #{record.commission} + </if> + where id=#{record.id} and revision=#{record.revision} + </update> + + <update id="updateScore"> + UPDATE mall_member_wallet + SET score = 0 + where id IN + <foreach collection = "list" item = "item" separator="," open = "(" close = ")" > + #{item} + </foreach > + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1