| | |
| | | */ |
| | | @Override |
| | | public Object getDistrictTree(DistrictVO district) { |
| | | // String userRole = AuthUtil.getUserRole(); |
| | | // if (userRole.equals("wygly")) { |
| | | // IPropertyDistrictUserService bean = SpringUtils.getBean(IPropertyDistrictUserService.class); |
| | | // List<String> strings = bean.selectPropertyDistrictByUserId(AuthUtil.getUserId()); |
| | | // district.setDistrictIdList(strings); |
| | | // } |
| | | String userRole = AuthUtil.getUserRole(); |
| | | if (userRole.equals("wygly")||userRole.equals("wyxmjl")) { |
| | | // 查询管理的小区 不好过滤小区 |
| | | // todo |
| | | // district.setDistrictIdList(strings); |
| | | } |
| | | Map<String, TreeStringNode> districtTree = baseMapper.getDistrictTree(district); |
| | | List<TreeStringNode> stringNodeTree = NodeTreeUtil.getStringNodeTree(districtTree); |
| | | stringNodeTree.forEach(node -> recursion(node)); |