| | |
| | | public List<RegionVO> queryRegionTree(LoginUserInfoVO loginUserInfo) { |
| | | IdentityInformation currentIdentityInformation = identityInformationService.getCurrentIdentityInformation(loginUserInfo); |
| | | if (!Integer.valueOf(2).equals(currentIdentityInformation.getIdentity())) { |
| | | throw new ServiceException("当前账号无权限"); |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | SystemUserLevel userLevel = currentIdentityInformation.getSystemUserLevel(); |
| | |
| | | private List<RegionVO> buildDistrictLevelTree(String districtCode) { |
| | | List<RegionVO> streets = systemUserMapper.getStreet(districtCode); |
| | | streets.forEach(street -> { |
| | | street.setTier(2); |
| | | street.setTier(3); |
| | | List<RegionVO> communities = systemUserMapper.getCommunity(street.getId()); |
| | | communities.forEach(c -> c.setTier(4)); |
| | | street.setChildren(communities); |