|
@@ -194,7 +194,7 @@ func GetCompanyProductDetail(companyId, productId int) (item *CompanyProductDeti
|
|
|
}
|
|
|
|
|
|
func GetCompanyProductCount(companyId, productId int) (count int, err error) {
|
|
|
- sql := ` SELECT COUNT(1) AS count FROM company_product WHERE company_id = ? AND product_id = ? `
|
|
|
+ sql := ` SELECT COUNT(1) AS count FROM company_product WHERE company_id = ? AND product_id = ? AND company_id > 1 `
|
|
|
o := orm.NewOrmUsingDB("weekly_report")
|
|
|
err = o.Raw(sql, companyId, productId).QueryRow(&count)
|
|
|
return
|