From 54da9170eafe4c47c656fe4c26eb15dff4074796 Mon Sep 17 00:00:00 2001 From: mmihye Date: Thu, 11 Sep 2025 17:45:11 +0900 Subject: [PATCH] =?UTF-8?q?=20[#159]=20fix:=20=EC=B6=94=EC=B2=9C=20?= =?UTF-8?q?=EC=9E=A5=EC=86=8C=20=EA=B8=B0=EB=B3=B8=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=EA=B0=80=20=EC=95=84=EB=8B=8C=EA=B2=83=20=ED=95=84?= =?UTF-8?q?=ED=84=B0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Together/domain/place/repository/PlaceRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/Journey/Together/domain/place/repository/PlaceRepository.java b/src/main/java/Journey/Together/domain/place/repository/PlaceRepository.java index b1a9339..28871ee 100644 --- a/src/main/java/Journey/Together/domain/place/repository/PlaceRepository.java +++ b/src/main/java/Journey/Together/domain/place/repository/PlaceRepository.java @@ -14,11 +14,13 @@ public interface PlaceRepository extends JpaRepository, PlaceRepositoryCustom { @Query(value = "SELECT * FROM place p " + "WHERE p.first_img IS NOT NULL AND TRIM(p.first_img) <> '' " + + "AND p.first_img != 'https://daongil.s3.ap-northeast-2.amazonaws.com/empty_img.jpg'"+ "ORDER BY RAND() LIMIT :count", nativeQuery = true) List findRandomProducts(@Param("count") int count); @Query(value = "SELECT * FROM place p " + "WHERE p.first_img IS NOT NULL AND TRIM(p.first_img) <> '' " + + "AND p.first_img != 'https://daongil.s3.ap-northeast-2.amazonaws.com/empty_img.jpg'"+ "AND area_code = :areacode AND sigungu_code = :sigungucode " + "ORDER BY RAND() LIMIT :count", nativeQuery = true) List findAroundProducts(@Param("areacode") String areacode,