Merge branch 'be/fix/review' into 'be/develop'

Fix: review_status -> status SQL문 변경

See merge request s11-s-project/S11P21S002!81
This commit is contained in:
정현조 2024-09-18 23:59:06 +09:00
commit 6f3ec9e0a1

View File

@ -20,7 +20,7 @@ public interface ReviewRepository extends JpaRepository<Review, Integer> {
@Query(value = "SELECT r.*, m.* " + @Query(value = "SELECT r.*, m.* " +
"FROM review r JOIN member m ON r.member_id = m.member_id " + "FROM review r JOIN member m ON r.member_id = m.member_id " +
"WHERE r.project_id = :projectId AND (:reviewStatus IS NULL OR r.review_status = :reviewStatus) AND (:lastReviewId IS NULL OR r.review_id < :lastReviewId) " + "WHERE r.project_id = :projectId AND (:reviewStatus IS NULL OR r.status = :reviewStatus) AND (:lastReviewId IS NULL OR r.review_id < :lastReviewId) " +
"ORDER BY r.review_id DESC LIMIT :limit", nativeQuery = true) "ORDER BY r.review_id DESC LIMIT :limit", nativeQuery = true)
List<Review> findReviewsNativeWithLimit( List<Review> findReviewsNativeWithLimit(
@Param("projectId") Integer projectId, @Param("projectId") Integer projectId,