| | |
| | | // 判断角色,物业角色只能查询当前小区的 |
| | | String userRole = AuthUtil.getUserRole(); |
| | | if (userRole.contains("wygly") || userRole.contains("wyxmjl")) { |
| | | if (district.getFilterFlag().equals(1)) { |
| | | // if (district.getFilterFlag().equals(1)) { |
| | | // 查询小区id |
| | | IPropertyDistrictUserService propertyDistrictUserService = SpringUtils.getBean(IPropertyDistrictUserService.class); |
| | | List<String> districtIds = propertyDistrictUserService.selectPropertyDistrictByUserId(AuthUtil.getUserId()); |
| | |
| | | if (districtIds.size() == 0) { |
| | | return new ArrayList<>(); |
| | | } |
| | | } |
| | | // } |
| | | } |
| | | Map<String, TreeStringNode> districtTree = baseMapper.getDistrictTree(district); |
| | | List<TreeStringNode> stringNodeTree = NodeTreeUtil.getStringNodeTree(districtTree); |