管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-21 ce663f476e7134bb4f9e34d5491fc37be53cc09f
src/main/java/com/lf/server/controller/data/DataCountController.java
@@ -147,10 +147,11 @@
    @SysLog()
    @ApiOperation(value = "下载报告")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18")
            @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18"),
            @ApiImplicitParam(name = "code", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
    })
    @GetMapping(value = "/downloadReport")
    public void downloadReport(Integer id, HttpServletRequest req, HttpServletResponse res) {
    public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) {
        try {
            if (null == id || id < 1) {
                return;
@@ -163,7 +164,7 @@
            UserEntity ue = tokenService.getCurrentUser(req);
            reportService.createReport(ue, re, res);
            reportService.createReport(ue, re, code, res);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }