Skip to content

Commit

Permalink
[feat]나의 주문폼 상세보기 #137
Browse files Browse the repository at this point in the history
  • Loading branch information
yunji118 committed Dec 28, 2023
1 parent 41dcd08 commit 12110b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<MyOrderFormDetailDto> itemList, Orders orders, String address){
this.itemList = itemList;
Expand All @@ -43,6 +50,13 @@ public MyOrderFormDetailResponseDto(List<MyOrderFormDetailDto> 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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}
}

0 comments on commit 12110b1

Please sign in to comment.