|
@@ -273,12 +273,15 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
.singleResult();
|
|
.singleResult();
|
|
Optional.ofNullable(task).orElseThrow(() -> ExceptionResultEnum.TASK_NO_DATA.exception());
|
|
Optional.ofNullable(task).orElseThrow(() -> ExceptionResultEnum.TASK_NO_DATA.exception());
|
|
|
|
|
|
- TBCrmDetail tbCrmDetail = (TBCrmDetail) flowApproveParam.getVar().get(SystemConstant.CRM_DETAIL);
|
|
|
|
- taskService.setVariable(task.getId(), SystemConstant.CRM_DETAIL, tbCrmDetail);
|
|
|
|
activitiService.sendSopFlowDoneSms(maxTfCustomFlow.getType(), tfCustomFlowEntity, task.getName(),
|
|
activitiService.sendSopFlowDoneSms(maxTfCustomFlow.getType(), tfCustomFlowEntity, task.getName(),
|
|
Long.parseLong(approveUserIds.get(0)));
|
|
Long.parseLong(approveUserIds.get(0)));
|
|
- activitiService.sendSopFlowDoneMsg(maxTfCustomFlow.getType(), tfCustomFlowEntity, tfFlowApprove,
|
|
|
|
- Long.parseLong(task.getId()), task.getName(), tbCrmDetail.getId());
|
|
|
|
|
|
+ if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW
|
|
|
|
+ || tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
|
|
|
|
+ TBCrmDetail tbCrmDetail = (TBCrmDetail) flowApproveParam.getVar().get(SystemConstant.CRM_DETAIL);
|
|
|
|
+ taskService.setVariable(task.getId(), SystemConstant.CRM_DETAIL, tbCrmDetail);
|
|
|
|
+ activitiService.sendSopFlowDoneMsg(maxTfCustomFlow.getType(), tfCustomFlowEntity, tfFlowApprove,
|
|
|
|
+ Long.parseLong(task.getId()), task.getName(), tbCrmDetail.getId());
|
|
|
|
+ }
|
|
} else if (Objects.nonNull(flowApproveParam.getTaskId())) {
|
|
} else if (Objects.nonNull(flowApproveParam.getTaskId())) {
|
|
taskTemp = taskService.createTaskQuery().taskId(String.valueOf(flowApproveParam.getTaskId()))
|
|
taskTemp = taskService.createTaskQuery().taskId(String.valueOf(flowApproveParam.getTaskId()))
|
|
.singleResult();
|
|
.singleResult();
|
|
@@ -452,8 +455,11 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
new ArrayList<>(approveIdSet));
|
|
new ArrayList<>(approveIdSet));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- TBCrmDetail tbCrmDetail = tbCrmDetailService.findBySopNo(tfCustomFlowEntity.getCode());
|
|
|
|
- taskService.setVariable(task.getId(), SystemConstant.CRM_DETAIL, tbCrmDetail);
|
|
|
|
|
|
+ if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW
|
|
|
|
+ || tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW) {
|
|
|
|
+ TBCrmDetail tbCrmDetail = tbCrmDetailService.findBySopNo(tfCustomFlowEntity.getCode());
|
|
|
|
+ taskService.setVariable(task.getId(), SystemConstant.CRM_DETAIL, tbCrmDetail);
|
|
|
|
+ }
|
|
taskService.setVariable(task.getId(), SystemConstant.FLOW_CUSTOM, tfCustomFlow);
|
|
taskService.setVariable(task.getId(), SystemConstant.FLOW_CUSTOM, tfCustomFlow);
|
|
taskService.setVariable(task.getId(), SystemConstant.FLOW_APPROVE, tfFlowApprove);
|
|
taskService.setVariable(task.getId(), SystemConstant.FLOW_APPROVE, tfFlowApprove);
|
|
taskService.setVariable(task.getId(), SystemConstant.FLOW_ENTITY, tfCustomFlowEntity);
|
|
taskService.setVariable(task.getId(), SystemConstant.FLOW_ENTITY, tfCustomFlowEntity);
|