New file |
| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Statistic.MonStic; |
| | | import com.whyc.service.ExportService; |
| | | 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.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.text.ParseException; |
| | | |
| | | @RestController |
| | | @Api(tags = "导出文件") |
| | | @RequestMapping("export") |
| | | public class ExportFileController { |
| | | @Autowired |
| | | private ExportService service; |
| | | |
| | | @PostMapping("exportBattTinfStatistic") |
| | | @ApiOperation(value = "单节数量统计导出(1.2.14)") |
| | | public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp ,@RequestBody MonStic stic) throws ParseException { |
| | | service.exportBattTinfStatistic(req,resp,stic); |
| | | } |
| | | } |