Skip to content

Commit

Permalink
Fix: 주문 내 쿠폰 사용 여부 판단
Browse files Browse the repository at this point in the history
  • Loading branch information
1223v committed Dec 6, 2023
1 parent 930ffa2 commit 3dd4c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ public class OrderDto {
private LocalDateTime time;
private String method;
private Long price;
private boolean isCouponUsed;
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ private OrderDto toOrderDto(Order order) {
.phone(order.getUserInfo().getPhone())
.price(order.getAmount())
.method(order.getMethod())
.isCouponUsed(order.getCoupon() != null && order.getCoupon().isUsed())
.foodies(order.getCart()
.getCartItems()
.stream()
Expand Down

0 comments on commit 3dd4c5a

Please sign in to comment.