Skip to content

Commit

Permalink
hotfix: 음식점 조회시 경도 조건이 적용되지않는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Sep 21, 2024
1 parent ae9feff commit 361ecfd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ class CustomRestaurantRepositoryImpl(
filter.category?.let { path(RestaurantJpaEntity::category).eq(it) },
filter.region?.let { path(RestaurantJpaEntity::roadAddress).like("%$it%") },
filter.searchArea?.let {
path(RestaurantJpaEntity::longitude).between(it.lowLongitude, it.highLongitude)
path(RestaurantJpaEntity::latitude).between(it.lowLatitude, it.highLatitude)
path(RestaurantJpaEntity::longitude).between(
it.lowLongitude,
it.highLongitude
)
},
filter.searchArea?.let { path(RestaurantJpaEntity::latitude).between(it.lowLatitude, it.highLatitude) },
)
}
val restaurants = findSlice.content.filterNotNull()
Expand Down

0 comments on commit 361ecfd

Please sign in to comment.