Skip to content

Commit

Permalink
[Fix/376] 핑퐁 목록 조회 쿼리를 수정한다 (#377)
Browse files Browse the repository at this point in the history
* fix: 보틀 목록 조회 쿼리 수정

* fix: 보틀 목록 조회 쿼리 수정
  • Loading branch information
miseongk committed Sep 2, 2024
1 parent a3ac51e commit 5a44cb5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ interface BottleRepository : JpaRepository<Bottle, Long> {

@Query(
value = "SELECT b FROM Bottle b " +
"WHERE ((b.targetUser = :user AND b.targetUser.deleted = false) " +
"OR (b.sourceUser = :user AND b.sourceUser.deleted = false )) " +
"WHERE (b.targetUser = :user OR b.sourceUser = :user) " +
"AND b.targetUser.deleted = false " +
"AND b.sourceUser.deleted = false " +
"AND b.pingPongStatus IN :pingPongStatus " +
"AND b.deleted = false "
)
Expand Down

0 comments on commit 5a44cb5

Please sign in to comment.