diff --git a/src/main/java/com/somemore/review/dto/response/ReviewWithNicknameResponseDto.java b/src/main/java/com/somemore/review/dto/response/ReviewWithNicknameResponseDto.java index 8607bb2d0..ca25fdb1a 100644 --- a/src/main/java/com/somemore/review/dto/response/ReviewWithNicknameResponseDto.java +++ b/src/main/java/com/somemore/review/dto/response/ReviewWithNicknameResponseDto.java @@ -38,6 +38,8 @@ public static ReviewWithNicknameResponseDto from(Review review, String volunteer .title(review.getTitle()) .content(review.getContent()) .imgUrl(review.getImgUrl()) + .createdAt(review.getCreatedAt()) + .updateAt(review.getUpdatedAt()) .build(); } diff --git a/src/main/java/com/somemore/review/repository/ReviewRepositoryImpl.java b/src/main/java/com/somemore/review/repository/ReviewRepositoryImpl.java index e9d06b964..9b6f146d8 100644 --- a/src/main/java/com/somemore/review/repository/ReviewRepositoryImpl.java +++ b/src/main/java/com/somemore/review/repository/ReviewRepositoryImpl.java @@ -87,9 +87,9 @@ private Page getReviews(ReviewSearchCondition condition, BooleanExpressi JPAQuery countQuery = queryFactory .select(review.count()) + .from(review) .join(volunteerApply).on(review.volunteerApplyId.eq(volunteerApply.id)) .join(recruitBoard).on(recruitBoard.id.eq(volunteerApply.recruitBoardId)) - .from(review) .where(predicate); return PageableExecutionUtils.getPage(content, condition.pageable(), countQuery::fetchOne);