|
|
@@ -42,15 +42,15 @@ class ServiceWorkLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|
|
public function setSearch(): array
|
|
|
{
|
|
|
return [
|
|
|
- '=' => ['id','work_sn', 'mobile','category_type', 'base_service_fee', 'service_fee', 'work_status', 'service_status', 'data_type', 'finished_images', 'master_worker_id', 'work_amount','work_type','appoint_approval','refund_approval', 'city'],
|
|
|
- '%like%'=>[ 'real_name', 'title', 'address']
|
|
|
+ '=' => ['id','category_type', 'base_service_fee', 'service_fee', 'work_status', 'service_status', 'data_type', 'finished_images', 'master_worker_id', 'work_amount','work_type','appoint_approval','refund_approval', 'city'],
|
|
|
+ '%like%'=>[ 'work_sn','mobile','real_name', 'title', 'address']
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public function queryWhere(){
|
|
|
$where = [];
|
|
|
if (isset($this->params['master_worker_name']) && !empty($this->params['master_worker_name'])) {
|
|
|
- $master_worker_ids = MasterWorker::where([['nickname|worker_number|mobile', 'like','%' .$this->params['master_worker_name'] . '%']])->column('id')??[0];
|
|
|
+ $master_worker_ids = MasterWorker::where([['worker_number|mobile|real_name', 'like','%' .$this->params['master_worker_name'] . '%']])->column('id')??[0];
|
|
|
$where[] = ['master_worker_id','in' ,$master_worker_ids];
|
|
|
}
|
|
|
if(isset($this->params['dispatch_time']) && !empty($this->params['dispatch_time'][0]) && !empty($this->params['dispatch_time'][1])){
|