From 0a7476d0eb18680bc7a8a3edfb7d984ff9cb06fd Mon Sep 17 00:00:00 2001 From: ksj000625 Date: Wed, 18 Dec 2024 23:27:15 +0900 Subject: [PATCH] =?UTF-8?q?[temp]=20ci/cd=20=EC=9A=A9=20=EC=9E=84=EC=8B=9C?= =?UTF-8?q?=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/borrowPosts/ItemDslRepositoryImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/site/billbill/apiserver/repository/borrowPosts/ItemDslRepositoryImpl.java b/src/main/java/site/billbill/apiserver/repository/borrowPosts/ItemDslRepositoryImpl.java index b454bec..6c61cbd 100644 --- a/src/main/java/site/billbill/apiserver/repository/borrowPosts/ItemDslRepositoryImpl.java +++ b/src/main/java/site/billbill/apiserver/repository/borrowPosts/ItemDslRepositoryImpl.java @@ -37,12 +37,12 @@ public Page findItemsWithConditions(String category, Pageable pa JPAQuery 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)