Skip to content

Commit

Permalink
Merge pull request #99 from kea-dpang/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
oo-ni authored Feb 14, 2024
2 parents b43f6b5 + 1f65cca commit 7578407
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/kea/dpang/item/service/ItemServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,13 @@ public ItemDetailDto getItemDetailInfo(Long itemId) {
}

// 상품 리스트 조회
// ItemServiceImpl.java
@Override
public Page<ItemDetailDto> getItemList(Category category, SubCategory subCategory, Double minPrice, Double maxPrice, String keyword, Long sellerId, Pageable pageable) {
// 정렬 조건 추가
Sort sort = Sort.by(Sort.Direction.DESC, "createdTime");
pageable = PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), sort);

log.info("상품 리스트 조회를 시작합니다 : 카테고리 = {}, 서브카테고리 = {}, 판매자ID = {}, 최소가격 = {}, 최대가격 = {}, 키워드 = {}, 페이지 요청 정보 = {}", category, subCategory, sellerId, minPrice, maxPrice, keyword, pageable);
Page<Item> items = filterItems(category, subCategory, sellerId, minPrice, maxPrice, keyword, pageable);

Expand Down

0 comments on commit 7578407

Please sign in to comment.