|
@@ -2544,7 +2544,7 @@ func (this *ContractController) BusinessContractCompanyList() {
|
|
|
cond := ` AND share_seller_id = ? AND is_share = 1 AND company_name LIKE ?`
|
|
|
pars := make([]interface{}, 0)
|
|
|
pars = append(pars, sysUser.AdminId, kw)
|
|
|
- shares, e := company.GetCompanyListByCondition(cond, pars, []string{"company_id", "company_name"}, "")
|
|
|
+ shares, e := company.GetCompanyProductList(cond, pars)
|
|
|
if e != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "获取共享客户信息失败, Err: " + e.Error()
|
|
@@ -2869,7 +2869,7 @@ func (this *ContractController) GetListBySeal() {
|
|
|
}
|
|
|
|
|
|
// 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 `
|
|
|
// 非合规角色可查看自己的合同或是自己的共享客户下的非自己创建的合同
|
|
|
if sysUser.RoleTypeCode != utils.ROLE_TYPE_CODE_COMPLIANCE {
|
|
|
condition += ` AND (a.seller_id = ? OR (b.is_share = 1 AND b.share_seller_id = ?))`
|