Browse Source

定时任务刷新区间计算数据

xyxie 7 months ago
parent
commit
d5297e9972
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/factor_edb_series_mapping.go

+ 1 - 1
models/factor_edb_series_mapping.go

@@ -168,7 +168,7 @@ func (m *FactorEdbSeriesMapping) Format2Item() (item *FactorEdbSeriesMappingItem
 
 func (m *FactorEdbSeriesMapping) GetItemBySeriesId(seriesId int) (items []*FactorEdbSeriesMapping, err error) {
 	o := orm.NewOrm()
-	sql := fmt.Sprintf(`SELECT * FROM %s WHERE %s = ? LIMIT 1`, m.TableName(), m.Cols().FactorEdbSeriesId)
+	sql := fmt.Sprintf(`SELECT * FROM %s WHERE %s = ? `, m.TableName(), m.Cols().FactorEdbSeriesId)
 	_, err = o.Raw(sql, seriesId).QueryRows(&items)
 	return
 }