From 4398a57a5d01d5dd4331f8a04f29f5fd9229a737 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期二, 03 六月 2025 17:31:32 +0800
Subject: [PATCH] 客户修改

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

diff --git a/src/main/resources/mapper/system/SysUserDeptMapper.xml b/src/main/resources/mapper/system/SysUserDeptMapper.xml
index 0a62acb..898d3d1 100644
--- a/src/main/resources/mapper/system/SysUserDeptMapper.xml
+++ b/src/main/resources/mapper/system/SysUserDeptMapper.xml
@@ -16,6 +16,11 @@
             <if test="userDeptVo.userId != null">
                 T1.user_id = #{userDeptVo.userId}
             </if>
+            <if test="userDeptVo.userName != null and userDeptVo.userName != '' ">
+                T1.user_id IN (
+                SELECT user_id FROM sys_user WHERE nick_name LIKE CONCAT('%',#{userDeptVo.userName},'%')
+                )
+            </if>
         </where>
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3