|
@@ -1432,9 +1432,9 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
long startTime = System.currentTimeMillis();
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
/*重新计算,进行递归获取父节点计数统计*/
|
|
/*重新计算,进行递归获取父节点计数统计*/
|
|
-// this.recursiveGetParentNodes(resultParentNodesTB, lowestNodeParentIdsTB, nodesAll);
|
|
|
|
- Map<Long, List<WbsTreeContractLazyVO>> map = nodesAll.stream().collect(Collectors.groupingBy(WbsTreeContractLazyVO::getId));
|
|
|
|
- recursiveGetParentNodes(resultParentNodesTB, lowestNodeParentIdsTB, map);
|
|
|
|
|
|
+ this.recursiveGetParentNodes(resultParentNodesTB, lowestNodeParentIdsTB, nodesAll);
|
|
|
|
+// Map<Long, List<WbsTreeContractLazyVO>> map = nodesAll.stream().collect(Collectors.groupingBy(WbsTreeContractLazyVO::getId));
|
|
|
|
+// recursiveGetParentNodes(resultParentNodesTB, lowestNodeParentIdsTB, map);
|
|
long endTime = System.currentTimeMillis();
|
|
long endTime = System.currentTimeMillis();
|
|
long executionTime = endTime - startTime;
|
|
long executionTime = endTime - startTime;
|
|
_logger.info("合同段 " + contractId + " wbs节点树 数量计算 执行时间:" + executionTime + " ms");
|
|
_logger.info("合同段 " + contractId + " wbs节点树 数量计算 执行时间:" + executionTime + " ms");
|
|
@@ -1511,9 +1511,6 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
return nodes.stream();
|
|
return nodes.stream();
|
|
})
|
|
})
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
- if (collectedNodes.isEmpty()) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
List<Long> collect = collectedNodes.stream()
|
|
List<Long> collect = collectedNodes.stream()
|
|
.map(WbsTreeContractLazyVO::getParentId).filter(Objects::nonNull).distinct()
|
|
.map(WbsTreeContractLazyVO::getParentId).filter(Objects::nonNull).distinct()
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|