@@ -78,6 +78,7 @@ public Page<SimpleTeamRes> findPaginationWithContest(Long contestId, String prov
78
78
.from (team )
79
79
.where (
80
80
team .contest .id .eq (contestId ),
81
+ team .status .in (teamStatusList ),
81
82
team .deletedAt .isNull (),
82
83
builder
83
84
)
@@ -118,9 +119,9 @@ public Page<SimpleTeamRes> findPaginationWithoutContest(String province, String
118
119
119
120
Long total = queryFactory .select (team .count ())
120
121
.from (team )
121
- .where (
122
- team .deletedAt . isNull (),
123
- builder
122
+ .where (team . deletedAt . isNull ()
123
+ . and ( team .status . in ( teamStatusList ))
124
+ . and ( builder )
124
125
)
125
126
.fetchOne ();
126
127
@@ -151,6 +152,7 @@ public Page<SimpleTeamRes> findRecruitPagination(Long memberId, Pageable pageabl
151
152
.from (team )
152
153
.where (
153
154
team .member .id .eq (memberId ),
155
+ team .status .in (teamStatusList ),
154
156
team .deletedAt .isNull ()
155
157
)
156
158
.fetchOne ();
@@ -230,8 +232,17 @@ public Page<SimpleTeamRes> findParticipatePagination(Long memberId, Pageable pag
230
232
Long total = queryFactory .select (team .count ())
231
233
.from (team )
232
234
.where (
233
- team .status .in (teamStatusList ),
234
- team .deletedAt .isNull ()
235
+ (
236
+ team .member .id .eq (memberId )
237
+ .and (team .status .in (teamStatusList ))
238
+ .and (team .deletedAt .isNull ())
239
+ )
240
+ .or (
241
+ apply .member .id .eq (memberId )
242
+ .and (apply .status .eq (ApplyStatus .ACCEPTED ))
243
+ .and (apply .team .status .in (teamStatusList ))
244
+ .and (apply .team .deletedAt .isNull ())
245
+ )
235
246
)
236
247
.fetchOne ();
237
248
0 commit comments