| | |
| | | |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.domain.form.RejectTaskForm; |
| | | import com.ycl.domain.form.*; |
| | | import com.ycl.domain.query.TaskQuery; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.service.ProjectProcessService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.form.ProjectProcessForm; |
| | | import com.ycl.domain.query.ProjectProcessQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return projectProcessService.taskIsAuditing(processDefId, taskId); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/reject") |
| | | @ApiOperation(value = "驳回", notes = "驳回") |
| | | @PostMapping("/detail/task/delegation") |
| | | @ApiOperation(value = "转办", notes = "将任务委托给其它人办理") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result rejectTask(@RequestBody RejectTaskForm form) { |
| | | return projectProcessService.rejectTask(form); |
| | | public Result taskDelegation(@RequestBody TaskDelegationForm form) { |
| | | return projectProcessService.taskDelegation(form); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/jump") |
| | | @ApiOperation(value = "跳过任务", notes = "跳过任务,不带表单数据的完成任务") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result taskJump(@RequestBody TaskJumpForm form) { |
| | | return projectProcessService.taskJump(form); |
| | | } |
| | | |
| | | @GetMapping("/to_do_task") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | |
| | | public Result getAllTodoTask(ProjectProcessQuery query) { |
| | | |
| | | Result result = Result.ok(); |
| | | projectProcessService.getAllTodoTask("", (int) query.getPageSize(), (int) query.getCurrentPage(), result); |
| | | projectProcessService.getIndexTodoTask("", (int) query.getPageSize(), (int) query.getCurrentPage(), result); |
| | | return result; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/detail/task/supervise") |
| | | @ApiOperation(value = "督办", notes = "督办") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result taskSupervise(@Validated @RequestBody TaskSuperviseForm form) { |
| | | return projectProcessService.taskSupervise(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); |
| | | } |
| | | } |