Skip to content

Commit

Permalink
fix(#92): 리뷰 조회 시, 삭제여부 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dldmsql committed Feb 11, 2024
1 parent 8a49cb2 commit cdd9f52
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ReviewPagingVOWithCnt getReview(ReviewDto.ReviewQueryParam queryParam) {
.select(review)
.from(review)
.leftJoin(image)
.on(review.idx.eq(image.review.idx))
.on(review.idx.eq(image.review.idx).and(image.isDeleted.eq(Boolean.FALSE)))
.leftJoin(reviewMark)
.on(review.idx.eq(reviewMark.review.idx))
.innerJoin(restaurant)
Expand All @@ -58,7 +58,10 @@ public ReviewPagingVOWithCnt getReview(ReviewDto.ReviewQueryParam queryParam) {
.select(review.idx.count())
.from(review)
.leftJoin(image)
.on(review.idx.eq(image.review.idx))
.on(
review.idx
.eq(image.review.idx)
.and(image.isDeleted.eq(Boolean.FALSE)))
.leftJoin(reviewMark)
.on(review.idx.eq(reviewMark.review.idx))
.innerJoin(restaurant)
Expand Down

0 comments on commit cdd9f52

Please sign in to comment.