From bbe56bf9f6e66b3c1d0085838a6c16b76b0924f5 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 01 Oct 2021 20:36:58 +0800
Subject: [PATCH] add reset pwd

---
 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