Browse Source

获取预测指标数据

xyxie 10 months ago
parent
commit
6d3cd71c77
1 changed files with 3 additions and 0 deletions
  1. 3 0
      models/data_manage/edb_data_base.go

+ 3 - 0
models/data_manage/edb_data_base.go

@@ -234,6 +234,9 @@ func GetEdbDataAllByEdbCode(edbCode string, source, subSource, limit int) (items
 func GetEdbDataBaseByEdbCode(edbInfoId int, source, subSource int) (items []*EdbDataBase, err error) {
 	o := orm.NewOrmUsingDB("data")
 	tableName := GetEdbDataTableName(source, subSource)
+	if source == utils.DATA_SOURCE_PREDICT {
+		tableName = "edb_data_predict_base"
+	}
 	sql := ` SELECT * FROM %s WHERE edb_info_id=? ORDER BY data_time DESC`
 	sql = fmt.Sprintf(sql, tableName)
 	_, err = o.Raw(sql, edbInfoId).QueryRows(&items)