|
@@ -139,11 +139,11 @@ public class PushUtil {
|
|
|
pushParam.setType(" ");
|
|
|
}
|
|
|
templateMessage.addData(new WxMpTemplateData("thing4", pushParam.getType()));
|
|
|
- //恢复原因
|
|
|
- if (StrUtil.isBlank(pushParam.getRecoverCause())) {
|
|
|
- pushParam.setRecoverCause(" ");
|
|
|
+ //告警值
|
|
|
+ if (StrUtil.isBlank(pushParam.getValue())) {
|
|
|
+ pushParam.setValue(" ");
|
|
|
}
|
|
|
- templateMessage.addData(new WxMpTemplateData("number31", pushParam.getRecoverCause()));
|
|
|
+ templateMessage.addData(new WxMpTemplateData("character_string47", pushParam.getValue()));
|
|
|
//恢复原因
|
|
|
if (StrUtil.isBlank(pushParam.getRecoverCause())) {
|
|
|
pushParam.setRecoverCause(" ");
|
|
@@ -197,18 +197,18 @@ public class PushUtil {
|
|
|
if (StrUtil.isBlank(pushParam.getStatus())) {
|
|
|
pushParam.setStatus(" ");
|
|
|
}
|
|
|
- templateMessage.addData(new WxMpTemplateData("phrases3", pushParam.getStatus()));
|
|
|
+ templateMessage.addData(new WxMpTemplateData("phrase3", pushParam.getStatus()));
|
|
|
//设备位置
|
|
|
if (StrUtil.isBlank(pushParam.getLocation())) {
|
|
|
pushParam.setLocation(" ");
|
|
|
}
|
|
|
- templateMessage.addData(new WxMpTemplateData("thing8", pushParam.getLocation()));
|
|
|
+ templateMessage.addData(new WxMpTemplateData("thing11", pushParam.getLocation()));
|
|
|
//上线时间
|
|
|
if (Objects.isNull(pushParam.getOnlineTime())) {
|
|
|
pushParam.setOnlineTime(new Date());
|
|
|
}
|
|
|
String onlineTimeFormat = DateUtil.format(pushParam.getOnlineTime(), "yyyy-MM-dd HH:mm:ss");
|
|
|
- templateMessage.addData(new WxMpTemplateData("time6", onlineTimeFormat));
|
|
|
+ templateMessage.addData(new WxMpTemplateData("time4", onlineTimeFormat));
|
|
|
|
|
|
try {
|
|
|
pushCode = wxMpService.getTemplateMsgService().sendTemplateMsg(templateMessage);
|
|
@@ -251,7 +251,7 @@ public class PushUtil {
|
|
|
if (StrUtil.isBlank(pushParam.getStatus())) {
|
|
|
pushParam.setStatus(" ");
|
|
|
}
|
|
|
- templateMessage.addData(new WxMpTemplateData("phrases3", pushParam.getStatus()));
|
|
|
+ templateMessage.addData(new WxMpTemplateData("phrase3", pushParam.getStatus()));
|
|
|
//设备位置
|
|
|
if (StrUtil.isBlank(pushParam.getLocation())) {
|
|
|
pushParam.setLocation(" ");
|