From 50ebdbf3da1405580c7da2722ead2b36fec44359 Mon Sep 17 00:00:00 2001 From: Joowon Lim Date: Mon, 27 Nov 2023 02:58:00 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EA=B3=84=EC=82=B0=20=EB=82=B4=EC=97=AD?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../readyverydemo/src/order/dto/HistoryDetailRes.java | 3 +++ .../com/readyvery/readyverydemo/src/order/dto/OrderMapper.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/com/readyvery/readyverydemo/src/order/dto/HistoryDetailRes.java b/src/main/java/com/readyvery/readyverydemo/src/order/dto/HistoryDetailRes.java index cf34f9b..920e411 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/order/dto/HistoryDetailRes.java +++ b/src/main/java/com/readyvery/readyverydemo/src/order/dto/HistoryDetailRes.java @@ -14,4 +14,7 @@ public class HistoryDetailRes { private CartGetRes cart; private String salePrice; private String method; + private Long cartId; + private Long storeId; + private Long inOut; } diff --git a/src/main/java/com/readyvery/readyverydemo/src/order/dto/OrderMapper.java b/src/main/java/com/readyvery/readyverydemo/src/order/dto/OrderMapper.java index 0834420..c69b7d2 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/order/dto/OrderMapper.java +++ b/src/main/java/com/readyvery/readyverydemo/src/order/dto/OrderMapper.java @@ -269,6 +269,9 @@ public DefaultRes tosspaymentDtoToCancelRes() { public HistoryDetailRes orderToHistoryDetailRes(Order order) { return HistoryDetailRes.builder() + .cartId(order.getCart().getId()) + .storeId(order.getStore().getId()) + .inOut(order.getInOut()) .orderStatus(order.getProgress().toString()) .storeName(order.getStore().getName()) .orderTime(order.getCreatedAt().format(DateTimeFormatter.ofPattern(DATE_FORMAT)))