| | |
| | | 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) { |
| | |
| | | |
| | | 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); |