| | |
| | | import com.terra.system.service.sys.DownlogService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import com.terra.system.service.sys.UserService; |
| | | 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("/apply") |
| | | public class ApplyController extends BaseController { |
| | |
| | | DownloadService downloadService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入数据申请") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(summary = "插入数据申请") |
| | | @Parameters({ |
| | | @Parameter(name = "dr", description = "请求下载实体") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/insertApply") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询申请") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "员"), |
| | | @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-31 23:00:00"), |
| | | @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 = "uname", description = "用户名", in = ParameterIn.QUERY, example = "员"), |
| | | @Parameter(name = "status", description = "状态", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"), |
| | | @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-12-31 23:00:00"), |
| | | @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<Object> selectByPage(String uname, Integer status, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询待审核数") |
| | | @Operation(summary = "查询待审核数") |
| | | @GetMapping(value = "/selectSubmits") |
| | | public ResponseMsg<Object> selectSubmits(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询流程") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "查询流程") |
| | | @Parameters({ |
| | | @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectFlows") |
| | | public ResponseMsg<Object> selectFlows(Integer applyid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "废弃申请") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "废弃申请") |
| | | @Parameters({ |
| | | @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForDiscard") |
| | | public ResponseMsg<Object> updateForDiscard(Integer applyid, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "重新提交") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "重新提交") |
| | | @Parameters({ |
| | | @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForResubmit") |
| | | public ResponseMsg<Object> updateForResubmit(Integer applyid, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "提交流程") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "提交流程") |
| | | @Parameters({ |
| | | @Parameter(name = "flowId", description = "申请流程ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForSubmit") |
| | | public ResponseMsg<Object> updateForSubmit(Integer flowId, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "打回流程") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "打回流程") |
| | | @Parameters({ |
| | | @Parameter(name = "flowId", description = "申请流程ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForReject") |
| | | public ResponseMsg<Object> updateForReject(Integer flowId, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载文件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query") |
| | | @Operation(summary = "下载文件") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @GetMapping(value = "/downloadFile") |