Skip to content

Commit

Permalink
Merge pull request #167 from Team-BC-1/fix/querydsl-pagination-count-…
Browse files Browse the repository at this point in the history
…query

판매/구매입찰가격수량 QueryDsl 페이징 처리 시, Count 수정
  • Loading branch information
vanillacake369 authored Jan 18, 2024
2 parents 9376809 + 959b1fd commit 50edd9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public Page<BuyPriceToQuantityResponseDto> findAllPriceToQuantityOf(Product prod
.from(buy)
.leftJoin(buy.product, QProduct.product)
.where(buy.product.eq(product))
.groupBy(buy.price)
.orderBy(orderSpecifiers);

return PageableExecutionUtils.getPage(buyPriceToQuantityResponseDtos, pageable, countQuery::fetchOne);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public Page<SellPriceToQuantityResponseDto> findAllPriceToQuantityOf(Product pro
.from(sell)
.leftJoin(sell.product, QProduct.product)
.where(sell.product.eq(product))
.groupBy(sell.price)
.orderBy(orderSpecifiers);

return PageableExecutionUtils.getPage(priceToQuantities, pageable, countQuery::fetchOne);
Expand Down

0 comments on commit 50edd9d

Please sign in to comment.