Skip to content

Commit 535ef4a

Browse files
authored
Merge pull request #48 from GAT2025/fix/#47
[Fix/#47] 나의 활동 중인 팀 리스트 조회 기능 버그 수정
2 parents 3f16602 + c65ad7c commit 535ef4a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/kotlin/gat_be/dev/domain/team/repository/TeamRepository.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface TeamRepository: JpaRepository<Team, Long> {
1818

1919
@Query("SELECT t " +
2020
"FROM Team t " +
21-
"JOIN FETCH t.leader " +
21+
"LEFT JOIN FETCH t.leader " +
2222
"JOIN FETCH t.techStackList " +
2323
"WHERE t.teamId IN :teamIdList"
2424
)
@@ -49,7 +49,7 @@ interface TeamRepository: JpaRepository<Team, Long> {
4949

5050
@Query("SELECT t " +
5151
"FROM Team t " +
52-
"JOIN FETCH t.leader " +
52+
"LEFT JOIN FETCH t.leader " +
5353
"JOIN FETCH t.techStackList tsl " +
5454
"WHERE t.teamId IN :teamIdList" )
5555
fun findByIdList(
@@ -59,11 +59,11 @@ interface TeamRepository: JpaRepository<Team, Long> {
5959

6060
@Query("SELECT DISTINCT t " +
6161
"FROM Team t " +
62-
"JOIN FETCH t.leader " +
62+
"LEFT JOIN FETCH t.leader " +
6363
"JOIN FETCH t.techStackList tsl " +
6464
"JOIN t.memberList tml " +
6565
"WHERE tml.userId = :userId " +
66-
"AND t.status <> 'PENDING'" +
66+
"AND t.status <> 'RECRUITING'" +
6767
"ORDER BY t.projectEndDate ASC")
6868
fun findByUserId(@Param("userId") userId: Long): List<Team>
6969

0 commit comments

Comments
 (0)