From 25b19e60e004290531f61fdf608d1adb5e531903 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期六, 12 七月 2025 14:40:12 +0800
Subject: [PATCH] 保洁巡检本周代码

---
 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 498f9bd..00038b0 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -273,7 +273,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