Skip to content

Commit

Permalink
[fix] 최신 여행 후기 totalCount 조회에서 여행 후기id에 따라 개수 변화 기능 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
meena2003 committed Jan 29, 2024
1 parent dc0e280 commit 29e1393
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public interface TripRecordReviewRepository extends JpaRepository<TripRecordRevi

boolean existsByMemberAndTripRecord(Member member, TripRecord tripRecord);

@Query("select count(trr) from TripRecordReview trr where trr.content is not null")
Long countByTripRecordId(Long tripRecordId);
@Query("select count(trr) from TripRecordReview trr where trr.content is not null and trr.tripRecord.id = :tripRecordId")
Long countByTripRecordId(@Param("tripRecordId") Long tripRecordId);
}

0 comments on commit 29e1393

Please sign in to comment.