Skip to content

Commit 4309de0

Browse files
committed
update
1 parent c1fbecf commit 4309de0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spring-boot-backend/src/main/java/com/example/springbootbackend/dto/cartitem/CartItemDetailsResponseDTO.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ public record CartItemDetailsResponseDTO(
99
String produceName,
1010
BigDecimal produceUnitPrice,
1111
String produceSellingUnit,
12-
Integer produceStore,
13-
Integer cartItemQuantity,
1412
Integer storeId,
13+
Integer cartItemQuantity,
1514
String storeName
1615
) {
1716
}

spring-boot-backend/src/main/java/com/example/springbootbackend/repository/CartItemRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface CartItemRepository extends JpaRepository<CartItem, Integer>{
1717

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

0 commit comments

Comments
 (0)