Browse Source

修正:微信公众号告警类型枚举类更换

zhongwei
ty 6 months ago
parent
commit
f5014ae61c
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java

@ -207,7 +207,7 @@ public class MessageServiceImpl implements MessageService {
// map.put("thing5",Optional.ofNullable(entity.getDeviceCode()).orElse("未知设备"));
map.put("thing11",getTruncateString(entity.getAlarmContext(), 20));
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.setContent(entity.getAlarmContext());

Loading…
Cancel
Save