| | |
| | | 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.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.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; |
| | |
| | | * 在线制图 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综合展示\\在线制图") |
| | | @Tag(name = "综合展示\\在线制图") |
| | | @RestController |
| | | @RequestMapping("/export") |
| | | public class ExportController extends BaseController { |
| | |
| | | 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) { |
| | |
| | | } |
| | | |
| | | @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") |
| | |
| | | } |
| | | |
| | | @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) { |