|
|
@ -127,7 +127,7 @@ public class MessageServiceImpl implements MessageService { |
|
|
|
.createUser(CommonConstant.SYSTEM_USER) |
|
|
|
.createUser(CommonConstant.SYSTEM_USER) |
|
|
|
.params(new HashMap<String,String>(){{ |
|
|
|
.params(new HashMap<String,String>(){{ |
|
|
|
put("projectName",entity.getStationName()); |
|
|
|
put("projectName",entity.getStationName()); |
|
|
|
put("deviceName", Optional.ofNullable(entity.getDeviceName()).orElse("未知设备")); |
|
|
|
put("deviceName", Optional.ofNullable(entity.getDeviceName()).orElse("")); |
|
|
|
put("ruleDefName",entity.getAlarmContext()); |
|
|
|
put("ruleDefName",entity.getAlarmContext()); |
|
|
|
put("ts", DateUtil.format(entity.getAlarmTime(),DateUtil.PATTERN_DATETIME)); |
|
|
|
put("ts", DateUtil.format(entity.getAlarmTime(),DateUtil.PATTERN_DATETIME)); |
|
|
|
}}) |
|
|
|
}}) |
|
|
|