From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 28 三月 2025 19:57:56 +0800
Subject: [PATCH] 修改bug

---
 DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml
index bc36c1f..a867f3b 100644
--- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml
+++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml
@@ -25,7 +25,7 @@
     <select id="queryWithdrawal" resultType="map">
         select
         id as id,
-        DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as insertTime,
+        DATE_FORMAT(insertTime, '%Y-%m-%d') as insertTime,
         money as money,
         ('手机提现') as name,
         remark as remark,
@@ -33,6 +33,19 @@
         withdrawalType as withdrawalType,
         serialNo as serialNo
         from t_pub_withdrawal
-        where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type} order by insertTime desc limit #{pageNum}, #{size}
+        where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type}
+        <if test="null != state">
+            and state = #{state}
+        </if>
+        order by insertTime desc limit #{pageNum}, #{size}
+    </select>
+    
+    
+    
+    <select id="queryWithdrawalSum" resultType="double">
+        select
+        ifnull(sum(money), 0) as money
+        from t_pub_withdrawal
+        where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type} and state = 2
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.7.1