| | |
| | | |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.domain.form.RejectTaskForm; |
| | | import com.ycl.domain.form.TaskDelegationForm; |
| | | import com.ycl.domain.form.TaskJumpForm; |
| | | import com.ycl.domain.query.TaskQuery; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | return projectProcessService.taskList(query); |
| | | } |
| | | |
| | | @GetMapping("/detail/task/is/auditing") |
| | | @ApiOperation(value = "获取任务是否是审批节点", notes = "获取任务是否是审批节点") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | public Result taskIsAuditing(String processDefId, String taskId) { |
| | | return projectProcessService.taskIsAuditing(processDefId, taskId); |
| | | } |
| | | |
| | | @PostMapping("/detail/task/delegation") |
| | | @ApiOperation(value = "转办", notes = "将任务委托给其它人办理") |
| | | // @PreAuthorize("@ss.hasPermi('projectProcess:detail')") |
| | | 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; |
| | | } |
| | | |