Skip to content

Commit

Permalink
♻️ :: BooleanBuilder 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
alsco39 committed Dec 17, 2023
1 parent bd0ca8e commit 075ee1e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,16 @@ public boolean existByUserId(UUID userId) {

@Override
public Long queryCommentCountByFeedId(UUID feedId) {
BooleanBuilder expression = new BooleanBuilder();

return query
.select(commentEntity.count())
.from(commentEntity)
.innerJoin(feedEntity)
.on(commentEntity.feedEntity.id.eq(feedEntity.id))
.where(
expression
.and(commentEntity.feedEntity.id.eq(feedId))
commentEntity.feedEntity.id.eq(feedId)
.and(commentEntity.deleted.eq(false))
.and(expression.and(feedEntity.deleted.eq(false)).and(commentEntity.feedEntity.id.eq(feedId)))
.and(feedEntity.deleted.eq(false))
.and(commentEntity.feedEntity.id.eq(feedId))
).fetchFirst();
}

Expand Down

0 comments on commit 075ee1e

Please sign in to comment.