|
@@ -349,7 +349,7 @@ public class ExcelUtil<T>
|
|
// Workbook workbook = null;
|
|
// Workbook workbook = null;
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- Workbook workbook = ExcelExportUtil.exportExcel(sheetsList, ExcelType.HSSF);
|
|
|
|
|
|
+ Workbook workbook = ExcelExportUtil.exportExcel(sheetsList, ExcelType.XSSF);
|
|
String filename = encodingFilename(sheetName);
|
|
String filename = encodingFilename(sheetName);
|
|
out = new FileOutputStream(getAbsoluteFile(filename));
|
|
out = new FileOutputStream(getAbsoluteFile(filename));
|
|
workbook.write(out);
|
|
workbook.write(out);
|
|
@@ -357,8 +357,6 @@ public class ExcelUtil<T>
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
- System.out.println("3434");
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
log.error("导出Excel异常{}", e.getMessage());
|
|
log.error("导出Excel异常{}", e.getMessage());
|
|
throw new CustomException("导出Excel失败,请联系网站管理员!");
|
|
throw new CustomException("导出Excel失败,请联系网站管理员!");
|
|
}
|
|
}
|