From 3353e348993ef3c6346f1b0469c78d9c27780afd Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 31 Mar 2025 18:54:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E5=85=83=E5=B7=A1=E6=A3=80?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=A3=80=E6=9F=A5=E5=88=9B=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=8D=E4=B8=BA0=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processor/ne_alarm_state_check/ne_alarm_state_check.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/crontask/processor/ne_alarm_state_check/ne_alarm_state_check.go b/src/modules/crontask/processor/ne_alarm_state_check/ne_alarm_state_check.go index cb1d4b32..f74a3d1b 100644 --- a/src/modules/crontask/processor/ne_alarm_state_check/ne_alarm_state_check.go +++ b/src/modules/crontask/processor/ne_alarm_state_check/ne_alarm_state_check.go @@ -66,6 +66,9 @@ func (s *NeAlarmStateCheckProcessor) Execute(data any) (any, error) { neList := s.neInfoService.Find(neModel.NeInfo{}, true, false) for _, neInfo := range neList { + if neInfo.CreateTime == 0 { + continue + } neTypeAndId := fmt.Sprintf("%s_%s", neInfo.NeType, neInfo.NeId) // 网元在线状态 isOnline := parse.Boolean(neInfo.ServerState["online"])