From ab179ba4c007ca1bae61de2f5df70a22029e021c Mon Sep 17 00:00:00 2001 From: gkfktkrh153 Date: Thu, 28 Dec 2023 21:20:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=AC=ED=96=89=EC=83=81=ED=92=88=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=EC=9E=91=EC=84=B1=EC=9E=90=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trip/domain/item/controller/dto/GetItemResponse.java | 7 ++----- .../domain/item/repository/ItemRepositoryCustomImpl.java | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/api/trip/domain/item/controller/dto/GetItemResponse.java b/src/main/java/com/api/trip/domain/item/controller/dto/GetItemResponse.java index 1541c4a..c8b22e5 100644 --- a/src/main/java/com/api/trip/domain/item/controller/dto/GetItemResponse.java +++ b/src/main/java/com/api/trip/domain/item/controller/dto/GetItemResponse.java @@ -18,11 +18,9 @@ public class GetItemResponse { private String buyUrl; - private long maxPrice; + private Integer maxPrice; - private long minPrice; - - private String writerNickname; + private Integer minPrice; public static GetItemResponse of(Item item){ return GetItemResponse.builder() @@ -33,7 +31,6 @@ public static GetItemResponse of(Item item){ .buyUrl(item.getBuyUrl()) .maxPrice(item.getMaxPrice()) .minPrice(item.getMinPrice()) - .writerNickname(item.getWriter().getNickname()) .build(); } diff --git a/src/main/java/com/api/trip/domain/item/repository/ItemRepositoryCustomImpl.java b/src/main/java/com/api/trip/domain/item/repository/ItemRepositoryCustomImpl.java index 121b6c0..af0b39b 100644 --- a/src/main/java/com/api/trip/domain/item/repository/ItemRepositoryCustomImpl.java +++ b/src/main/java/com/api/trip/domain/item/repository/ItemRepositoryCustomImpl.java @@ -32,7 +32,7 @@ public ItemRepositoryCustomImpl(EntityManager em) { public Page findItems(Pageable pageable, int sortCode, String search) { List result = jpaQueryFactory.selectFrom(item) - .join(item.writer).fetchJoin() + //.join(item.writer).fetchJoin() .where( eqToSearchText(search), item.isDeleted.eq(false)