@RequestMapping(value="/task/{taskId}/return", method = RequestMethod.PUT, name="任务回退")
@ResponseStatus(value = HttpStatus.OK)
@Transactional(propagation = Propagation.REQUIRED)
public List<TaskResponse> returnTask(@PathVariable("taskId") String taskId,@RequestBody(required=false) TaskActionRequest actionRequest) {
List<TaskResponse> responses = new ArrayList<TaskResponse>();
Task task = getTaskFromRequest(taskId);
if(task.getAssignee()==null){
taskService.setAssignee(taskId, Authentication.getAuthenticatedUserId());
}
/* List<Task> tasks = taskExtService.returnTask(task.getId());
for(Task nextTask : tasks){
TaskExt taskExt = taskExtService.getTaskExtById(nextTask.getId());
responses.add(restResponseFactory.createTaskResponse(taskExt));
}*/
return responses;
}
TaskReturnResource.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:plumdo-work
作者:
评论列表
文章目录