修改用户搜索
This commit is contained in:
parent
3d897d5dda
commit
a15ad48e4c
@ -26,7 +26,6 @@ class UserLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
return [
|
||||
'=' => ['id','user_ship','store_id'],
|
||||
'%like%' => ['mobile'],
|
||||
];
|
||||
}
|
||||
|
||||
@ -50,9 +49,12 @@ class UserLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
return [];
|
||||
}
|
||||
}
|
||||
$query = User::where($this->searchWhere);
|
||||
if (!empty($this->params['nickname'])) {
|
||||
$query->whereLike('nickname|mobile', "%{$this->params['nickname']}%");
|
||||
}
|
||||
$field = "id,nickname,real_name,sex,avatar,account,mobile,now_money,user_ship,create_time,purchase_funds,integral";
|
||||
$lists = User::where($this->searchWhere)
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
$lists = $query->limit($this->limitOffset, $this->limitLength)
|
||||
->field($field)
|
||||
->order('id desc')
|
||||
->select()->each(function($data){
|
||||
|
Loading…
x
Reference in New Issue
Block a user