From 9e033f3843e49197dbe5e0288b4e492eaec1cd08 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 01 Mar 2024 17:03:45 +0800
Subject: [PATCH] 新增部門報錯

---
 src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java b/src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java
index 90d0d88..e97d833 100644
--- a/src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java
+++ b/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);

--
Gitblit v1.9.3