Skip to content

Commit

Permalink
Feat: Shelter 관련 요구사항 적용 (#56)
Browse files Browse the repository at this point in the history
* Feat(#40) : get admin-address info api

* Feat(#40) : add id field to GetAddressResponse dto

* Feat(#40) : implement get address-info api

* Feat(#40) : add facilityFullName Field to response

* Feat(#48): shelter 조회 반경을 1.5 km 에서 1.0 km 으로 변경
  • Loading branch information
versatile0010 authored Nov 12, 2023
1 parent 0c38593 commit cc23049
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class ShelterController {
(주의🔥) 대피소가 하나도 없는 경우에는 NotFound 예외를 터뜨립니다.
distance 는 미터(m) 단위이며 1500 m 이내 대피소만 검색합니다.
distance 는 미터(m) 단위이며 1000 m 이내 대피소만 검색합니다.
검색 결과가 0 개인 경우, NotFound 예외를 터뜨립니다.
Expand Down Expand Up @@ -72,7 +72,7 @@ public ResponseEntity<NearestShelterResponse> getNearestAnyShelter(
최대 10 개 까지만 반환합니다.
distance 는 미터(m) 단위이며 1500 m 이내 대피소만 검색합니다.
distance 는 미터(m) 단위이며 1000 m 이내 대피소만 검색합니다.
access token 을 헤더에 담아서 요청해주세요.
""")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface ShelterRepository extends JpaRepository<Shelter, Long>, CustomS
" FROM shelter " +
" WHERE shelter.longitude != 0 and shelter.latitude != 0 " +
" AND shelter.status = 'OPEN' " +
" HAVING distance <= 1500 " +
" HAVING distance <= 1000 " +
" ORDER BY distance " +
" LIMIT 10",
nativeQuery = true)
Expand All @@ -32,7 +32,7 @@ public interface ShelterRepository extends JpaRepository<Shelter, Long>, CustomS
" FROM shelter " +
" WHERE shelter.longitude != 0 and shelter.latitude != 0 " +
" AND shelter.status = 'OPEN' " +
" HAVING distance <= 1500 " +
" HAVING distance <= 1000 " +
" ORDER BY distance " +
" LIMIT 1",
nativeQuery = true)
Expand All @@ -45,7 +45,7 @@ public interface ShelterRepository extends JpaRepository<Shelter, Long>, CustomS
" FROM shelter " +
" WHERE (shelter.longitude != 0 and shelter.latitude != 0) and shelter.shelter_type = :shelter_type " +
" AND shelter.status = 'OPEN' " +
" HAVING distance <= 1500 " +
" HAVING distance <= 1000 " +
" ORDER BY distance " +
" LIMIT 10",
nativeQuery = true)
Expand All @@ -58,7 +58,7 @@ public interface ShelterRepository extends JpaRepository<Shelter, Long>, CustomS
" FROM shelter " +
" WHERE shelter.longitude != 0 and shelter.latitude != 0 and shelter.shelter_type = :shelter_type " +
" AND shelter.status = 'OPEN' " +
" HAVING distance <= 1500 " +
" HAVING distance <= 1000 " +
" ORDER BY distance " +
" LIMIT 1",
nativeQuery = true)
Expand Down

0 comments on commit cc23049

Please sign in to comment.