whyclxw
2025-02-13 f4739452add5718a1e4d55172ba85c4d779747d7
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
package com.whyc.controller;
 
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;
 
    @GetMapping("exportHis")
    @ApiOperation(value = "历史数据导出")
    public void exportHis(@RequestParam int lockId, @RequestParam String startTime, @RequestParam String endTime,HttpServletRequest req, HttpServletResponse resp ) throws ParseException {
        service.exportHis(lockId,startTime,endTime,req,resp);
    }
}