Browse Source

Merge branch 'dev_export_excel' into develop

dev_shibei_match
zxc 4 years ago
parent
commit
f98fd8fa17
  1. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ExcelUtils.java

2
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);

Loading…
Cancel
Save