|
|
@@ -52,8 +52,8 @@ class UserService extends BaseService
|
|
|
if (isset($search['first_name']) && !empty($search['first_name'])) {
|
|
|
$where[] = ['first_name', '=', $search['first_name']];
|
|
|
}
|
|
|
- if (isset($search['user_name']) && !empty($search['user_name'])) {
|
|
|
- $where[] = ['user_name', '=', $search['user_name']];
|
|
|
+ if (isset($search['username']) && !empty($search['username'])) {
|
|
|
+ $where[] = ['username', '=', $search['username']];
|
|
|
}
|
|
|
if (isset($search['like_first_name']) && !empty($search['like_first_name'])) {
|
|
|
$where[] = ['first_name', 'like', "%" . $search['like_first_name'] . "%"];
|