用户id搜索

This commit is contained in:
2025-08-06 09:45:56 +08:00
parent ca18a05554
commit 7d405fab97
+3
View File
@@ -54,6 +54,9 @@ class UserService
$k = '%' . $p['keyword'] . '%';
$config['where']['name'] = ['like', $k];
}
if (isset($p['id']) && $p['id']) {
$config['where']['id'] = $p['id'];
}
$config['fields'] = ['id', 'name', 'email', 'sex', 'phone', 'avatar', 'corp_id', 'country_id', 'position', 'status', 'created_at'];
break;