Skip to content

Commit

Permalink
feat: 게시판 타입 카운트 누락 쿼리 추가 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Dec 23, 2023
1 parent 78e31e2 commit 838ae82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private List<PostResponse> getSearchPageContent(final PostSearchCondition condit
.fetch();
}

private BooleanExpression judgeTier(PostTier postTierEnum) {
private BooleanExpression judgeTier(final PostTier postTierEnum) {
return post.postTier.eq(postTierEnum);
}

Expand Down Expand Up @@ -79,6 +79,7 @@ private JPAQuery<Long> getSearchPageCount(final PostSearchCondition condition) {
.select(Wildcard.count)
.from(post)
.where(
judgeTier(condition.getPostTierEnum()),
containTitle(condition.getTitle()),
containContent(condition.getContent()),
containWriter(condition.getWriter())
Expand Down

0 comments on commit 838ae82

Please sign in to comment.