|
@@ -119,6 +119,9 @@ public class PmsMessage {
|
|
|
String[] split = name.split(",");
|
|
String[] split = name.split(",");
|
|
|
msg = split[0]+"的"+split[1]+"数采的数值近十分钟内不在设定区间内,请前往系统查看。";
|
|
msg = split[0]+"的"+split[1]+"数采的数值近十分钟内不在设定区间内,请前往系统查看。";
|
|
|
}
|
|
}
|
|
|
|
|
+ if (PmsConstants.GENERATE_QHSE_CERT.equals(businessType)) {
|
|
|
|
|
+ msg = "您有QHSE相关证书"+name+"已过期,请处理。"+"["+ DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss")+"]";
|
|
|
|
|
+ }
|
|
|
String url = "";
|
|
String url = "";
|
|
|
|
|
|
|
|
if(PmsConstants.GENERATE_OPERATION.equals(businessType)){
|
|
if(PmsConstants.GENERATE_OPERATION.equals(businessType)){
|
|
@@ -133,7 +136,7 @@ public class PmsMessage {
|
|
|
url=systemUrl + "dingding?id="+businessId+"&type="+businessType+"&userId="+userId;
|
|
url=systemUrl + "dingding?id="+businessId+"&type="+businessType+"&userId="+userId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (PmsConstants.FAILURE_NO_PASS.equals(businessType)||PmsConstants.ALARM_MESSAGE.equals(businessType)) {
|
|
|
|
|
|
|
+ if (PmsConstants.FAILURE_NO_PASS.equals(businessType)||PmsConstants.ALARM_MESSAGE.equals(businessType)||PmsConstants.GENERATE_QHSE_CERT.equals(businessType)) {
|
|
|
//通知设备状态变更为观察使用
|
|
//通知设备状态变更为观察使用
|
|
|
dingtalkSendApi.send(mobile, msg, "text",url);
|
|
dingtalkSendApi.send(mobile, msg, "text",url);
|
|
|
} else {
|
|
} else {
|