Commit 483e1a96 by levphon

bug修复

1 parent 42beab18
...@@ -171,6 +171,10 @@ public abstract class PermissionStrategy { ...@@ -171,6 +171,10 @@ public abstract class PermissionStrategy {
Set<Long> departmentIdSet = userList.stream().map(User::getDepartmentId).collect(Collectors.toSet()); Set<Long> departmentIdSet = userList.stream().map(User::getDepartmentId).collect(Collectors.toSet());
if (CollectionUtils.isEmpty(departmentIdSet)) {
return Lists.newArrayList();
}
List<OrgSuperiorModel> superiorModelList = organizationMapper.selectSuperiorIdsByOrg(new OrgTreeSearch().setOrgIds(departmentIdSet)); List<OrgSuperiorModel> superiorModelList = organizationMapper.selectSuperiorIdsByOrg(new OrgTreeSearch().setOrgIds(departmentIdSet));
Collection<Long> superiorIdSet = this.getSuperiorIds(superiorModelList); Collection<Long> superiorIdSet = this.getSuperiorIds(superiorModelList);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!