工具类 导出工具 修改导出时生成文件名为手动设置的工作表名;
@ -382,7 +382,8 @@ public class ExcelUtil<T>
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);