Skip to content

Commit

Permalink
Merge pull request #87 from billbill-project/feature/borrowPosts
Browse files Browse the repository at this point in the history
[temp] ci/cd 용 임시 커밋
  • Loading branch information
ksj000625 authored Dec 18, 2024
2 parents 4f04025 + 0a7476d commit 244b6e7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public Page<ItemsJpaEntity> findItemsWithConditions(String category, Pageable pa


JPAQuery<ItemsJpaEntity> query = queryFactory.selectFrom(items)
.leftJoin(items.category, categoryEntity).fetchJoin() // 명시적 Fetch Join
.leftJoin(borrow).on(items.id.eq(borrow.item.id))
.where(items.delYn.isFalse());
.leftJoin(items.category, categoryEntity).fetchJoin() // 명시적 Fetch Join
.leftJoin(borrow).on(items.id.eq(borrow.item.id))
.where(items.delYn.isFalse());

// 카테고리 필터링
if(category==null){
if (category == null) {
query.where(items.category.isNull());
} else if (!"entire".equals(category)) {
var fetchedCategory = queryFactory.selectFrom(categoryEntity)
Expand Down

0 comments on commit 244b6e7

Please sign in to comment.