mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化筛选功能
This commit is contained in:
parent
2e60c0db88
commit
cafce4f630
@ -35,7 +35,7 @@ class Auth extends Base {
|
|||||||
$obj = $obj->where('status', $status);
|
$obj = $obj->where('status', $status);
|
||||||
}
|
}
|
||||||
if ($keywords) {
|
if ($keywords) {
|
||||||
$obj = $obj->where('name', 'like', $keywords);
|
$obj = $obj->whereLike('name', "%{$keywords}%");
|
||||||
}
|
}
|
||||||
|
|
||||||
$listObj = $obj->order('id DESC')->paginate($limit, false, ['page' => $start])->toArray();
|
$listObj = $obj->order('id DESC')->paginate($limit, false, ['page' => $start])->toArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user