From b46f7fa6d77852ae9e28a062da234a2ddf9405fb Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期一, 31 三月 2025 16:09:51 +0800
Subject: [PATCH] 2025-3-22定制修改导出去掉容量和连接条

---
 src/main/java/com/whyc/controller/ExcelExportController.java |   33 +++++++++++++++++++++++++--------
 1 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ExcelExportController.java b/src/main/java/com/whyc/controller/ExcelExportController.java
index 58eaf22..268857c 100644
--- a/src/main/java/com/whyc/controller/ExcelExportController.java
+++ b/src/main/java/com/whyc/controller/ExcelExportController.java
@@ -1,15 +1,14 @@
 package com.whyc.controller;
 
+import com.whyc.dto.BattGroupStationInfoWithFileParam;
 import com.whyc.service.ExcelExportService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
 
 @Api(tags = "excel瀵煎嚭")
 @RestController
@@ -19,10 +18,28 @@
     @Autowired
     private ExcelExportService service;
 
-    @ApiOperation("鍐呴樆璁℃祴璇�")
-    @GetMapping("resTestReport")
-    public void resTestReport(@RequestParam String fileId,@RequestParam(required = false) String fileId2,@RequestParam String volPic,@RequestParam String resPic, HttpServletResponse response){
-        service.resTestReport(fileId,response);
+    @ApiOperation("鍐呴樆璁℃祴璇�-鍗曟暟鎹垎鏋愬鍑�")
+    @PostMapping("resTestReport")
+    public void resTestReport(@RequestBody BattGroupStationInfoWithFileParam info, HttpServletResponse response) throws IOException {
+        service.resTestReport(info,response);
+    }
+
+    @ApiOperation("鍐呴樆璁℃祴璇�-瀵规瘮鍒嗘瀽瀵煎嚭")
+    @PostMapping("resTestCompareReport")
+    public void resTestCompareReport(@RequestParam String fileId,@RequestParam String fileId2,@RequestBody BattGroupStationInfoWithFileParam dto, HttpServletResponse response) throws IOException {
+        service.resTestCompareReport(fileId,fileId2,dto,response);
+    }
+
+    @ApiOperation("鍐呴樆璁℃祴璇�-鍗曟暟鎹垎鏋愬鍑�(瀹氬埗鍘婚櫎瀹归噺鍜岃繛鎺ユ潯)")
+    @PostMapping("resTestReport_cg")
+    public void resTestReport_cg(@RequestBody BattGroupStationInfoWithFileParam info, HttpServletResponse response) throws IOException {
+        service.resTestReport_cg(info,response);
+    }
+
+    @ApiOperation("鍐呴樆璁℃祴璇�-瀵规瘮鍒嗘瀽瀵煎嚭(瀹氬埗鍘婚櫎瀹归噺鍜岃繛鎺ユ潯)")
+    @PostMapping("resTestCompareReport_cg")
+    public void resTestCompareReport_cg(@RequestParam String fileId,@RequestParam String fileId2,@RequestBody BattGroupStationInfoWithFileParam dto, HttpServletResponse response) throws IOException {
+        service.resTestCompareReport_cg(fileId,fileId2,dto,response);
     }
 
 }

--
Gitblit v1.9.1