Commit f802b9e7 authored by suhuiguang's avatar suhuiguang

1.控制值

parent 7bf45c8c
......@@ -657,7 +657,7 @@ public class CommonServiceImpl implements ICommonService {
cmWorkflowService.assign(flowTaskVo);
//修改待办
List<TaskV2Model> result = Systemctl.taskV2Client.selectListByRelationId(instanceId).getResult();
TaskV2Model taskV2Model = result.stream().filter(r -> r.getFlowCode().equals(taskId)).findFirst().orElse(null);
TaskV2Model taskV2Model = result.stream().filter(r -> r.getFlowCode()!= null && r.getFlowCode().equals(taskId)).findFirst().orElse(null);
ReginParams reginParams = JSONObject.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
taskV2Model.setExecuteUserIds(reginParams.getUserModel().getUserId());
taskV2Model.setTaskStatus(FlowStatusEnum.TO_BE_TRANSFER.getCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment