1、优化告警处理

This commit is contained in:
weidong 2024-02-14 22:50:59 +08:00
parent 097e1902c0
commit e9d94cd409

View File

@ -116,6 +116,12 @@ public class WarningServiceImpl implements WarningService {
"pitch:"+ NumberUtils.scaleTwo(statusMsg.getPitch().doubleValue())
+",roll:"+NumberUtils.scaleTwo(statusMsg.getRoll().doubleValue()))) isUpdated=true;
}
//卫星数
if(curStatus.getSatelliteinuse()!=null){
if(check(curStatus,WarningCfg.TYPE_LESS_INUSE_SAT,
WarningCfg.TYPE_NAME_LESS_INUSE_SAT,true,
curStatus.getSatelliteinuse(),null,null)) isUpdated=true;
}
// 根据告警码确定告警级别
if(isUpdated){