Browse Source

update anxinyun 主题查询索引改用配置里面的索引

dev
lucas 8 hours ago
parent
commit
2a1330e9b2
  1. 3
      consumers/consumerAXYThemeToES.go

3
consumers/consumerAXYThemeToES.go

@ -191,7 +191,8 @@ func (the *consumerAXYThemeToES) judgeTime(rawMsg string) (time.Time, time.Time,
} }
queryStr := the.getESTimeQueryStr(theme.Station.Structure.Id, theme.Station.Id) queryStr := the.getESTimeQueryStr(theme.Station.Structure.Id, theme.Station.Id)
TimeTheme, err := the.OutEs.SearchThemeData("anxincloud_last_theme", queryStr) index := the.Info.IoConfig.Out.Es.Index
TimeTheme, err := the.OutEs.SearchThemeData(index, queryStr)
//如果es里面没有这个数据时间,呢就返回测点的时间 //如果es里面没有这个数据时间,呢就返回测点的时间
if len(TimeTheme) > 0 { if len(TimeTheme) > 0 {
cTime := TimeTheme[0].CollectTime cTime := TimeTheme[0].CollectTime

Loading…
Cancel
Save