Skip to content

Commit

Permalink
hotfix: 서브쿼리 반환 개수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Sep 12, 2023
1 parent 513b14e commit e099592
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,15 @@ public Page<RestaurantWithDistance> searchNearBy(
restaurant.naverMapUrl,
restaurant.viewCount,
distance(standard.latitude(), standard.longitude()).as(RestaurantWithDistanceDao.distanceColumn),
select(restaurantLike.count()).from(restaurantLike)
.where(restaurantLike.restaurant.id.eq(restaurant.id)).groupBy(restaurant.id),
select(isLike(memberId)).from(restaurantLike).where(restaurantLike.restaurant.id.eq(restaurant.id)
.and(restaurantLikeMemberIdEqual(memberId)))
select(restaurantLike.count())
.from(restaurantLike)
.where(restaurantLike.restaurant.id.eq(restaurant.id))
.groupBy(restaurant.id),
select(isLike(memberId))
.from(restaurantLike)
.where(restaurantLike.restaurant.id.eq(restaurant.id)
.and(restaurantLikeMemberIdEqual(memberId)))
.groupBy(restaurantLike.restaurant.id)
))
.from(restaurant)
.where(
Expand Down

0 comments on commit e099592

Please sign in to comment.