diff --git a/app/crm/service/CustomerService.php b/app/crm/service/CustomerService.php index 4c66414..022a3dc 100644 --- a/app/crm/service/CustomerService.php +++ b/app/crm/service/CustomerService.php @@ -66,7 +66,7 @@ class CustomerService //查询有$tagId 里所有标签的客户 foreach ($tagId as $id) { $query->whereHas('tags', function($query) use ($id){ - $query->where('tag.id', $id); + $query->where('tag_id', $id); }); } } diff --git a/app/crm/service/FollowService.php b/app/crm/service/FollowService.php index 0d3fd8e..e8ce0f7 100644 --- a/app/crm/service/FollowService.php +++ b/app/crm/service/FollowService.php @@ -23,7 +23,7 @@ class FollowService $where = []; $where['customer_id'] = $customer_id; - $where['corp_abbr'] = $corp_abbr; +// $where['corp_abbr'] = $corp_abbr; //用户角色