|
@@ -2019,10 +2019,10 @@ func GetCompanySearchBySeal(productId, sellerId, groupId int, keyWord string) (i
|
|
|
WHERE
|
|
|
1=1
|
|
|
AND b.product_id = ?
|
|
|
- AND (b.seller_id = ? OR b.group_id = ? )
|
|
|
+ AND (b.seller_id = ? OR b.share_seller_id = ? OR b.group_id = ? )
|
|
|
AND a.company_name LIKE ?
|
|
|
GROUP BY b.company_id `
|
|
|
- _, err = o.Raw(sql, productId, sellerId, groupId, keyWord).QueryRows(&items)
|
|
|
+ _, err = o.Raw(sql, productId, sellerId, sellerId, groupId, keyWord).QueryRows(&items)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|