From 124e7de0dc6dd727677fc04c53774c415e8783db Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 02 二月 2026 14:07:13 +0800
Subject: [PATCH] 优化代码

---
 fzzy-igdss-web/src/main/java/com/fzzy/common/ExportController.java |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/fzzy-igdss-web/src/main/java/com/fzzy/common/ExportController.java b/fzzy-igdss-web/src/main/java/com/fzzy/common/ExportController.java
index 78b203e..1f8ed16 100644
--- a/fzzy-igdss-web/src/main/java/com/fzzy/common/ExportController.java
+++ b/fzzy-igdss-web/src/main/java/com/fzzy/common/ExportController.java
@@ -42,11 +42,7 @@
     @Resource
     private SysDeptService sysDeptService;
     @Resource
-    private ReportInDetailPR reportInDetailPR;
-    @Resource
-    private ReportOutDetailPR reportOutDetailPR;
-    @Resource
-    private SuperInventoryReportPR superInventoryReportPR;
+    private ReportInoutPR reportInoutPR;
     @Resource
     private CompanyPR companyPR;
     @Resource
@@ -70,6 +66,17 @@
         param.setBizId(bizId);
         param.setEntityName(entityName);
         exportManager.renderWordDownload(param, response);
+    }
+
+    /**
+     * 瀵煎嚭word骞朵笅杞�
+     *
+     * @param response
+     */
+    @RequestMapping("/download-inout-excel")
+    public void downloadInoutExcel(HttpServletResponse response) {
+
+        exportManager.downloadInoutExcel(response);
     }
 
     /**
@@ -127,7 +134,7 @@
         //缁勮瀹為檯瀵煎嚭鏁版嵁
         if (StringUtils.isNotEmpty(param.getType()) && "IN".equals(param.getType())) {
             sheetName = "鍏ュ簱鎶ヨ〃鏁版嵁";
-            list = reportInDetailPR.listRecord(param);
+            list = reportInoutPR.listRecord(param);
             List<InoutRecordInExport> exportList = new ArrayList<>();
             for (InoutRecord record : list) {
                 InoutRecordInExport export = new InoutRecordInExport();
@@ -154,7 +161,7 @@
 
         if (StringUtils.isNotEmpty(param.getType()) && "OUT".equals(param.getType())) {
             sheetName = "鍑哄簱鎶ヨ〃鏁版嵁";
-            list = reportOutDetailPR.listRecord(param);
+            list = reportInoutPR.listRecord(param);
             List<InoutRecordOutExport> exportList = new ArrayList<>();
             for (InoutRecord record : list) {
                 InoutRecordOutExport export = new InoutRecordOutExport();
@@ -181,7 +188,7 @@
 
         if (StringUtils.isNotEmpty(param.getType()) && "IN_DETAIL".equals(param.getType())) {
             sheetName = "鍏ュ簱鏄庣粏鎶ヨ〃鏁版嵁";
-            list = reportInDetailPR.listRecord(param);
+            list = reportInoutPR.listRecord(param);
             List<InoutRecordDetailInExport> exportList = new ArrayList<>();
             for (InoutRecord record : list) {
                 InoutRecordDetailInExport export = new InoutRecordDetailInExport();
@@ -210,7 +217,7 @@
 
         if (StringUtils.isNotEmpty(param.getType()) && "OUT_DETAIL".equals(param.getType())) {
             sheetName = "鍑哄簱鏄庣粏鎶ヨ〃鏁版嵁";
-            list = reportOutDetailPR.listRecord(param);
+            list = reportInoutPR.listRecord(param);
             List<InoutRecordDetailOutExport> exportList = new ArrayList<>();
             for (InoutRecord record : list) {
                 InoutRecordDetailOutExport export = new InoutRecordDetailOutExport();
@@ -249,7 +256,7 @@
         //璁剧疆鏍囬
         String sheetName = "搴撳瓨鎶ヨ〃鏁版嵁";
         //鏌ヨ鏁版嵁
-        List<SuperInventoryReportData> list = superInventoryReportPR.getReportData(param);
+        List<SuperInventoryReportData> list = reportInoutPR.getStoreData(param);
         //鑾峰彇鍒嗗簱缂栫爜瀵瑰簲鐨勫垎搴撳悕绉�
         String deptName = "";
         SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null));

--
Gitblit v1.9.3