diff --git a/ats/verify/simulation/simulation_manage.go b/ats/verify/simulation/simulation_manage.go index 53048c2..0a0dc51 100644 --- a/ats/verify/simulation/simulation_manage.go +++ b/ats/verify/simulation/simulation_manage.go @@ -49,6 +49,7 @@ func init() { }) dynamics.RegisterTrainInfoHandler(func(info *dynamics.TrainInfo) { + zap.S().Infof("发送到vobc的列车编号为%d \n", info.Number) for _, simulation := range GetSimulationArr() { sta, ok := simulation.Memory.Status.TrainStateMap.Load(strconv.Itoa(int(info.Number))) if !ok { diff --git a/service/publishedGi.go b/service/publishedGi.go index b6d504b..69ab4e7 100644 --- a/service/publishedGi.go +++ b/service/publishedGi.go @@ -127,7 +127,7 @@ func QueryProjectPublishedGi(id int32) []*model.PublishedGi { mids[i] = m.Mid } dp := dbquery.PublishedGi - publishedGis, _ := dp.Select(dp.ID, dp.Name, dp.Category).Where(dp.ID.In(mids...)).Find() + publishedGis, _ := dp.Select(dp.ID, dp.Name, dp.Category).Where(dp.ID.In(mids...), dp.Status.Eq(1)).Find() return publishedGis }