From 12ca14e2ec3926c2e59a7b25a26f16daaf834a7e Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 02 Jul 2020 15:48:31 +0800
Subject: [PATCH] 20200702  代码提交

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

diff --git a/src/main/resources/mapper/member/MemberWalletCoinDao.xml b/src/main/resources/mapper/member/MemberWalletCoinDao.xml
index fed0917..e8f13e3 100644
--- a/src/main/resources/mapper/member/MemberWalletCoinDao.xml
+++ b/src/main/resources/mapper/member/MemberWalletCoinDao.xml
@@ -9,6 +9,26 @@
     <select id="selectWalletCoinBymIdAndCode" resultType="com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity">
         select * from member_wallet_coin where member_id = #{memberId} and wallet_code = #{walletCode}
     </select>
+    
+    <update id="updateFrozenBalance" parameterType="map">
+		UPDATE member_wallet_coin
+		SET available_balance = available_balance - #{amount},
+		 	frozen_balance = frozen_balance + #{amount}
+		WHERE
+			id = #{id}
+		AND member_id = #{memberId}
+	</update>
+	
+	<update id="subFrozenBalance" parameterType="map">
+		UPDATE member_wallet_coin
+		SET available_balance = available_balance + #{amount},
+		 	frozen_balance = frozen_balance - #{amount}
+		WHERE
+			id = #{id}
+		AND member_id = #{memberId}
+	</update>
+    
+    
 
 
 

--
Gitblit v1.9.1