guoshilong
2024-02-28 7f85ff7e882ed4d3d39c3261bc996af9cf656aa1
src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java
@@ -119,7 +119,7 @@
   private void handleDictBiz(List<HouseholdVO> householdList) {
      if (householdList.size()>0){
         // 查询角色关系字典
         List<DictBiz> dictBizList = dictBizService.getList("roleRelation");
         List<DictBiz> dictBizList = dictBizService.getList("roleRelation",null);
         if (dictBizList.size()>0) {
            // 遍历
            for (HouseholdVO householdVO : householdList) {
@@ -515,6 +515,14 @@
   private void recursion(TreeIntegerNode node) {
      if (node.getChildren() != null && node.getChildren().size() > 0) {
         if(node.getId().equals(1030)){
            int sum = node.getChildren().stream().mapToInt(TreeIntegerNode::getCount).sum();
            node.setCount(sum);
         }
         if(node.getId().equals(1031)){
            int sum = node.getChildren().stream().mapToInt(TreeIntegerNode::getCount).sum();
            node.setCount(sum);
         }
         node.getChildren().forEach(node2 -> recursion(node2));
      } else {
         node.setChildren(null);