|
@@ -85,10 +85,10 @@ func GetCompanyProductDetailByCompanyId(companyId, productId int) (item *Company
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-func GetCompanyProductDetailByCompanyIdCount(companyId, groupId int) (count int, err error) {
|
|
|
+func GetCompanyProductDetailByCompanyIdCount(companyId, productId int) (count int, err error) {
|
|
|
o := orm.NewOrmUsingDB("weekly_report")
|
|
|
sql := ` SELECT COUNT(1) AS count FROM company_product WHERE company_id = ? AND product_id = ? `
|
|
|
- err = o.Raw(sql, companyId, groupId, groupId).QueryRow(&count)
|
|
|
+ err = o.Raw(sql, companyId, productId).QueryRow(&count)
|
|
|
return
|
|
|
}
|
|
|
|