mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 12:32:50 +00:00
修复后台管理员无法搜索bug
This commit is contained in:
parent
e1b3762350
commit
c201eeedd2
@ -146,8 +146,7 @@ class SystemAdmin extends ModelBasic
|
||||
public static function systemPage($where){
|
||||
$model = new self;
|
||||
if($where['name'] != ''){
|
||||
$model = $model->where('account','LIKE',"%$where[name]%");
|
||||
$model = $model->where('real_name','LIKE',"%$where[name]%");
|
||||
$model = $model->where('account|real_name','LIKE',"%$where[name]%");
|
||||
}
|
||||
if($where['roles'] != '')
|
||||
$model = $model->where("CONCAT(',',roles,',') LIKE '%,$where[roles],%'");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user