From cd969de1f50903ca87deda67bff2d6fcc35b4107 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Sun, 07 Jun 2026 02:42:32 +0800
Subject: [PATCH] 1

---
 target/classes/mapper/UserWithdrawMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/target/classes/mapper/UserWithdrawMapper.xml b/target/classes/mapper/UserWithdrawMapper.xml
index c4997e9..93fd766 100644
--- a/target/classes/mapper/UserWithdrawMapper.xml
+++ b/target/classes/mapper/UserWithdrawMapper.xml
@@ -281,5 +281,11 @@
     DELETE FROM user_withdraw WHERE user_id = #{userId}
   </delete>
 
+  <select id="sumPendingAmtByUserId" resultType="java.math.BigDecimal">
+    select ifnull(sum(with_amt), 0)
+    from user_withdraw
+    where user_id = #{userId}
+      and with_status = 0
+  </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3