Merge branch 'dev'
This commit is contained in:
commit
c57003e31c
|
@ -419,4 +419,25 @@ public class ActTaskController {
|
|||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping("batchBackToFirst")
|
||||
@ApiOperation("驳回,回退至第一个用户任务(重新录入表单)")
|
||||
@LogOperation("驳回,回退至第一个用户任务(重新录入表单)")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "comment", value = "驳回审核意见", paramType = "query", dataType = "String")
|
||||
})
|
||||
public Result batchBackToFirst(@RequestBody BatchCompleteDTO batchCompleteDTO) {
|
||||
batchCompleteDTO.getTaskIds().stream()
|
||||
.filter(index -> org.apache.commons.lang3.StringUtils.isNotEmpty(index))
|
||||
.forEach(taskId -> {
|
||||
actTaskService.backToFirst(taskId, batchCompleteDTO.getComment());
|
||||
});
|
||||
return new Result().ok("批量驳回成功");
|
||||
// if (StringUtils.isEmpty(taskId)) {
|
||||
// return new Result().error(ErrorCode.PARAMS_GET_ERROR);
|
||||
// }
|
||||
// actTaskService.backToFirst(taskId, comment);
|
||||
// return new Result();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue