From e3155bdcb11ca4e22d2bc9e54f96a1aa00c7ad4a Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Tue, 26 Mar 2024 12:28:45 +0800
Subject: [PATCH] 抽奖
---
src/main/resources/mapper/modules/MallMemberAmountMapper.xml | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallMemberAmountMapper.xml b/src/main/resources/mapper/modules/MallMemberAmountMapper.xml
index 1173316..f691f8b 100644
--- a/src/main/resources/mapper/modules/MallMemberAmountMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberAmountMapper.xml
@@ -35,6 +35,20 @@
where id = #{record.id} and revision=#{record.revision}
</update>
+ <update id="updateTotalPerkById">
+ update mall_member_amount
+ set revision = revision + 1,
+ total_perk = #{record.totalPerk}
+ where id = #{record.id} and revision=#{record.revision}
+ </update>
+
+ <update id="updateGsdById">
+ update mall_member_amount
+ set revision = revision + 1,
+ gsd = #{record.gsd}
+ where id = #{record.id} and revision=#{record.revision}
+ </update>
+
<update id="updateFrozenNftById">
update mall_member_amount
set revision = revision + 1,
@@ -50,4 +64,20 @@
where id = #{record.id} and revision=#{record.revision}
</update>
+ <update id="updateTrendsNftAndGsdById">
+ update mall_member_amount
+ set revision = revision + 1,
+ gsd = #{record.gsd},
+ trends_nft = #{record.trendsNft}
+ where id = #{record.id} and revision=#{record.revision}
+ </update>
+
+ <update id="updateFcmCntAvaAndGsdById">
+ update mall_member_amount
+ set revision = revision + 1,
+ gsd = #{record.gsd},
+ fcm_cnt_ava = #{record.fcmCntAva}
+ where id = #{record.id} and revision=#{record.revision}
+ </update>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1