1
This commit is contained in:
@@ -89,7 +89,11 @@ class UserService
|
||||
// 关键字
|
||||
if (isset($p['keyword']) && $p['keyword']) {
|
||||
$k = '%' . $p['keyword'] . '%';
|
||||
$config['where']['name'] = ['like', $k];
|
||||
// $config['where']['name'] = ['like', $k];
|
||||
|
||||
foreach (['name','mobile','sn'] as $col) {
|
||||
$config['orWhere'][] = [$col, 'like', $k];
|
||||
}
|
||||
}
|
||||
if (isset($p['status']) && $p['status']) {
|
||||
$config['where']['status'] = $p['status'];
|
||||
|
||||
Reference in New Issue
Block a user