From 219f37458e6145163c247bcdc29a5321d48e422a Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Fri, 17 May 2024 14:40:54 +0800
Subject: [PATCH] 1

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

diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index 8efe003..ec05fdd 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -82,6 +82,9 @@
         <include refid="Base_Column_List"/>
         FROM user
         <where>
+            <if test="id != null and id != '' ">
+                and id = #{id}
+            </if>
             <if test="searchId != null ">
                 and agent_id = #{searchId}
             </if>

--
Gitblit v1.9.3