From 880273d6b3687ea601ddb6d46acb9b660a9f76de Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 10 十月 2024 16:50:41 +0800 Subject: [PATCH] 1、发送钉钉的报警消息中去除漏损报警; 2、漏损报警消息产生与发送放于定时报中,漏损量大于配置值时才报警,并把漏损量一并发送出去。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/upVos/DataAlarmVo.java | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/upVos/DataAlarmVo.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/upVos/DataAlarmVo.java index 9dbf290..6c92e71 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/upVos/DataAlarmVo.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/upVos/DataAlarmVo.java @@ -20,6 +20,17 @@ return flag ; } + + public boolean hasAlarmExcludeLoss(){ + boolean flag = false ; + if((batteryVolt != null && batteryVolt == 1) || + (meter != null && meter == 1) || + (valve != null && valve == 1)){ + flag = true ; + } + return flag ; + } + public String alarmContent(){ String txt = "" ; boolean hasTxt = false ; @@ -42,6 +53,23 @@ return txt ; } + public String alarmContentExcludeLoss(){ + String txt = "" ; + boolean hasTxt = false ; + if(batteryVolt != null && batteryVolt == 1){ + txt += (hasTxt?"銆�":"") + "钃勭數姹犵數鍘嬫姤璀�" ; + hasTxt = true ; + } + if(meter != null && meter == 1){ + txt += (hasTxt?"銆�":"") + "娴侀噺璁℃晠闅滄姤璀�" ; + hasTxt = true ; + } + if(valve != null && valve == 1){ + txt += (hasTxt?"銆�":"") + "闃�闂ㄦ晠闅滄姤璀�" ; + hasTxt = true ; + } + return txt ; + } public String toString(){ StringBuilder str = new StringBuilder() ; str.append(" 鎶ヨ:\n"); -- Gitblit v1.8.0