Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ORDER BY SUM(oi.quantity) DESC
value = "SELECT new com.bazaar.orders.dto.catalog.ProductRankingResponseDTO(oi.productId, SUM(oi.quantity), SUM(oi.price * oi.quantity)) "
+ "FROM OrderItem oi " + "WHERE oi.order.orderPayment.createdAt >= :startDate "
+ "AND oi.order.orderPayment.orderPaymentStatus = :status " + "GROUP BY oi.productId "
+ "ORDER BY SUM(oi.quantity) DESC",
+ "ORDER BY SUM(oi.quantity) DESC, oi.productId DESC",
countQuery = "SELECT COUNT(DISTINCT oi.productId) "
+ "FROM OrderItem oi "
+ "WHERE oi.order.orderPayment.createdAt >= :startDate "
Expand All @@ -119,7 +119,7 @@ ORDER BY SUM(oi.quantity) DESC
AND op.orderPaymentStatus = :status
AND oi.category IN :categories
GROUP BY oi.productId
ORDER BY SUM(oi.quantity) DESC
ORDER BY SUM(oi.quantity) DESC, oi.productId DESC
""",
countQuery = """
SELECT COUNT(DISTINCT oi.productId)
Expand Down
Loading