浏览代码

add his对接版本号

A17404李放 3 年之前
父节点
当前提交
f6ccb7d909
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nb-system/src/main/java/com/nb/bus/entity/BusDeviceAlarmEntity.java

+ 1 - 1
nb-system/src/main/java/com/nb/bus/entity/BusDeviceAlarmEntity.java

@@ -151,7 +151,7 @@ public class BusDeviceAlarmEntity extends TenantGenericEntity<String,String> {
     }
 
     public boolean alarmOrWarn(){
-        if (this.getAlarm() != null && !DeviceAlarmEnum.None.equals(this.getAlarm())) {
+        if (this.getAlarmState() != null && !DeviceAlarmEnum.None.equals(this.getAlarmState())) {
             return true;
         }
         if (Boolean.TRUE.equals(this.getWarnAnalgesicPoor())) {