gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
package com.mzl.flower.dto.response.payment;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mzl.flower.base.AbstractTransDTO;
import com.mzl.flower.base.annotation.DictTrans;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@Data
public class OrderDTO extends AbstractTransDTO {
    private String id;
 
    @ApiModelProperty(value = "订单单号")
    private String orderNo;
 
    @ApiModelProperty(value = "商品金额")
    private BigDecimal flowerAmount;
 
    @ApiModelProperty(value = "打包费")
    private BigDecimal packingFee;
 
    @ApiModelProperty(value = "运费")
    private BigDecimal transportFee;
 
    @ApiModelProperty(value = "订单金额")
    private BigDecimal totalAmount;
 
    @ApiModelProperty(value = "状态; 合伙人和花店展示")
    @DictTrans(target = "statusStr", codeType = "ORDER_STATUS")
    private String status;
    private String statusStr;
 
    @ApiModelProperty(value = "状态; 平台展示")
    @DictTrans(target = "statusBackendStr", codeType = "ORDER_STATUS_BACKEND")
    private String statusBackend;
    private String statusBackendStr;
 
    @ApiModelProperty(value = "收货人")
    private String customer;
 
    @ApiModelProperty(value = "收货人手机号码")
    private String customerTel;
 
    private String customerProvince;
    private String customerCity;
    private String customerRegion;
 
    @ApiModelProperty(value = "收货地址")
    private String customerAddress;
 
    @ApiModelProperty(value = "支付金额")
    private BigDecimal paymentAmount;
 
    @ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime paymentTime;
 
    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;
 
    @ApiModelProperty(value = "库位名称")
    private String warehouseLocationCode;
 
    @ApiModelProperty(value = "库位分配时间")
    private LocalDateTime warehouseTime;
 
    @ApiModelProperty(value = "合伙人名称")
    private String partnerName;
 
    @ApiModelProperty(value = "特殊需求")
    @DictTrans(target = "specialNeedsStr", codeType = "SPEC_REQ")
    private String specialNeeds;
    private String specialNeedsStr;
 
    @ApiModelProperty(value = "留言")
    private String remarks;
 
    @ApiModelProperty(value = "评价")
    private String evaluate;
 
    @ApiModelProperty(value = "取消时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime cancelTime;
 
    @ApiModelProperty(value = "评价时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime evaluateTime;
 
    @ApiModelProperty(value = "下单人")
    private String createName;
 
    @ApiModelProperty(value = "退款单号")
    private String refundNo;
 
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;
 
    @ApiModelProperty(value = "退款时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime refundTime;
 
    @ApiModelProperty(value = "是否可退款;这是给花店使用的")
    private boolean couldRefund;
 
    @ApiModelProperty(value = "收货时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime receiveTime;
 
    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime completeTime;
 
    @ApiModelProperty(value = "转账时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime transferTime;
 
    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime createTime;
 
    @ApiModelProperty(value = "是否可质检退款")
    private boolean couldCheckRefund;
 
    @ApiModelProperty(value = "支付单号")
    private String paymentTrId;
 
    @ApiModelProperty(value = "积分商品列表")
    private List<OrderPointGoodsListDTO> pointGoodsList;
 
    @ApiModelProperty(value = "优惠券编码")
    private String memberCouponCode;
 
    @ApiModelProperty(value = "优惠券名称")
    private String memberCouponName;
 
    @ApiModelProperty(value = "优惠券金额")
    private BigDecimal memberCouponAmount;
 
    @ApiModelProperty(value = "会员等级名称")
    private String memberName;
 
    @ApiModelProperty(value = "折扣类型(discount_type)")
    @DictTrans(target = "memberDiscountTypeStr", codeType = "DISCOUNT_TYPE")
    private String memberDiscountType;
    private String memberDiscountTypeStr;
 
    @ApiModelProperty(value = "会员折扣")
    private BigDecimal memberDiscountRatio;
 
    @ApiModelProperty(value = "优惠金额(每扎)")
    private BigDecimal memberDiscountAmount;
 
    private List<OrderItemListDTO> items;
}