Browse Source

no message

xingzai 8 months ago
parent
commit
3321d3be53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/company.go

+ 1 - 1
models/company.go

@@ -216,7 +216,7 @@ func GetCompanyPermissionList(companyId int) (items []*PermissionItem, err error
 }
 
 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