mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
package com.panzhihua.service_community.model.dos;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
import com.baomidou.mybatisplus.annotation.*;
 
import lombok.Data;
 
/**
 * @auther lyq
 * @create 2021-04-14 15:03:01
 * @describe 订单表实体类
 */
 
@Data
@TableName("com_shop_order")
public class ComShopOrderDO implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 订单id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
 
    /**
     * 店铺id
     */
    private Long storeId;
 
    /**
     * 用户id
     */
    private Long userId;
 
    /**
     * 订单号
     */
    private String orderNo;
 
    /**
     * 支付单号
     */
    private String payNo;
 
    /**
     * 微信交易单号
     */
    private String wxTardeNo;
 
    /**
     * 订单状态(1.待付款 2.代发货 3.待收货 4.待评价 5.已完成 6.已取消)
     */
    private Integer status;
 
    /**
     * 支付状态(1.未支付 2.已支付)
     */
    private Integer payStatus;
 
    /**
     * 订单收货人id
     */
    private Long receiverId;
 
    /**
     * 是否已删除(1.是 2.否)
     */
    private Integer deleteStatus;
 
    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;
 
    /**
     * 优惠总金额
     */
    private BigDecimal discountAmount;
 
    /**
     * 支付总金额
     */
    private BigDecimal payAmount;
 
    /**
     * 支付方式(1.微信支付)
     */
    private Integer payType;
 
    /**
     * 支付时间
     */
    private Date payTime;
 
    /**
     * 配送方式(1.商家配送 2.快递物流)
     */
    private Integer deliveryType;
 
    /**
     * 订单发货状态(1.未发货 2.已发货)
     */
    private Integer deliveryStatus;
 
    /**
     * 物流公司
     */
    private String logisticsCompany;
 
    /**
     * 物流单号
     */
    private String logisticsNo;
 
    /**
     * 订单备注
     */
    private String remark;
 
    /**
     * 发货时间
     */
    private Date deliveryTime;
 
    /**
     * 下单时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;
 
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateAt;
 
    /**
     * 收货时间
     */
    private Date receivingTime;
 
    @Override
    public String toString() {
        return "ComShopOrderDO{" + "id=" + id + ", storeId=" + storeId + ", userId=" + userId + ", orderNo=" + orderNo
            + ", payNo=" + payNo + ", wxTardeNo=" + wxTardeNo + ", status=" + status + ", payStatus=" + payStatus
            + ", receiverId=" + receiverId + ", deleteStatus=" + deleteStatus + ", totalAmount=" + totalAmount
            + ", discountAmount=" + discountAmount + ", payAmount=" + payAmount + ", payType=" + payType + ", payTime="
            + payTime + ", deliveryType=" + deliveryType + ", deliveryStatus=" + deliveryStatus + ", logisticsCompany="
            + logisticsCompany + ", logisticsNo=" + logisticsNo + ", createAt=" + createAt + ", updateAt=" + updateAt
            + "}";
    }
 
    /**
     * 订单状态(1.待付款 2.代发货 3.待收货 4.待评价 5.已完成 6.已取消)
     */
    public interface status {
        int dfk = 1;
        int dfh = 2;
        int dsh = 3;
        int dpj = 4;
        int ywc = 5;
        int yqx = 6;
    }
 
    /**
     * 支付状态(1.未支付 2.已支付)
     */
    public interface payStatus {
        int no = 1;
        int yes = 2;
    }
 
    /**
     * 删除状态(1.未删除 2.已删除)
     */
    public interface deleteStatus {
        int no = 1;
        int yes = 2;
    }
 
    /**
     * 支付方式(1.微信支付)
     */
    public interface payType {
        int wx = 1;
    }
 
    /**
     * 配送方式(1.商家配送 2.快递物流)
     */
    public interface deliveryType {
        int store = 1;
        int express = 2;
    }
 
    /**
     * 订单发货状态(1.未发货 2.已发货)
     */
    public interface deliveryStatus {
        int no = 1;
        int yes = 2;
    }
}