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)