| | |
| | | } |
| | | |
| | | @Override |
| | | @DataPermission(enable = false) // 部门属于组织架构基础数据,供下拉/名称回显使用,不做数据权限过滤 |
| | | public List<DeptDO> getDeptList(Collection<Long> ids) { |
| | | if (CollUtil.isEmpty(ids)) { |
| | | return Collections.emptyList(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @DataPermission(enable = false) // 同上:避免非超管只能看到本部门,导致部门下拉/名称展示缺失 |
| | | public List<DeptDO> getDeptList(DeptListReqVO reqVO) { |
| | | List<DeptDO> list = deptMapper.selectList(reqVO); |
| | | list.sort(Comparator.comparing(DeptDO::getSort)); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @DataPermission(enable = false) // 仅校验部门是否存在/启用,不受数据权限限制(否则非超管会误报"部门不存在") |
| | | public void validateDeptList(Collection<Long> ids) { |
| | | if (CollUtil.isEmpty(ids)) { |
| | | return; |