Skip to content

Commit

Permalink
Merge pull request #48 from hightuv/장바구니-아이템관리-주문현황페이지-수정
Browse files Browse the repository at this point in the history
🐛 fix: OrderItemDto 수정
  • Loading branch information
moonwonki authored May 8, 2024
2 parents 076067b + 0906ba5 commit 54bf4db
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 54bf4db

Please sign in to comment.