whycxzp
2024-01-13 d58292a7a895984300f3ee69b81c6eb4f87e345f
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);
    }
}