Skip to content

Commit

Permalink
Merge pull request #92 from marinesnow34/costShow
Browse files Browse the repository at this point in the history
Fix: 할인 가격 적용
  • Loading branch information
marinesnow34 authored Mar 26, 2024
2 parents da68629 + d08d612 commit 6f9c3ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ public class OrderDto {
private LocalDateTime time;
private String method;
private Long price;
private Long salePrice;
private boolean isCouponUsed;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ private OrderDto toOrderDto(Order order) {
.pickUp(order.getInOut())
.time(order.getCreatedAt())
.phone(order.getUserInfo().getPhone())
.price(order.getAmount())
.price(order.getTotalAmount())
.salePrice(order.getAmount())
.method(order.getMethod())
.foodies(order.getCart()
.getCartItems()
Expand Down

0 comments on commit 6f9c3ba

Please sign in to comment.