From a8025084f0fc576917008e9e11e6e688a5723783 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 19 Dec 2024 16:08:18 +0800
Subject: [PATCH] refactor(runVip): 修改会员添加和编辑页面的碳币状态字段
---
src/main/resources/mapper/modules/MallMemberWalletMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
index eaa443b..23a7bb6 100644
--- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
@@ -13,6 +13,13 @@
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,
@@ -44,4 +51,9 @@
</if>
where id=#{record.id} and revision=#{record.revision}
</update>
+
+ <update id="updateScore">
+ UPDATE mall_member_wallet
+ SET score = 0
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1