diff --git a/src/main/java/com/example/WebOrder/dto/OrderItemDto.java b/src/main/java/com/example/WebOrder/dto/OrderItemDto.java index f7d72a18d1..4618384904 100644 --- a/src/main/java/com/example/WebOrder/dto/OrderItemDto.java +++ b/src/main/java/com/example/WebOrder/dto/OrderItemDto.java @@ -15,7 +15,7 @@ public class OrderItemDto { public static OrderItemDto fromEntity(OrderItem orderItem){ OrderItemDto dto = new OrderItemDto(); - dto.setItemId(orderItem.getId()); + dto.setItemId(orderItem.getItem().getId()); dto.setName(orderItem.getItem().getName()); dto.setCount(orderItem.getCount()); dto.setTotalPrice(orderItem.getTotalPrice());