|
@@ -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)
|