1
zj
2024-06-13 66c2ab8a29786a5ee15c649890c5ec3c876c4774
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
168
169
170
package com.yami.trading.model;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
 
/**
 * <p>
 * 订单表
 * </p>
 *
 * @author HT
 * @since 2023-02-25 18:59:24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tz_order")
public class Order {
 
    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;
 
    /**
     * 店铺id
     */
    private Long shopId;
 
    /**
     * 产品名称,多个产品将会以逗号隔开
     */
    private String prodName;
 
    /**
     * 订购用户ID
     */
    private String userId;
 
    /**
     * 订购流水号
     */
    private String orderNumber;
 
    /**
     * 总值
     */
    private BigDecimal total;
 
    /**
     * 实际总值
     */
    private BigDecimal actualTotal;
 
    /**
     * 支付方式 0 手动代付 1 微信支付 2 支付宝
     */
    private Integer payType;
 
    /**
     * 订单备注
     */
    private String remarks;
 
    /**
     * 订单状态 1:待付款 2:待发货 3:待收货 4:待评价 5:成功 6:失败
     */
    @TableField("`status`")
    private Integer status;
 
    /**
     * 配送类型
     */
    private String dvyType;
 
    /**
     * 配送方式ID
     */
    private Long dvyId;
 
    /**
     * 物流单号
     */
    private String dvyFlowId;
 
    /**
     * 订单运费
     */
    private BigDecimal freightAmount;
 
    /**
     * 用户订单地址Id
     */
    private Long addrOrderId;
 
    /**
     * 订单商品总数
     */
    private Integer productNums;
 
    /**
     * 订购时间
     */
    private LocalDateTime createTime;
 
    /**
     * 订单更新时间
     */
    private LocalDateTime updateTime;
 
    /**
     * 付款时间
     */
    private LocalDateTime payTime;
 
    /**
     * 发货时间
     */
    private LocalDateTime dvyTime;
 
    /**
     * 完成时间
     */
    private LocalDateTime finallyTime;
 
    /**
     * 取消时间
     */
    private LocalDateTime cancelTime;
 
    /**
     * 是否已经支付,1:已经支付过,0:,没有支付过
     */
    private Boolean isPayed;
 
    /**
     * 用户订单删除状态,0:没有删除, 1:回收站, 2:永久删除
     */
    private Integer deleteStatus;
 
    /**
     * 0:默认,1:在处理,2:处理完成
     */
    private Integer refundSts;
 
    /**
     * 优惠总额
     */
    private BigDecimal reduceAmount;
 
    /**
     * 订单类型
     */
    private Integer orderType;
 
    /**
     * 订单关闭原因 1-超时未支付 2-退款关闭 4-买家取消 15-已通过货到付款交易
     */
    private Integer closeType;
 
 
}