From 81d826f455491f18f64c4032fc07be5c6abdd009 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 29 Sep 2021 17:03:31 +0800
Subject: [PATCH] 20210928

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

diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
index 6036704..cc3b0b8 100644
--- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml
@@ -8,8 +8,15 @@
 
     <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="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