From e92fd4ee90a7296fcb2336409d128dfd1bf653f4 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 26 Oct 2022 15:01:06 +0800
Subject: [PATCH] 20221021

---
 src/main/resources/mapper/dapp/DappWalletCoinDao.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappWalletCoinDao.xml b/src/main/resources/mapper/dapp/DappWalletCoinDao.xml
index 2b0a088..476d46f 100644
--- a/src/main/resources/mapper/dapp/DappWalletCoinDao.xml
+++ b/src/main/resources/mapper/dapp/DappWalletCoinDao.xml
@@ -122,4 +122,13 @@
         inner join dapp_member b on a.member_id = b.id
         where a.total_amount <![CDATA[ >= ]]> 51
     </select>
+
+    <update id="addTotalAndaddAvailableByMemberId">
+        update dapp_wallet_coin
+        set
+            total_amount = total_amount + #{balance},
+            available_amount = available_amount + #{balance}
+        where
+            member_id = #{memberId}
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1