From 7f85ff7e882ed4d3d39c3261bc996af9cf656aa1 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 28 Feb 2024 14:26:19 +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