From 486301ef1bee7a85ac03d2654fd6db1bc9713f5c Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 16 十二月 2025 14:56:38 +0800
Subject: [PATCH] 【丽水】随访统计导出 导出的文件名应为   X月出院随访统计

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
index a766ed8..0b390aa 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
@@ -419,10 +419,14 @@
 
         ExcelUtil<ServiceSubtaskStatistic> util = new ExcelUtil<ServiceSubtaskStatistic>(ServiceSubtaskStatistic.class);
 
+        String sheetName = "";
+        String fileName = "";
         if (active.equals("ls") || active.equals("druid")) {
-            util.exportExcel(response, sfStatistics, LocalDate.now().getMonthValue() + "鏈堝嚭闄㈤殢璁跨粺璁¤〃");
+            fileName = sheetName = LocalDate.now().getMonthValue() + "鏈堝嚭闄㈤殢璁跨粺璁¤〃";
+            util.exportExcelWithFileName(response, sfStatistics, sheetName, fileName);
         } else {
-            util.exportExcel(response, sfStatistics, "闅忚缁熻瀵煎嚭");
+            sheetName = "闅忚缁熻瀵煎嚭";
+            util.exportExcel(response, sfStatistics, sheetName);
         }
     }
 

--
Gitblit v1.9.3