whyclxw
2025-03-28 cc86bb05bba08200a2e2bc301bb835f52a708a1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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.*;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
 
@Api(tags = "excel导出")
@RestController
@RequestMapping("excelExport")
public class ExcelExportController {
 
    @Autowired
    private ExcelExportService service;
 
    @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);
    }
 
}