From 1bf57dbbb7025facb8a3e3c2074e82af6f13b24f Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 28 Apr 2022 15:13:59 +0800
Subject: [PATCH] fix

---
 src/main/resources/mapper/modules/MallMemberWalletMapper.xml |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
index 6036704..7e60066 100644
--- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
@@ -8,8 +8,22 @@
 
     <update id="updateBalanceWithVersion">
         update mall_member_wallet
-        set REVISION = REVISION + 1,
+        set revision = revision + 1,
             balance = #{record.balance}
-        where id=#{record.id} and REVISION=#{record.REVISION}
+        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>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1