13693261870
2 天以前 542a030a93de7dbc39e185d4ce355c5894e3cd5b
se-system/src/main/java/com/terra/system/controller/show/ExportController.java
@@ -1,24 +1,25 @@
package com.terra.system.controller.show;
import com.terra.system.annotation.SysLog;
import com.terra.system.controller.all.BaseController;
import com.terra.system.entity.all.HttpStatus;
import com.terra.system.entity.all.ResponseMsg;
import com.terra.common.annotation.SysLog;
import com.terra.common.controller.all.BaseController;
import com.terra.common.entity.all.HttpStatus;
import com.terra.common.entity.all.ResponseMsg;
import com.terra.system.entity.data.DownloadEntity;
import com.terra.system.entity.show.ExportEntity;
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.helper.StringHelper;
import com.terra.system.helper.WebHelper;
import com.terra.common.helper.StringHelper;
import com.terra.common.helper.WebHelper;
import com.terra.system.service.data.DownloadService;
import com.terra.system.service.show.ExportService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -28,7 +29,7 @@
 * 在线制图
 * @author WWW
 */
@Api(tags = "综合展示\\在线制图")
@Tag(name = "综合展示\\在线制图")
@RestController
@RequestMapping("/export")
public class ExportController  extends BaseController {
@@ -45,11 +46,11 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -76,9 +77,9 @@
    }
    @SysLog()
    @ApiOperation(value = "新建出图")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "在线制图实体类", dataType = "ExportEntity", paramType = "body")
    @Operation(summary = "新建出图")
    @Parameters({
            @Parameter(name = "entity", description = "在线制图实体类")
    })
    @ResponseBody
    @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8")
@@ -106,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载出图")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载出图")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {