Browse Source

修正:短信推送-无设备推送空字符串

zhongwei
ty 9 months ago
parent
commit
1bb83cbe54
  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

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

Loading…
Cancel
Save