标签
This commit is contained in:
@@ -93,8 +93,8 @@ class CustomerService
|
||||
//});
|
||||
//查询有$tagId 里所有标签的客户
|
||||
foreach ($tagId as $id) {
|
||||
$query->whereHas('crm_tag', function ($query) use ($id) {
|
||||
$query->where('crm_tag.id', $id);
|
||||
$query->whereHas('tags', function($query) use ($id){
|
||||
$query->where('tag_id', $id);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user