| | |
| | | public Object getDistrictTree(DistrictVO district) { |
| | | // 判断角色,物业角色只能查询当前小区的 |
| | | String userRole = AuthUtil.getUserRole(); |
| | | CommonParamSet invoke = new CommonParamSet<>().invoke(DistrictVO.class, district); |
| | | |
| | | if (RoleUtil.isProperty(userRole)) { |
| | | if (district.getFilterFlag().equals(1)) { |
| | | // 查询小区id |
| | |
| | | } |
| | | } |
| | | } |
| | | Map<String, TreeStringNode> districtTree = baseMapper.getDistrictTree(district); |
| | | Map<String, TreeStringNode> districtTree = baseMapper.getDistrictTree(district,invoke.getRegionChildCodesList(),invoke.getIsAdministrator()); |
| | | List<TreeStringNode> stringNodeTree = NodeTreeUtil.getStringNodeTree(districtTree); |
| | | stringNodeTree.forEach(node -> recursion(node)); |
| | | return stringNodeTree; |