This commit is contained in:
2025-12-25 10:18:56 +08:00
parent 5d9b29559a
commit 196f3ebb93
5 changed files with 500 additions and 3 deletions
+3 -1
View File
@@ -89,7 +89,9 @@ class UserService
// 关键字
if (isset($p['keyword']) && $p['keyword']) {
$k = '%' . $p['keyword'] . '%';
$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'];