部门查询不限制数据权限

This commit is contained in:
chenbowen
2026-01-28 10:42:56 +08:00
parent 17489ae6f0
commit 815958a138

View File

@@ -762,6 +762,7 @@ public class DeptServiceImpl implements DeptService {
return deptIds;
}
@DataPermission(enable = false)
private Long resolveNearestCompanyId(Long deptId, Map<Long, DeptDO> deptCache) {
DeptDO current = loadDept(deptId, deptCache);
while (current != null) {