From b4b7027ec6c04b21d4e66e404772089485f73d8c Mon Sep 17 00:00:00 2001 From: taojinlong Date: Thu, 5 Sep 2024 13:36:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=87=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/chart/server/ChartDataServer.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/chart/server/ChartDataServer.java b/core/core-backend/src/main/java/io/dataease/chart/server/ChartDataServer.java index 9c10c86fdd..2afa50e916 100644 --- a/core/core-backend/src/main/java/io/dataease/chart/server/ChartDataServer.java +++ b/core/core-backend/src/main/java/io/dataease/chart/server/ChartDataServer.java @@ -284,12 +284,7 @@ public class ChartDataServer implements ChartDataApi { detailsSheet.setColumnWidth(j, 255 * 20); } else if (cellValObj != null) { try { - // with DataType - if ((excelTypes[j].equals(DeTypeConstants.DE_INT) || excelTypes[j].equals(DeTypeConstants.DE_FLOAT)) && StringUtils.isNotEmpty(cellValObj.toString())) { - cell.setCellValue(Double.valueOf(cellValObj.toString())); - } else { - cell.setCellValue(cellValObj.toString()); - } + cell.setCellValue(cellValObj.toString()); } catch (Exception e) { LogUtil.warn("export excel data transform error"); }