|
@@ -303,11 +303,11 @@ func AddLongzhongpricedata(item *Longzhongpricedata) (newId int64, err error) {
|
|
|
}
|
|
|
|
|
|
//判断指标数据是否已经录入
|
|
|
-func GetLongzhongpricedataCount(unitid, priceDate string) (count int, err error) {
|
|
|
+func GetLongzhongpricedataCount(longzhongpriceinfoId int, priceDate string) (count int, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
o.Using("edb")
|
|
|
sql := `SELECT COUNT(1) AS count FROM longzhongpricedata WHERE longzhongpriceinfo_id=? AND price_date=? `
|
|
|
- err = o.Raw(sql, unitid, priceDate).QueryRow(&count)
|
|
|
+ err = o.Raw(sql, longzhongpriceinfoId, priceDate).QueryRow(&count)
|
|
|
return
|
|
|
}
|
|
|
|