From cf664b0440f9668aaa26001dc7742f869e715b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93=E8=BF=AA?= <2596750866@qq.com> Date: Mon, 5 Aug 2024 15:21:16 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E5=B7=A5=E5=85=B7=E7=B1=BB=20=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=B7=A5=E5=85=B7=20=E4=BF=AE=E6=94=B9=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=97=B6=E7=94=9F=E6=88=90=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E4=B8=BA=E6=89=8B=E5=8A=A8=E8=AE=BE=E7=BD=AE=E7=9A=84=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E8=A1=A8=E5=90=8D=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java index 88a287d9..d2656cee 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java @@ -382,7 +382,8 @@ public class ExcelUtil addStatisticsRow(); } } - String filename = encodingFilename(sheetName); +// String filename = encodingFilename(sheetName); + String filename = sheetName + ".xlsx"; out = new FileOutputStream(getAbsoluteFile(filename)); wb.write(out); return AjaxResult.success(filename);