ソースを参照

改导出文件名

tianwu.sun 2 ヶ月 前
コミット
460e365d10

+ 1 - 1
src/main/java/com/bootdo/datas/controller/DataController.java

@@ -286,7 +286,7 @@ public class DataController {
         log.info("list size:" + list.size());
         // 导出xlsx操作
         try {
-            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据目录备案导出信息");
+            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据备案导出信息");
         } catch (Exception e) {
             log.error("export error", e);
         }

+ 1 - 1
src/main/java/com/bootdo/datas/controller/DataExpertController.java

@@ -236,7 +236,7 @@ public class DataExpertController {
         log.info("list size:" + list.size());
         // 导出xlsx操作
         try {
-            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据目录备案导出信息");
+            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据备案导出信息");
         } catch (Exception e) {
             log.error("export error", e);
         }

+ 1 - 1
src/main/java/com/bootdo/datas/controller/DataUnionController.java

@@ -223,7 +223,7 @@ public class DataUnionController {
         log.info("list size:" + list.size());
         // 导出xlsx操作
         try {
-            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据目录备案导出信息");
+            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据备案导出信息");
         } catch (Exception e) {
             log.error("export error", e);
         }

+ 1 - 1
src/main/java/com/bootdo/datas/controller/DataVerifyController.java

@@ -227,7 +227,7 @@ public class DataVerifyController {
         log.info("list size:" + list.size());
         // 导出xlsx操作
         try {
-            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据目录备案导出信息");
+            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据备案导出信息");
         } catch (Exception e) {
             log.error("export error", e);
         }

+ 1 - 1
src/main/java/com/bootdo/datas/controller/GyDataImportController.java

@@ -171,7 +171,7 @@ public class GyDataImportController {
         log.info("list size:" + list.size());
         // 导出xlsx操作
         try {
-            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据目录备案导出信息");
+            ExcelUtils.export(responses, GyDataExcelDO.class, list, "数据备案导出信息");
         } catch (Exception e) {
             log.error("export error", e);
         }

+ 2 - 2
src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

@@ -729,8 +729,8 @@ public class GyDataServiceImpl implements GyDataService {
             list.add(data);
         }
         log.info("list size:" + list.size());
-        String decFile = bootdoConfig.getUploadPath() + "数据目录备案导出信息.xlsx";
-        String encFile = bootdoConfig.getUploadPath() + "数据目录备案加密导出信息.xlsx";
+        String decFile = bootdoConfig.getUploadPath() + "数据备案导出信息.xlsx";
+        String encFile = bootdoConfig.getUploadPath() + "数据备案加密导出信息.xlsx";
 
         ExcelUtils.encryptExport(responses, EncryptExcelDO.class,list,bootdoConfig.getCrtPrival(),decFile,encFile);
     }

+ 1 - 1
src/main/java/com/bootdo/datas/tools/ExcelUtils.java

@@ -72,7 +72,7 @@ public class ExcelUtils {
      */
     public static void encryptExport(HttpServletResponse response, Class clazz, List list,String crtPrival, String fileName,String encName) throws Exception {
         OutputStream os = null;
-        String excelNames = "数据目录备案加密导出信息";
+        String excelNames = "数据备案加密导出信息";
         try {
             EasyExcel.write(fileName, clazz).inMemory(true) // 注意,此项配置不能少
                     .registerWriteHandler(new WaterMarkHandler(sheetName)).sheet(sheetName)