管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-11 30272471be13ecb9a1a711a5c037fe27127c9056
src/main/java/com/lf/server/controller/sys/ReportController.java
@@ -185,10 +185,10 @@
    @SysLog()
    @ApiOperation(value = "下载报告")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
            @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "7")
    })
    @GetMapping(value = "/downloadReport")
    public void downloadReport(Integer id, HttpServletResponse res) {
    public void downloadReport(Integer id, HttpServletRequest req, HttpServletResponse res) {
        try {
            if (null == id || id < 1) {
                return;
@@ -199,7 +199,9 @@
                return;
            }
            reportService.createReport(re, res);
            UserEntity ue = tokenService.getCurrentUser(req);
            reportService.createReport(ue, re, res);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }