whyclxw
9 小时以前 c80da13f02f943436ce00e55ccbc719b2c31eb41
src/main/java/com/whyc/controller/ExportFileController.java
@@ -1,5 +1,8 @@
package com.whyc.controller;
import com.whyc.dto.Real.ExportTinfDataDto;
import com.whyc.dto.RealDataStatic.ResRealExportAc;
import com.whyc.dto.Statistic.BattCompareStic;
import com.whyc.dto.Statistic.MonStic;
import com.whyc.service.ExportService;
import io.swagger.annotations.Api;
@@ -9,6 +12,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
@RestController
@@ -20,7 +24,25 @@
    @PostMapping("exportBattTinfStatistic")
    @ApiOperation(value = "单节数量统计导出(1.2.14)")
    public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp ) throws ParseException {
        service.exportBattTinfStatistic(req,resp);
    public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp ,@RequestBody MonStic stic) throws ParseException {
        service.exportBattTinfStatistic(req,resp,stic);
    }
    @PostMapping("exportTinfDataByTestRecordCount")
    @ApiOperation(value = "历史测试数据导出")
    public void exportTinfDataByTestRecordCount(HttpServletRequest req, HttpServletResponse resp ,@RequestBody ExportTinfDataDto dto) throws ParseException, IOException {
        service.exportTinfDataByTestRecordCount(req,resp,dto);
    }
    @PostMapping("exportBattCompare")
    @ApiOperation(value = "蓄电池组对比分析导出(2.5.1/2/3)")
    public void exportBattCompare(HttpServletRequest req, HttpServletResponse resp ,@RequestBody BattCompareStic stic) throws ParseException, IOException {
        service.exportBattCompare(req,resp,stic);
    }
    @PostMapping("exportRealStaticAc")
    @ApiOperation(value = "实时数据统计曲线-交流单元导出(2.2.1)")
    public void exportRealStaticAc(HttpServletRequest req, HttpServletResponse resp ,@RequestBody ResRealExportAc exportAc) throws ParseException, IOException {
        service.exportRealStaticAc(req,resp,exportAc);
    }
}