|
|
@@ -93,17 +93,17 @@ class ZeroUserRepository extends BaseRepository
|
|
93
|
93
|
$where = [];
|
|
94
|
94
|
|
|
95
|
95
|
// 状态条件 - 精确搜索
|
|
96
|
|
- if (!is_null($param->status)) {
|
|
|
96
|
+ if (!empty($param->status)) {
|
|
97
|
97
|
$where[] = ['status', '=', $param->status];
|
|
98
|
98
|
}
|
|
99
|
99
|
|
|
100
|
100
|
// 团队昵称条件 - 模糊搜索
|
|
101
|
|
- if (!is_null($param->teamName)) {
|
|
|
101
|
+ if (!empty($param->teamName)) {
|
|
102
|
102
|
$where[] = ['team_name', 'like', '%' . $param->teamName . '%'];
|
|
103
|
103
|
}
|
|
104
|
104
|
|
|
105
|
105
|
// 团队长uid条件 - 精确搜索
|
|
106
|
|
- if (!is_null($param->account)) {
|
|
|
106
|
+ if (!empty($param->account)) {
|
|
107
|
107
|
$userDao = new UserDao();
|
|
108
|
108
|
$userWhere[] = ['account','like','%' . $param->account . '%'];
|
|
109
|
109
|
$userData = $userDao->getWhere($userWhere,'uid');
|