From 051ee1bacdb8996d4281a93d234e64c803a453d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EC=88=98?= Date: Wed, 18 Sep 2024 23:58:13 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20review=5Fstatus=20->=20status=20SQL?= =?UTF-8?q?=EB=AC=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/worlabel/domain/review/repository/ReviewRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java b/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java index ba48fbf..85efe72 100644 --- a/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java +++ b/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java @@ -20,7 +20,7 @@ public interface ReviewRepository extends JpaRepository { @Query(value = "SELECT r.*, m.* " + "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) List findReviewsNativeWithLimit( @Param("projectId") Integer projectId,