This commit is contained in:
hanjian 2024-08-21 11:15:47 +08:00
parent b610f94b2e
commit e62acb95c7

View File

@ -255,14 +255,6 @@ public class ProcessInstanceController {
public ProcessInstanceBean nextExcute(@RequestBody ProcessInputModel model){
Map<String, Object> result = new HashMap<String, Object>();
// 越权校验流程提交人是否为当前待办审核员
TaskEntity task = (TaskEntity) taskService.createTaskQuery()
.taskId(model.getWf_curActInstId()).taskAssignee(model.getWf_sendUserId())
.singleResult();
if (task == null) {
throw new RestException(ExceptionErrorCode.B2001.name(), "task is not found");
}
if(RestUtils.isEmpty(model.getWf_sendUserId())) {
throw new RestException(ExceptionErrorCode.B2001.name(), "wf_sendUserId is null");
}