zwxi 11 months ago
parent
commit
2f7e63197c

+ 1 - 1
models/roadshow/company.go

@@ -129,7 +129,7 @@ func CompanySearchV2(sellerId int, keyWord string) (list []*CompanySearchView, e
 				company AS a
 			INNER JOIN company_product AS b ON a.company_id = b.company_id 
 			WHERE
-				b.status IN ('正式', '试用') AND (b.seller_id = ? OR a.share_seller_id = ?) AND a.company_name LIKE ?
+				b.status IN ('正式', '试用') AND (b.seller_id = ? OR b.share_seller_id = ?) AND a.company_name LIKE ?
 			GROUP BY
 				b.company_id`
 	_, err = o.Raw(sql, sellerId, sellerId, keyWord).QueryRows(&companies)

+ 1 - 1
models/tables/company_renewal_record/company_renewal_record.go

@@ -24,7 +24,7 @@ type CompanyRenewalRecord struct {
 func GetUnusualRenewCompanyList(startDate, endDate time.Time, productId int) (list []*CompanyRenewalRecord, err error) {
 	o := orm.NewOrm()
 	sql := `	SELECT
-	a.seller_id,a.share_seller_id,
+	a.seller_id,b.share_seller_id,
 	count(
 	DISTINCT ( a.company_id )) num,
 	GROUP_CONCAT( DISTINCT a.company_id SEPARATOR ',' ) AS company_ids