diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java index 8aa9514ae2..39669e7ea7 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java @@ -618,7 +618,7 @@ public class CaseReviewFunctionalCaseService { returnList.add(projectNode); List projectModuleIds = moduleList.stream().map(FunctionalCaseModule::getId).toList(); List nodeByNodeIds = functionalCaseModuleService.getNodeByNodeIds(projectModuleIds); - List list = nodeByNodeIds.stream().filter(t -> StringUtils.equalsIgnoreCase(t.getId(), ModuleConstants.DEFAULT_NODE_ID)).toList(); + List list = nodeByNodeIds.stream().filter(t -> StringUtils.equalsIgnoreCase(t.getParentId(), ModuleConstants.DEFAULT_NODE_ID)).toList(); boolean haveVirtualRootNode = list.isEmpty(); List baseTreeNodes = functionalCaseModuleService.buildTreeAndCountResource(nodeByNodeIds, !haveVirtualRootNode, Translator.get("default.module")); for (BaseTreeNode baseTreeNode : baseTreeNodes) {