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));