|
@@ -36,7 +36,7 @@ func GetPredictEdbConfCount(sourceEdbInfoId int) (count int, err error) {
|
|
|
|
|
|
// GetPredictEdbConfListById 根据预测指标id获取预测指标配置信息列表
|
|
|
func GetPredictEdbConfListById(edbInfoId int) (items []*PredictEdbConf, err error) {
|
|
|
- o := orm.NewOrmUsingDB("data")
|
|
|
+ o := orm.NewOrm()
|
|
|
sql := ` SELECT * FROM predict_edb_conf WHERE predict_edb_info_id=? ORDER BY config_id ASC`
|
|
|
_, err = o.Raw(sql, edbInfoId).QueryRows(&items)
|
|
|
return
|