From f0a47946682b93a4fb6c9246d8573ee2bc98d60e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 24 May 2021 11:41:26 +0800
Subject: [PATCH] modify

---
 src/main/resources/mapper/member/MemberWalletCoinDao.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/member/MemberWalletCoinDao.xml b/src/main/resources/mapper/member/MemberWalletCoinDao.xml
index 79979c5..2b1845c 100644
--- a/src/main/resources/mapper/member/MemberWalletCoinDao.xml
+++ b/src/main/resources/mapper/member/MemberWalletCoinDao.xml
@@ -39,5 +39,11 @@
 		where id=#{id}
 	</update>
 
+	<update id="reduceFrozenBalance">
+		update member_wallet_coin
+		set frozen_balance = frozen_balance - #{amount},
+			total_balance = total_balance - #{amount}
+		where id=#{id}
+	</update>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1