批量驳回接口

This commit is contained in:
wangliwen 2022-12-06 10:06:31 +08:00
parent 9832a37e2c
commit e1abfa6e5d
1 changed files with 21 additions and 0 deletions

View File

@ -419,4 +419,25 @@ public class ActTaskController {
return new Result(); 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();
}
} }