wuzeyu
2024-07-31 8043346013cac57ba9e0b74ec68408a463c84c18
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/upVos/DataAlarmVo.java
@@ -9,6 +9,34 @@
    public Byte meter ;//流量计故障
    public Byte valve ;//阀门
    public boolean hasAlarm(){
        boolean flag = false ;
        if((batteryVolt != null && batteryVolt == 1) ||
                (loss != null && loss == 1) ||
                (meter != null && meter == 1) ||
                (valve != null && valve == 1)){
            flag = true ;
        }
        return flag ;
    }
    public String alarmContent(){
        String txt = "" ;
        if(batteryVolt != null && batteryVolt == 1){
            txt += "蓄电池电压报警" ;
        }
        if(meter != null && meter == 1){
            txt += ",流量计故障报警" ;
        }
        if(valve != null && valve == 1){
            txt += ",阀门故障报警" ;
        }
       if(loss != null && loss == 1){
            txt += ",漏损报警" ;
        }
        return txt ;
    }
    public String toString(){
        StringBuilder str = new StringBuilder() ;
        str.append("      报警:\n");