diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java index 5e9c4fac68..badb80bbd2 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java @@ -330,7 +330,7 @@ public class FunctionalCaseFileService { XMindCaseParser xMindParser = new XMindCaseParser(request, customFields, user, lasePos); errList = xMindParser.parse(multipartFile); response.setErrorMessages(errList); - response.setSuccessCount(xMindParser.getList().size() + xMindParser.getUpdateList().size()); + response.setSuccessCount(xMindParser.getList().size() + xMindParser.getUpdateList().size()+ xMindParser.getCheckSuccessList().size()); response.setFailCount(errList.size()); xMindParser.clear(); return response; @@ -407,7 +407,7 @@ public class FunctionalCaseFileService { } xmindParser.saveData(); response.setErrorMessages(errList); - response.setSuccessCount(xmindParser.getList().size() + xmindParser.getUpdateList().size()); + response.setSuccessCount(xmindParser.getList().size() + xmindParser.getUpdateList().size()+ xmindParser.getCheckSuccessList().size()); response.setFailCount(errList.size()); xmindParser.clear(); return response; diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/parser/XMindCaseParser.java b/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/parser/XMindCaseParser.java index d4f6a0e220..af0247834e 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/parser/XMindCaseParser.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/parser/XMindCaseParser.java @@ -46,6 +46,8 @@ public class XMindCaseParser { @Getter protected List list = new ArrayList<>(); @Getter + protected List checkSuccessList = new ArrayList<>(); + @Getter protected List updateList = new ArrayList<>(); private FunctionalCaseService functionalCaseService; @@ -93,6 +95,7 @@ public class XMindCaseParser { public void clear() { list.clear(); updateList.clear(); + checkSuccessList.clear(); pathMap.clear(); moduleTree = new ArrayList<>(); customFieldValidatorMap = new HashMap<>(); @@ -288,7 +291,7 @@ public class XMindCaseParser { functionalCaseExcelData.setNum(checkResult); updateList.add(functionalCaseExcelData); } else { - list.add(functionalCaseExcelData); + checkSuccessList.add(functionalCaseExcelData); } } else { list.add(functionalCaseExcelData);