|
...
|
...
|
@@ -49,10 +49,10 @@ class ManagerLogController extends BaseController |
|
|
|
public function searchParam(){
|
|
|
|
$map = [];
|
|
|
|
$managerModel = new Manage();
|
|
|
|
if(isset($this->param['mobile']) && !empty($this->param['mobile'])){
|
|
|
|
if(isset($this->map['mobile']) && !empty($this->map['mobile'])){
|
|
|
|
$ids = $managerModel->where('mobile', 'like', '%' . $this->map['mobile'] . '%')->pluck('id')->toArray();
|
|
|
|
$map['manage_id'] = ['in',$ids];
|
|
|
|
}elseif (isset($this->param['name']) && !empty($this->param['name'])){
|
|
|
|
}elseif (isset($this->map['name']) && !empty($this->map['name'])){
|
|
|
|
$ids = $managerModel->where('name', 'like', '%' . $this->map['name'] . '%')->pluck('id')->toArray();
|
|
|
|
$map['manage_id'] = ['in',$ids];
|
|
|
|
}
|
...
|
...
|
|