1、告警优化,增加长期无有效解告警
2、固定解统计优化
This commit is contained in:
parent
bf8eb9dd0f
commit
f37090f31d
@ -55,9 +55,11 @@ public class D3F2StopIndicationMessageExecutor implements Executor<D3F2StopIndic
|
||||
Device device = deviceService.findByDeviceId(deviceId);
|
||||
if(device == null) return null;
|
||||
message.setTenantId(device.getTenantId());
|
||||
message.setOtherInfo(message.getOtherInfo()+",no calc:"+device.getNoFixedAndFloatResult());
|
||||
if(device.getLastValidCalcDataTime()!=null){
|
||||
message.setOtherInfo(message.getOtherInfo()+",valid calc:"+device.getLastValidCalcDataTime());
|
||||
if(device.getDeviceType() == Device.DEVICE_ROVER) {
|
||||
message.setOtherInfo(message.getOtherInfo() + ",no calc:" + device.getNoFixedAndFloatResult());
|
||||
if (device.getLastValidCalcDataTime() != null) {
|
||||
message.setOtherInfo(message.getOtherInfo() + ",valid calc:" + device.getLastValidCalcDataTime());
|
||||
}
|
||||
}
|
||||
//更新统计
|
||||
device.updateRx(message.getHeader(), message.getLen(),1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user