From 201518a621d0d5f3c2040217950b10a5eaba22e6 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期六, 12 七月 2025 14:51:01 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index 120bc3e..a03756b 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -274,7 +274,13 @@
 	</select>
     <select id="selectUserByDeptId" resultType="com.ruoyi.common.core.domain.entity.SysUser">
 	select  * from sys_user
-	where deptId = #{id}
+	where 1=1
+		<if test="ids != null and ids.size()>0">
+			AND deptId IN
+			<foreach collection="ids" separator="," item="id" open="(" close=")">
+				#{id}
+			</foreach>
+		</if>
 	and status = 0
 	and del_flag = 0
 	</select>

--
Gitblit v1.7.1