Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
adizafri2000 committed Jun 30, 2024
1 parent c1fbecf commit 4309de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ public record CartItemDetailsResponseDTO(
String produceName,
BigDecimal produceUnitPrice,
String produceSellingUnit,
Integer produceStore,
Integer cartItemQuantity,
Integer storeId,
Integer cartItemQuantity,
String storeName
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface CartItemRepository extends JpaRepository<CartItem, Integer>{

// retrieves all cart items in cart by account id, containing the necessary produce details
@Query("select new com.example.springbootbackend.dto.cartitem.CartItemDetailsResponseDTO(" +
"c.id, c.account, p.id, p.name, p.unitPrice, p.sellingUnit, p.store, ci.quantity, s.id, s.name) " +
"c.id, c.account, p.id, p.name, p.unitPrice, p.sellingUnit, p.store, ci.quantity, s.name) " +
"from CartItem ci " +
"left join Cart c on c.id = ci.cart " +
"left join Produce p on p.id = ci.produce " +
Expand Down

0 comments on commit 4309de0

Please sign in to comment.