zhangnaisong
2024-07-10 62ccdc7c0ca98f50059808f0ecdf01907b92879d
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>