refactor(用例管理):用例评审详情计算生成默认模块
This commit is contained in:
parent
1cd91cc238
commit
ac3bc36376
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue