| | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:page')") |
| | | public Result page(ProjectProcessQuery query) { |
| | | public Result page(@RequestBody ProjectProcessQuery query) { |
| | | return projectProcessService.page(query); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @GetMapping("/detail/{projectId}/{processId}") |
| | | @PostMapping("/detail") |
| | | @ApiOperation(value = "获取项目流程详情信息", notes = "获取项目流程详情信息") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result detail(@PathVariable("projectId") Long projectId, @PathVariable("processId") String processId) { |
| | | return projectProcessService.detail(projectId, processId); |
| | | public Result detail(@RequestBody ProjectProcessForm form) { |
| | | return projectProcessService.detail(form); |
| | | } |
| | | |
| | | @PostMapping("/start/{projectId}/{processDefId}") |
| | | @PostMapping("/start") |
| | | @ApiOperation(value = "启动流程", notes = "启动流程") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:start')") |
| | | public Result startProcess(@PathVariable("projectId") Long projectId, @PathVariable("processDefId") String processDefId) { |
| | | return projectProcessService.startProcess(projectId, processDefId); |
| | | public Result startProcess(@RequestBody @Validated ProjectProcessForm form) { |
| | | return projectProcessService.startProcess(form); |
| | | } |
| | | |
| | | @GetMapping("/detail/task/list") |
| | |
| | | return projectProcessService.taskJump(form); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/wait") |
| | | @ApiOperation(value = "容缺任务", notes = "容缺任务,不带表单数据的完成任务") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result taskWait(@RequestBody TaskWaitForm form) { |
| | | return projectProcessService.taskWait(form); |
| | | } |
| | | |
| | | @GetMapping("/to_do_task") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:page')") |
| | |
| | | |
| | | Result result = Result.ok(); |
| | | projectProcessService.getIndexTodoTask("", (int) query.getPageSize(), (int) query.getCurrentPage(), result); |
| | | return result; |
| | | } |
| | | |
| | | @GetMapping("/wait_task") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:page')") |
| | | public Result getWaitTask(ProjectProcessQuery query) { |
| | | Result result = Result.ok(); |
| | | projectProcessService.getIndexWaitTask("", (int) query.getPageSize(), (int) query.getCurrentPage(), result); |
| | | return result; |
| | | } |
| | | |
| | |
| | | public Result taskSupervise(@Validated @RequestBody TaskSuperviseForm form) { |
| | | return projectProcessService.taskSupervise(form); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/teamwork") |
| | | @ApiOperation(value = "发起协同办理", notes = "发起协同办理") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result taskTeamwork(@Validated @RequestBody TaskTeamWorkForm form) { |
| | | return projectProcessService.taskTeamwork(form); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/hangup") |
| | | @ApiOperation(value = "挂起任务", notes = "挂起任务") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result taskHangup(@Validated @RequestBody TaskHangupForm form) { |
| | | return projectProcessService.taskHangup(form); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/hangup/cancel") |
| | | @ApiOperation(value = "取消挂起任务", notes = "取消挂起任务") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result cancelTaskHangup(@Validated @RequestBody TaskHangupForm form) { |
| | | return projectProcessService.cancelTaskHangup(form); |
| | | } |
| | | } |