From d678089b80706169854bf310ff84af7cbbcf4267 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Mon, 13 Sep 2021 16:44:52 +0800 Subject: [PATCH] emm --- .../src/main/java/com/epmet/commons/tools/utils/ExcelUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ExcelUtils.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ExcelUtils.java index bc2659eccc..773291dfcc 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ExcelUtils.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ExcelUtils.java @@ -106,7 +106,7 @@ public class ExcelUtils { //当前日期 fileName = DateUtils.format(new Date()); } - ExportParams params = new ExportParams(fileName, "sheet的Name"); + ExportParams params = new ExportParams(fileName,fileName); Workbook workbook = ExcelExportUtil.exportExcel(params, pojoClass, list); Sheet sheet1 = workbook.getSheetAt(0); sheet1.setDefaultColumnWidth(50*256);