zhangnaisong
2024-07-11 cd538c205628f28839323b49b7f77f33196a601f
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>