diff --git a/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormDetailResponseDto.java b/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormDetailResponseDto.java index af261c1..b7a3499 100644 --- a/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormDetailResponseDto.java +++ b/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormDetailResponseDto.java @@ -27,6 +27,13 @@ public class MyOrderFormDetailResponseDto { private String buyer_account; private String buyer_account_name; private String deposittime; + private String project_name; + private String description; + private int total_price; + private String thumbnail; + private int status; + private int is_del; + private Long order_id; public MyOrderFormDetailResponseDto(List itemList, Orders orders, String address){ this.itemList = itemList; @@ -43,6 +50,13 @@ public MyOrderFormDetailResponseDto(List itemList, Orders this.buyer_account = orders.getAccount(); this.buyer_account_name = orders.getDepositor(); this.deposittime = orders.getDepositTime(); + this.project_name = orders.getProject().getName(); + this.description = orders.getProject().getDescription(); + this.total_price = orders.getTotal_price(); + this.thumbnail = orders.getProject().getThumbnail(); + this.status = orders.getOrder_status(); + this.is_del = orders.getIsDel(); + this.order_id = orders.getId(); } } diff --git a/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormResponseDto.java b/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormResponseDto.java index 26074b9..f0ed5ca 100644 --- a/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormResponseDto.java +++ b/src/main/java/wowmarket/wow_server/mypage/myorder/dto/MyOrderFormResponseDto.java @@ -14,13 +14,20 @@ public class MyOrderFormResponseDto { private String name; private LocalDateTime createdtime; private int status; - private int isdel; + private int is_del; + private int price; + private String description; + private String thumbnail; public MyOrderFormResponseDto(Orders order){ this.orderId = order.getId(); this.name = order.getProject().getName(); this.createdtime = order.getCreated_time(); this.status = order.getOrder_status(); - this.isdel = order.getIsDel(); + this.is_del = order.getIsDel(); + this.price = order.getTotal_price(); + this.thumbnail = order.getProject().getThumbnail(); + this.description = order.getProject().getDescription(); + } }