From 3000107d5ed2f71ebe89a1d0f46aee6fbab9fae7 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Wed, 11 Dec 2024 18:34:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B6=85=E8=BF=8740?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E7=9A=84csv=E6=96=87=E4=BB=B6=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/datasource/provider/ExcelUtils.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java index 31c18fc1b4..fc49382c8c 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java @@ -195,9 +195,6 @@ public class ExcelUtils { String filePath = saveFile(file, excelId); for (ExcelSheetData excelSheetData : returnSheetDataList) { - if (excelSheetData.getExcelLabel().length() > 40) { - DEException.throwException(excelSheetData.getExcelLabel() + "长度不能大于40!"); - } excelSheetData.setLastUpdateTime(System.currentTimeMillis()); excelSheetData.setTableName(excelSheetData.getExcelLabel()); excelSheetData.setDeTableName("excel_" + excelSheetData.getExcelLabel() + "_" + UUID.randomUUID().toString().replace("-", "").substring(0, 10)); @@ -209,9 +206,6 @@ public class ExcelUtils { * dataease字段类型:0-文本,1-时间,2-整型数值,3-浮点数值,4-布尔,5-地理位置,6-二进制 */ for (TableField field : excelSheetData.getFields()) { - if (field.getOriginName().length() > 40) { - DEException.throwException(excelSheetData.getExcelLabel() + "的字段" + field.getOriginName() + "长度不能大于40!"); - } //TEXT LONG DATETIME DOUBLE if (field.getFieldType().equalsIgnoreCase("TEXT")) { field.setDeType(0);