Browse Source

Merge branch 'feature/crm14.9_contract_change' of hongze/hz_crm_api into master

xyxie 1 year ago
parent
commit
536e5ccd00
1 changed files with 3 additions and 1 deletions
  1. 3 1
      models/company/company_renewal_record.go

+ 3 - 1
models/company/company_renewal_record.go

@@ -89,7 +89,9 @@ WHERE
 	AND modify_time BETWEEN ? 
 	AND modify_time BETWEEN ? 
 	AND ? 
 	AND ? 
 	AND product_id = ?
 	AND product_id = ?
-	AND seller_id in (` + sellerIds + `)
+	AND (share_seller_id in (` + sellerIds + `)
+	OR seller_id in (` + sellerIds + `))
+
 `
 `
 	_, err = o.Raw(sql, startDate, endDate, productId).QueryRows(&list)
 	_, err = o.Raw(sql, startDate, endDate, productId).QueryRows(&list)