|
@@ -512,6 +512,10 @@ 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']);
|
|
|
+ $model->whereIn('id',$id);
|
|
|
+ }
|
|
|
|
|
|
$list = $this->limit($model,'',$data);
|
|
|
$list = $this->fillData($list,$data);
|