diff --git a/test-track/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java b/test-track/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java index 2384c63815..562f3ccbf7 100644 --- a/test-track/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java +++ b/test-track/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java @@ -182,6 +182,16 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener BATCH_COUNT || updateList.size() > BATCH_COUNT) { + saveData(); + list.clear(); + updateList.clear(); + } + } + + private void buildUpdateOrErrorList(Integer rowIndex, TestCaseExcelData testCaseExcelData) { StringBuilder errMsg; try { //根据excel数据实体中的javax.validation + 正则表达式来校验excel数据 @@ -214,11 +224,6 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener BATCH_COUNT || updateList.size() > BATCH_COUNT) { - saveData(); - list.clear(); - updateList.clear(); - } } /** @@ -856,6 +861,10 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener