|
@@ -108,7 +108,7 @@ func GetPredictEdbConfListByConfigIdList(configIdList []int) (items []*PredictEd
|
|
|
|
|
|
// ModifyPredictEdbInfoMaxAndMinInfoBySourceEdbInfoId 根据来源指标修改预测指标的最新数据信息
|
|
|
func ModifyPredictEdbInfoMaxAndMinInfoBySourceEdbInfoId(sourceEdbInfoId int, item *EdbInfoMaxAndMinInfo) (err error) {
|
|
|
- return
|
|
|
+ //return
|
|
|
o := orm.NewOrm()
|
|
|
var list []*PredictEdbConf
|
|
|
sql := ` SELECT * FROM predict_edb_conf WHERE source_edb_info_id=? `
|
|
@@ -123,8 +123,10 @@ func ModifyPredictEdbInfoMaxAndMinInfoBySourceEdbInfoId(sourceEdbInfoId int, ite
|
|
|
idList = append(idList, v.PredictEdbInfoId)
|
|
|
}
|
|
|
|
|
|
- sql := ` UPDATE edb_info SET start_date=?,min_value=?,max_value=?,is_update=2,latest_date=?,latest_value=?,modify_time=NOW() WHERE edb_info_id in (` + utils.GetOrmInReplace(int(total)) + `) `
|
|
|
- _, err = o.Raw(sql, item.MinDate, item.MinValue, item.MaxValue, item.MaxDate, item.LatestValue, idList).Exec()
|
|
|
+ //sql := ` UPDATE edb_info SET start_date=?,min_value=?,max_value=?,is_update=2,latest_date=?,latest_value=?,modify_time=NOW() WHERE edb_info_id in (` + utils.GetOrmInReplace(int(total)) + `) `
|
|
|
+ //_, err = o.Raw(sql, item.MinDate, item.MinValue, item.MaxValue, item.MaxDate, item.LatestValue, idList).Exec()
|
|
|
+ sql := ` UPDATE edb_info SET start_date=?,is_update=2,latest_date=?,latest_value=?,modify_time=NOW() WHERE edb_info_id in (` + utils.GetOrmInReplace(int(total)) + `) `
|
|
|
+ _, err = o.Raw(sql, item.MinDate, item.MaxDate, item.LatestValue, idList).Exec()
|
|
|
}
|
|
|
return
|
|
|
}
|