Skip to content

Commit

Permalink
Merge pull request #166 from TRIP-Side-Project/refactor/#165
Browse files Browse the repository at this point in the history
여행상품 응답 작성자 제거
  • Loading branch information
gkfktkrh153 authored Dec 28, 2023
2 parents f2fe560 + ab179ba commit 83389c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -33,7 +31,6 @@ public static GetItemResponse of(Item item){
.buyUrl(item.getBuyUrl())
.maxPrice(item.getMaxPrice())
.minPrice(item.getMinPrice())
.writerNickname(item.getWriter().getNickname())
.build();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ItemRepositoryCustomImpl(EntityManager em) {
public Page<Item> findItems(Pageable pageable, int sortCode, String search) {

List<Item> result = jpaQueryFactory.selectFrom(item)
.join(item.writer).fetchJoin()
//.join(item.writer).fetchJoin()
.where(
eqToSearchText(search),
item.isDeleted.eq(false)
Expand Down

0 comments on commit 83389c8

Please sign in to comment.