mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-17 06:52:49 +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){
|
public static function systemPage($where){
|
||||||
$model = new self;
|
$model = new self;
|
||||||
if($where['name'] != ''){
|
if($where['name'] != ''){
|
||||||
$model = $model->where('account','LIKE',"%$where[name]%");
|
$model = $model->where('account|real_name','LIKE',"%$where[name]%");
|
||||||
$model = $model->where('real_name','LIKE',"%$where[name]%");
|
|
||||||
}
|
}
|
||||||
if($where['roles'] != '')
|
if($where['roles'] != '')
|
||||||
$model = $model->where("CONCAT(',',roles,',') LIKE '%,$where[roles],%'");
|
$model = $model->where("CONCAT(',',roles,',') LIKE '%,$where[roles],%'");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user