diff --git a/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java b/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java index ffa952518b..0f69c49ff7 100644 --- a/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java +++ b/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java @@ -23,7 +23,10 @@ import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import java.lang.reflect.Field; +import java.text.NumberFormat; import java.util.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -44,6 +47,8 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener headMap; private Map excelHeadToFieldNameDic = new HashMap<>(); + private static NumberFormat numberFormat = NumberFormat.getNumberInstance(); + /** * 每隔2000条存储数据库,然后清理list ,方便内存回收 */ @@ -572,8 +577,16 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener