Commit fd7a5cbb by levphon

用户上级控制

1 parent cbeab74c
......@@ -542,7 +542,7 @@ public class UserService {
}
//上三级级组织
List<Organization> superiorOrgList = organizationMapper.selectSuperiorOrgsByDepths(userBO.getDepartmentId(), Lists.newArrayList(1, 2, 3));
List<Organization> superiorOrgList = organizationMapper.selectSuperiorOrgsByDepths(userBO.getDepartmentId(), Lists.newArrayList(0, 1, 2, 3));
Set<Long> organizationIdSet = superiorOrgList.stream().map(Organization::getSuperiorId).collect(Collectors.toSet());
if (CollectionUtils.isNotEmpty(organizationIdSet)) {
User superiorUser = userMapper.selectById(userBO.getSuperiorId());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!