Skip to content

Commit

Permalink
🐛 fix: OrderItemDto 수정
Browse files Browse the repository at this point in the history
- item의 id를 적용해야하는데, orderItem의 id를 세팅했던 실수 고침
  • Loading branch information
hightuv committed May 7, 2024
1 parent dbe6f21 commit 0906ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/example/WebOrder/dto/OrderItemDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 0906ba5

Please sign in to comment.