Skip to content

Commit

Permalink
refactor(repository): query dsl select 라인 줄바
Browse files Browse the repository at this point in the history
  • Loading branch information
jminkkk committed Nov 13, 2024
1 parent 6c61b52 commit 79d8ac1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ private List<Template> getTemplates(
Visibility visibility,
Pageable pageable
) {
return queryFactory
.selectFrom(QTemplate.template)
return queryFactory.selectFrom(QTemplate.template)
.leftJoin(QTemplate.template.category).fetchJoin()
.leftJoin(QTemplate.template.member).fetchJoin()
.where(matchesKeyword(memberId, keyword, categoryId, tagIds, visibility))
Expand Down Expand Up @@ -89,8 +88,7 @@ private BooleanExpression[] matchesKeyword(
}

public FixedPage<Template> findAllLikedByMemberId(Long memberId, Pageable pageable) {
List<Template> content = queryFactory
.select(QLikes.likes.template)
List<Template> content = queryFactory.select(QLikes.likes.template)
.from(QLikes.likes)
.where(isLikedTemplateByMember(memberId))
.orderBy(TemplateOrderSpecifierUtils.getOrderSpecifier(pageable.getSort()))
Expand Down

0 comments on commit 79d8ac1

Please sign in to comment.