refactor(用例管理):用例评审详情计算生成默认模块

This commit is contained in:
guoyuqi 2024-01-30 14:10:11 +08:00 committed by 刘瑞斌
parent 1cd91cc238
commit ac3bc36376
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ public class CaseReviewFunctionalCaseService {
returnList.add(projectNode);
List<String> projectModuleIds = moduleList.stream().map(FunctionalCaseModule::getId).toList();
List<BaseTreeNode> nodeByNodeIds = functionalCaseModuleService.getNodeByNodeIds(projectModuleIds);
List<BaseTreeNode> list = nodeByNodeIds.stream().filter(t -> StringUtils.equalsIgnoreCase(t.getId(), ModuleConstants.DEFAULT_NODE_ID)).toList();
List<BaseTreeNode> list = nodeByNodeIds.stream().filter(t -> StringUtils.equalsIgnoreCase(t.getParentId(), ModuleConstants.DEFAULT_NODE_ID)).toList();
boolean haveVirtualRootNode = list.isEmpty();
List<BaseTreeNode> baseTreeNodes = functionalCaseModuleService.buildTreeAndCountResource(nodeByNodeIds, !haveVirtualRootNode, Translator.get("default.module"));
for (BaseTreeNode baseTreeNode : baseTreeNodes) {