From 85d5dea7408e1ae74e4c7f460bf84caae3754753 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期六, 08 二月 2025 16:53:44 +0800
Subject: [PATCH] fix:用户列表查询

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

diff --git a/src/main/resources/mapper/system/UserMapper.xml b/src/main/resources/mapper/system/UserMapper.xml
index 6d05c79..037278e 100644
--- a/src/main/resources/mapper/system/UserMapper.xml
+++ b/src/main/resources/mapper/system/UserMapper.xml
@@ -123,12 +123,13 @@
             AND id = #{condition.id}
         </if>
         <if test="condition.loginName != null and condition.loginName != ''">
-            AND name = #{condition.loginName}
+            AND name like concat('%', #{condition.loginName},'%')
         </if>
         <if test="condition.tel != null and condition.tel != ''">
-            AND contact_tel = #{condition.tel}
+            AND contact_tel like concat('%', #{condition.tel},'%')
         </if>
         </where>
+        ORDER BY user_id, id
     </select>
 
     <select id="getSelectList" resultType="com.mzl.flower.dto.response.sms.SmsSelectVO">

--
Gitblit v1.9.3