|
|
@ -207,7 +207,7 @@ public class MessageServiceImpl implements MessageService { |
|
|
|
// map.put("thing5",Optional.ofNullable(entity.getDeviceCode()).orElse("未知设备"));
|
|
|
|
// map.put("thing5",Optional.ofNullable(entity.getDeviceCode()).orElse("未知设备"));
|
|
|
|
map.put("thing11",getTruncateString(entity.getAlarmContext(), 20)); |
|
|
|
map.put("thing11",getTruncateString(entity.getAlarmContext(), 20)); |
|
|
|
map.put("time2",entity.getAlarmTime()); |
|
|
|
map.put("time2",entity.getAlarmTime()); |
|
|
|
map.put("thing14", DictCache.getValue("alarm_source", entity.getAlarmSource())); |
|
|
|
map.put("thing14", DictCache.getValue("alarm_type", entity.getAlarmType())); |
|
|
|
message.setMap(map); |
|
|
|
message.setMap(map); |
|
|
|
// 消息内容
|
|
|
|
// 消息内容
|
|
|
|
message.setContent(entity.getAlarmContext()); |
|
|
|
message.setContent(entity.getAlarmContext()); |
|
|
|