tuqin
3 天以前 ce96310177bdd6d24ac90bd6f92d8def30b680af
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java
@@ -174,6 +174,7 @@
    }
    @Override
    @DataPermission(enable = false) // 部门属于组织架构基础数据,供下拉/名称回显使用,不做数据权限过滤
    public List<DeptDO> getDeptList(Collection<Long> ids) {
        if (CollUtil.isEmpty(ids)) {
            return Collections.emptyList();
@@ -182,6 +183,7 @@
    }
    @Override
    @DataPermission(enable = false) // 同上:避免非超管只能看到本部门,导致部门下拉/名称展示缺失
    public List<DeptDO> getDeptList(DeptListReqVO reqVO) {
        List<DeptDO> list = deptMapper.selectList(reqVO);
        list.sort(Comparator.comparing(DeptDO::getSort));
@@ -221,6 +223,7 @@
    }
    @Override
    @DataPermission(enable = false) // 仅校验部门是否存在/启用,不受数据权限限制(否则非超管会误报"部门不存在")
    public void validateDeptList(Collection<Long> ids) {
        if (CollUtil.isEmpty(ids)) {
            return;