|
@@ -512,8 +512,8 @@ class CustomerService extends Service
|
|
|
$id = (new RangeService())->customerSearch($data);
|
|
|
$model->whereIn('id',$id);
|
|
|
}
|
|
|
- if(! empty($data['visit_time'])){
|
|
|
- $id = (new FollowUpRecordService())->getLastVisitData($data['visit_time']);
|
|
|
+ if(! empty($data['last_visit_time'])){
|
|
|
+ $id = (new FollowUpRecordService())->getLastVisitData($data['last_visit_time']);
|
|
|
$model->whereIn('id',$id);
|
|
|
}
|
|
|
|