zhaops 4 年 前
コミット
df994417df
1 ファイル変更7 行追加0 行削除
  1. 7 0
      src/main/java/com/diagbot/util/ExcelUtils.java

+ 7 - 0
src/main/java/com/diagbot/util/ExcelUtils.java

@@ -45,6 +45,13 @@ public class ExcelUtils {
         userExport(list, pojoClass, fileName, response, exportParams);
     }
 
+    public static void exportXSSFExcelUser(List<?> list, String title, String sheetName, Class<?> pojoClass, String fileName,
+                                       HttpServletResponse response) {
+        ExportParams exportParams = new ExportParams(title, sheetName, ExcelType.XSSF);
+        exportParams.setStyle(ExcelExportStylerUserImpl.class);
+        userExport(list, pojoClass, fileName, response, exportParams);
+    }
+
     public static void exportExcelDynamicCol(List<ExcelExportEntity> entityList, Collection<?> dataSet, String title, String sheetName, String fileName,
                                     HttpServletResponse response) {
         ExportParams exportParams = new ExportParams(title, sheetName);