From 298e75c24c0f790f8f1af0fae40e5783b4590953 Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期五, 14 十月 2022 10:10:06 +0800 Subject: [PATCH] 更新 --- src/main/java/com/whyc/controller/ExcelExportController.java | 21 +++++++++++++-------- 1 files changed, 13 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..c8e9a3d 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,16 @@ @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); } } -- Gitblit v1.9.1