From 1689b64fe1352a7c7c1ce2a45b16058bf168dd83 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 19 Dec 2024 14:27:59 +0800
Subject: [PATCH] feat(mall): 会员首页展示会员等级数量
---
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