|
|
@@ -38,10 +38,8 @@ class MasterWorkerRegisterLists extends BaseAdminDataLists implements ListsSearc
|
|
|
public function setSearch(): array
|
|
|
{
|
|
|
return [
|
|
|
- '=' => ['maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'status','is_credential'],
|
|
|
+ '=' => ['maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'status','is_credential','age'],
|
|
|
'%like%' => ['name', 'mobile'],
|
|
|
- 'between' => ['age'],
|
|
|
-
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -58,7 +56,7 @@ class MasterWorkerRegisterLists extends BaseAdminDataLists implements ListsSearc
|
|
|
public function lists(): array
|
|
|
{
|
|
|
return MasterWorkerRegister::where($this->searchWhere)
|
|
|
- ->field(['id', 'maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'name', 'age', 'mobile', 'status','is_credential','credential_name','lat','lon'])
|
|
|
+ ->field(['id', 'maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'name', 'age', 'mobile', 'status','is_credential','credential_name','lat','lon','credential_images'])
|
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
|
->order(['id' => 'desc'])
|
|
|
->select()
|