This commit is contained in:
2026-02-09 18:07:51 +08:00
parent bc721c3add
commit b0eca636df
+5 -1
View File
@@ -89,7 +89,11 @@ class UserService
// 关键字 // 关键字
if (isset($p['keyword']) && $p['keyword']) { if (isset($p['keyword']) && $p['keyword']) {
$k = '%' . $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']) { if (isset($p['status']) && $p['status']) {
$config['where']['status'] = $p['status']; $config['where']['status'] = $p['status'];