|
@@ -475,6 +475,16 @@ class CustomerService extends Service
|
|
|
}
|
|
|
}
|
|
|
if(! empty($data['model_type'])) $model->where('model_type',$data['model_type']);
|
|
|
+ if(! empty($data['consulting_product'])) $model->where('consulting_product','LIKE', '%'.$data['consulting_product'].'%');
|
|
|
+ if(! empty($data['mark'])) $model->where('mark','LIKE', '%'.$data['mark'].'%');
|
|
|
+ if(! empty($data['customer_intention'])) $model->where('customer_intention',$data['customer_intention']);
|
|
|
+ if(! empty($data['customer_from'])) $model->where('customer_from',$data['customer_from']);
|
|
|
+ if(! empty($data['customer_type'])) $model->where('customer_type',$data['customer_type']);
|
|
|
+ if(! empty($data['crt_time'][0]) && ! empty($data['crt_time'][1])) {
|
|
|
+ $return = $this->changeDateToTimeStampAboutRange($data['crt_time']);
|
|
|
+ $model->where('crt_time','>=',$return[0]);
|
|
|
+ $model->where('crt_time','<=',$return[1]);
|
|
|
+ }
|
|
|
|
|
|
$list = $this->limit($model,'',$data);
|
|
|
$list = $this->fillData($list);
|