|
@@ -278,7 +278,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
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,
|
|
activitiService.sendSopFlowDoneMsg(maxTfCustomFlow.getType(), tfCustomFlowEntity, tfFlowApprove,
|
|
- Long.parseLong(task.getId()), task.getName());
|
|
|
|
|
|
+ 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();
|
|
@@ -1361,10 +1361,11 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
* @param tfFlowApprove
|
|
* @param tfFlowApprove
|
|
* @param taskId
|
|
* @param taskId
|
|
* @param taskName
|
|
* @param taskName
|
|
|
|
+ * @param noticeId
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public void sendSopFlowDoneMsg(TFCustomTypeEnum type, TFCustomFlowEntity tfCustomFlowEntity,
|
|
public void sendSopFlowDoneMsg(TFCustomTypeEnum type, TFCustomFlowEntity tfCustomFlowEntity,
|
|
- TFFlowApprove tfFlowApprove, Long taskId, String taskName) {
|
|
|
|
|
|
+ TFFlowApprove tfFlowApprove, Long taskId, String taskName, Long noticeId) {
|
|
TBCrmDetail tbCrmDetail = null;
|
|
TBCrmDetail tbCrmDetail = null;
|
|
if (Objects.nonNull(taskId)) {
|
|
if (Objects.nonNull(taskId)) {
|
|
tbCrmDetail = (TBCrmDetail) taskService.getVariable(taskId.toString(), SystemConstant.CRM_DETAIL);
|
|
tbCrmDetail = (TBCrmDetail) taskService.getVariable(taskId.toString(), SystemConstant.CRM_DETAIL);
|
|
@@ -1393,10 +1394,16 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
}
|
|
}
|
|
receiveUserId = crmProjectResult.getRegionCoordinatorList().get(0).getUserId();//研究生固定区域协调人
|
|
receiveUserId = crmProjectResult.getRegionCoordinatorList().get(0).getUserId();//研究生固定区域协调人
|
|
}
|
|
}
|
|
-
|
|
|
|
- SysMessage sysMessage = new SysMessage(tfCustomFlowEntity.getCrmNo(), tfCustomFlowEntity.getCode(),
|
|
|
|
- messageTypeEnum, type.name(), crmProjectResult.getServiceUnitId(), receiveUserId,
|
|
|
|
- stringJoiner.toString(), -1L, tfFlowApprove.getSetup(), taskName);
|
|
|
|
- sysMessageService.saveSysMessage(Arrays.asList(sysMessage));
|
|
|
|
|
|
+ int count = 0;
|
|
|
|
+ if (type == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW && tfFlowApprove.getSetup().intValue() == 3) {
|
|
|
|
+ count = sysMessageService.countByInAudit(MessageTypeEnum.CLOUD_MARK_SOP, tfCustomFlowEntity.getCode(),
|
|
|
|
+ noticeId, receiveUserId, tfFlowApprove.getSetup().intValue());
|
|
|
|
+ }
|
|
|
|
+ if (count == 0) {
|
|
|
|
+ SysMessage sysMessage = new SysMessage(tfCustomFlowEntity.getCrmNo(), tfCustomFlowEntity.getCode(),
|
|
|
|
+ messageTypeEnum, type.name(), crmProjectResult.getServiceUnitId(), receiveUserId,
|
|
|
|
+ stringJoiner.toString(), -1L, tfFlowApprove.getSetup(), taskName, noticeId);
|
|
|
|
+ sysMessageService.saveSysMessage(Arrays.asList(sysMessage));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|