|
@@ -2602,7 +2602,7 @@ func (this *ContractController) BusinessContractListByCompanyName() {
|
|
|
//pars = append(pars, sysUser.AdminId)
|
|
|
|
|
|
// 13.6正式共享客户-可以选择分配给自己的共享客户下的非自己创建的合同
|
|
|
- joinStr := ` LEFT JOIN company AS b ON a.company_name = b.company_name `
|
|
|
+ joinStr := ` LEFT JOIN company_product AS b ON a.company_name = b.company_name `
|
|
|
condition += ` AND (a.seller_id = ? OR (b.is_share = 1 AND b.share_seller_id = ?))`
|
|
|
pars = append(pars, sysUser.AdminId, sysUser.AdminId)
|
|
|
|