From 51e80edf28cb50e05aeeb54ca634484523d83001 Mon Sep 17 00:00:00 2001 From: JSoi Date: Tue, 19 Jul 2022 02:08:04 +0900 Subject: [PATCH] =?UTF-8?q?#16=20[Fix]=20=EC=B5=9C=EA=B7=BC=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mpnp/baechelin/review/repository/ReviewQueryRepository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/mpnp/baechelin/review/repository/ReviewQueryRepository.java b/src/main/java/com/mpnp/baechelin/review/repository/ReviewQueryRepository.java index 8d90ad4..4d41fa3 100644 --- a/src/main/java/com/mpnp/baechelin/review/repository/ReviewQueryRepository.java +++ b/src/main/java/com/mpnp/baechelin/review/repository/ReviewQueryRepository.java @@ -38,6 +38,7 @@ public List findRecentReviews(BigDecimal lat, // 위도 경도에 해당하는 가게를 찾음 -> 해당 댓글을 다 가져옴 -> 내림차순 정렬 -> limit // TODO 쿼리문 개선하기 return queryFactory.selectFrom(review) + .join(review.storeId, store) .where(builder) .orderBy(review.createdAt.desc()) .limit(limit)