From 71756c5945f5174f53302b127e4ea5e437f8d53b Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Sat, 11 May 2024 10:06:40 +0800
Subject: [PATCH] 测试新

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

diff --git a/src/main/resources/mapper/dapp/DappWalletCoinDao.xml b/src/main/resources/mapper/dapp/DappWalletCoinDao.xml
index 584d9b8..0cc388e 100644
--- a/src/main/resources/mapper/dapp/DappWalletCoinDao.xml
+++ b/src/main/resources/mapper/dapp/DappWalletCoinDao.xml
@@ -153,4 +153,19 @@
     <select id="selectAmountThanZero" resultType="cc.mrbird.febs.dapp.entity.DappWalletCoinEntity">
         select * from dapp_wallet_coin where available_amount > 0
     </select>
+
+    <select id="selectTotal" resultType="java.math.BigDecimal">
+        select IFNULL(sum(IFNULL(total_amount,0)),0)
+        from dapp_wallet_coin
+    </select>
+
+    <select id="selectWithdrawAmountByType" resultType="java.math.BigDecimal">
+        select IFNULL(sum(IFNULL(amount,0)),0)
+        from member_coin_withdraw
+        where 1=1
+          and status != 3
+        <if test='type == "D"'>
+            and date_format(CREATE_TIME, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d');
+        </if>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1