|
@@ -92,3 +92,13 @@ func GetRaiSellerByCompanyId(companyId int) (item *AdminItem, err error) {
|
|
|
err = o.Raw(sql, companyId).QueryRow(&item)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+func GetShareSellerByCompanyIdCheckFicc(companyId, productId int) (item *AdminItem, err error) {
|
|
|
+ o := orm.NewOrmUsingDB("weekly_report")
|
|
|
+ sql := ` SELECT b.*,c.open_id,c.user_id,a.company_name FROM company_product AS a
|
|
|
+ INNER JOIN admin AS b ON a.share_seller_id=b.admin_id
|
|
|
+ LEFT JOIN wx_user AS c ON b.mobile=c.mobile
|
|
|
+ WHERE a.company_id=? AND a.product_id=?`
|
|
|
+ err = o.Raw(sql, companyId, productId).QueryRow(&item)
|
|
|
+ return
|
|
|
+}
|