Skip to content

Commit

Permalink
♻️ : 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Mar 12, 2024
1 parent aa25aab commit 4d352e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ private CommonResponse<StoreRes.ReviewInfo> getStoreReviewByReviewId(@Authentica

StoreRes.ReviewInfo reviewInfo=reviewService.getStoreReviewByReviewId(reviewId,userId);

//reviewService.readReview(reviewId,userId);

return CommonResponse.onSuccess(reviewInfo);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
public interface StoreReviewRepository extends JpaRepository<StoreReview,Long> {
Page<StoreReview> findByStoreIdAndDeletedOrderByCreatedAtDescIdAsc(Long storeId, boolean b,Pageable pageReq);

@Query(nativeQuery = true,value="select SR.id 'reviewId',SR.user_id'userId',\n" +
@Query(nativeQuery = true,
value="select SR.id 'reviewId',SR.user_id'userId',\n" +
" U.profile_url 'profileImgUrl',\n" +
" U.nickname,\n" +
" SR.img_url 'imgUrl',\n" +
Expand All @@ -28,7 +29,7 @@ public interface StoreReviewRepository extends JpaRepository<StoreReview,Long> {
" join User U on U.id = SR.user_id\n" +
" join Store S on S.id = SR.store_id\n" +
" join Region R on R.id = S.region_id\n" +
" join ReviewKeep K on K.review_id=:reviewId " +
" left join ReviewKeep K on K.review_id=:reviewId " +
"where SR.id=:reviewId and SR.deleted=true")
StoreReviewRepository.GetStoreReview getStoreReview(@Param("reviewId") Long reviewId, @Param("userId") Long userId);

Expand Down

0 comments on commit 4d352e2

Please sign in to comment.