|
|
@@ -21,8 +21,15 @@ public class ProductOrderDTO {
|
|
|
private String status;
|
|
|
private String paymentMethod;
|
|
|
private String remark;
|
|
|
+ private Integer discountAmount;
|
|
|
+ private Long couponId;
|
|
|
+ private Date cancelAt;
|
|
|
+ private String transactionId;
|
|
|
+ private String coverImage;
|
|
|
+ private String addressSnapshot;
|
|
|
private Date paidAt;
|
|
|
private Date createdAt;
|
|
|
+ private Date updatedAt;
|
|
|
|
|
|
public static ProductOrderDTO from(ProductOrder o) {
|
|
|
if (o == null) return null;
|
|
|
@@ -40,8 +47,15 @@ public class ProductOrderDTO {
|
|
|
d.status = o.getStatus();
|
|
|
d.paymentMethod = o.getPaymentMethod();
|
|
|
d.remark = o.getRemark();
|
|
|
+ d.discountAmount = o.getDiscountAmount();
|
|
|
+ d.couponId = o.getCouponId();
|
|
|
+ d.cancelAt = o.getCancelAt();
|
|
|
+ d.transactionId = o.getTransactionId();
|
|
|
+ d.coverImage = o.getCoverImage();
|
|
|
+ d.addressSnapshot = o.getAddressSnapshot();
|
|
|
d.paidAt = o.getPaidAt();
|
|
|
d.createdAt = o.getCreatedAt();
|
|
|
+ d.updatedAt = o.getUpdatedAt();
|
|
|
return d;
|
|
|
}
|
|
|
}
|