From 30a90304fcc3fa1d252fb93cce622a63ee7ec1d6 Mon Sep 17 00:00:00 2001 From: SeoSiun <55352430+SeoSiun@users.noreply.github.com> Date: Thu, 24 Aug 2023 00:15:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8C=80=EB=A6=AC=EC=A0=90=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=EC=8B=9C=20=EB=B0=98=EA=B2=BD=2010km=20->=202km=20?= =?UTF-8?q?=EC=9D=B4=EB=82=B4=EB=A1=9C=20=EC=88=98=EC=A0=95=20(#379)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jpa/agency/repository/AgencyJpaRepository.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BE-MyCarMaster/src/main/java/softeer/be_my_car_master/infrastructure/jpa/agency/repository/AgencyJpaRepository.java b/BE-MyCarMaster/src/main/java/softeer/be_my_car_master/infrastructure/jpa/agency/repository/AgencyJpaRepository.java index ce853690..74b55f3a 100644 --- a/BE-MyCarMaster/src/main/java/softeer/be_my_car_master/infrastructure/jpa/agency/repository/AgencyJpaRepository.java +++ b/BE-MyCarMaster/src/main/java/softeer/be_my_car_master/infrastructure/jpa/agency/repository/AgencyJpaRepository.java @@ -1,6 +1,5 @@ package softeer.be_my_car_master.infrastructure.jpa.agency.repository; -import java.util.Collection; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; @@ -16,7 +15,7 @@ public interface AgencyJpaRepository extends JpaRepository { + "WHERE a.id IN (" + "SELECT id " + "FROM agency " - + "WHERE ST_Distance_Sphere(POINT(:longitude, :latitude), POINT(longitude, latitude)) < 10000" + + "WHERE ST_Distance_Sphere(POINT(:longitude, :latitude), POINT(longitude, latitude)) < 2000" + ")", nativeQuery = true) List findAllByLocation(