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:
commit
6f3ec9e0a1
@ -20,7 +20,7 @@ public interface ReviewRepository extends JpaRepository<Review, Integer> {
|
||||
|
||||
@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<Review> findReviewsNativeWithLimit(
|
||||
@Param("projectId") Integer projectId,
|
||||
|
Loading…
Reference in New Issue
Block a user