linwei
2024-01-23 5745a87f3a139ea2bbdaf4704978e4c151ecc45a
src/main/java/org/springblade/modules/district/service/impl/DistrictServiceImpl.java
@@ -82,12 +82,12 @@
    */
   @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));