|
@@ -83,6 +83,7 @@ public class BpmMessageServiceImpl implements BpmMessageService {
|
|
// SupplierDO supplier = supplierService.getByBpmProcessId(reqDTO.getProcessInstanceId());
|
|
// SupplierDO supplier = supplierService.getByBpmProcessId(reqDTO.getProcessInstanceId());
|
|
// String msg = "【DeepOil】供应商审核流程"+"-"+supplier.getCode()+"-"+supplier.getName()+",请前往 http://1.94.244.160:91/ 处理。"+"["+new Date()+"]";
|
|
// String msg = "【DeepOil】供应商审核流程"+"-"+supplier.getCode()+"-"+supplier.getName()+",请前往 http://1.94.244.160:91/ 处理。"+"["+new Date()+"]";
|
|
String msg = "【DeepOil】供应商审核流程 - 有新的供应商信息需要审核"+",请前往 http://1.94.244.160:91/ 处理。"+"["+new Date()+"]";
|
|
String msg = "【DeepOil】供应商审核流程 - 有新的供应商信息需要审核"+",请前往 http://1.94.244.160:91/ 处理。"+"["+new Date()+"]";
|
|
|
|
+ String url = "";
|
|
if ("故障上报流程".equals(reqDTO.getProcessInstanceName())){
|
|
if ("故障上报流程".equals(reqDTO.getProcessInstanceName())){
|
|
String templateCode = "failure-report";
|
|
String templateCode = "failure-report";
|
|
templateParams.put("businessType", "failureReport");
|
|
templateParams.put("businessType", "failureReport");
|
|
@@ -90,7 +91,8 @@ public class BpmMessageServiceImpl implements BpmMessageService {
|
|
templateParams.put("processcode", reqDTO.getProcessInstanceId());
|
|
templateParams.put("processcode", reqDTO.getProcessInstanceId());
|
|
notifyMessageSendApi.sendSingleMessageToAdmin(new NotifySendSingleToUserReqDTO()
|
|
notifyMessageSendApi.sendSingleMessageToAdmin(new NotifySendSingleToUserReqDTO()
|
|
.setUserId(reqDTO.getAssigneeUserId()).setTemplateCode(templateCode).setTemplateParams(templateParams));
|
|
.setUserId(reqDTO.getAssigneeUserId()).setTemplateCode(templateCode).setTemplateParams(templateParams));
|
|
- msg = "【PMS】故障上报流程 - 有新的故障上报需要审核"+",请前往 https://iot.deepoil.cc 进行处理。"+"["+ DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss")+"]";
|
|
|
|
|
|
+ msg = "【PMS】您有新的故障上报流程待处理,请审批。"+"["+ DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss")+"]";
|
|
|
|
+ url="https://iot.deepoil.cc/bpm/process-instance/detail?id="+reqDTO.getProcessInstanceId();
|
|
} else if ("委外维修工单流程".equals(reqDTO.getProcessInstanceName())){
|
|
} else if ("委外维修工单流程".equals(reqDTO.getProcessInstanceName())){
|
|
String templateCode = "maintain-out";
|
|
String templateCode = "maintain-out";
|
|
templateParams.put("businessType", "maintainOut");
|
|
templateParams.put("businessType", "maintainOut");
|
|
@@ -98,9 +100,10 @@ public class BpmMessageServiceImpl implements BpmMessageService {
|
|
templateParams.put("processcode", reqDTO.getProcessInstanceId());
|
|
templateParams.put("processcode", reqDTO.getProcessInstanceId());
|
|
notifyMessageSendApi.sendSingleMessageToAdmin(new NotifySendSingleToUserReqDTO()
|
|
notifyMessageSendApi.sendSingleMessageToAdmin(new NotifySendSingleToUserReqDTO()
|
|
.setUserId(reqDTO.getAssigneeUserId()).setTemplateCode(templateCode).setTemplateParams(templateParams));
|
|
.setUserId(reqDTO.getAssigneeUserId()).setTemplateCode(templateCode).setTemplateParams(templateParams));
|
|
- msg = "【系统消息】有新的委外维修流程"+",请前往 https://iot.deepoil.cc 进行处理。"+"["+ DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss")+"]";
|
|
|
|
|
|
+ msg = "【PMS】您有新的委外维修流程,请审批。"+"["+ DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss")+"]";
|
|
|
|
+ url="https://iot.deepoil.cc/bpm/process-instance/detail?id="+reqDTO.getProcessInstanceId();
|
|
}
|
|
}
|
|
- dingtalkSendApi.send(user.getMobile(), msg);
|
|
|
|
|
|
+ dingtalkSendApi.send(user.getMobile(), msg,"link",url);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|