zhangnaisong
2024-07-22 c3ec70d2bd1ebd2421d2fa3e85c1ac43e2322ea6
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -371,4 +371,12 @@
        and su.status = '0' and su.del_flag = '0'
        order by su.dept_id asc
    </select>
    <select id="selectUserByDeptIdList" resultMap="SysUserOnlyResult">
        select * from sys_user su where su.dept_id in
        <foreach collection="deptIdList" item="deptId" open="(" close=")" separator=",">
            #{deptId}
        </foreach>
        and su.status = '0'
    </select>
</mapper>