From 4d2d47577b5d6f27288bfcfc60b74435d464dde0 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Sun, 29 Sep 2024 17:33:39 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/UserWithdrawMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/UserWithdrawMapper.xml b/src/main/resources/mapper/UserWithdrawMapper.xml
index 6311b02..4720ee1 100644
--- a/src/main/resources/mapper/UserWithdrawMapper.xml
+++ b/src/main/resources/mapper/UserWithdrawMapper.xml
@@ -235,8 +235,8 @@
     SELECT
     <include refid="Base_Column_List"/>
     FROM user_withdraw
-    where agent_id != 1
-      <if test="agentId != null">
+    where 1=1
+      <if test="agentId != null and agentId != ''">
         and ( agent_id = #{agentId}
         or agent_id in (
         select agent_user.id
@@ -245,7 +245,7 @@
         )
         )
       </if>
-      <if test="userId != null">
+      <if test="userId != null and agentId != ''">
         and user_id = #{userId}
       </if>
       <if test="realName != null and realName != '' ">

--
Gitblit v1.9.3