xiaoyong931011
2023-08-16 f24069e2f98fcb1a2bcdfc295288eb8558b302e9
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
package cc.mrbird.febs.dapp.entity;
 
import cc.mrbird.febs.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
@Data
@TableName("mall_order_info")
public class MallOrderInfo extends BaseEntity {
    //订单号
    private String orderNo;
 
    private Long memberId;
    //下单时间
    private Date orderTime;
    //支付时间
    private Date payTime;
    //订单金额
    private BigDecimal amount;
    //支付方式
    private String payMethod;
    //支付订单号
    private String payOrderNo;
    //支付结果 1-成功2-失败
    private Integer payResult;
 
    /**
     * 状态;1-待支付2-已支付3-已取消
     */
    private Integer status;
 
    public static final Integer STATUS_WAIT = 1;
    public static final Integer STATUS_PAY = 2;
    public static final Integer STATUS_CANCEL = 3;
 
    /**
     * 取消类型;1-超时未支付2-主动取消
     */
    private Integer cancelType;
    public static final Integer CANCEL_OVERTIME_NO_PAY = 1;
    public static final Integer CANCEL_BY_SELF = 2;
 
    /**
     * 订单类型 1-普通订单 2-积分订单
     */
    private Integer orderType;
 
    private Long addressId;
 
    private Integer deliverType;
    //发货状态:1:待发货2:已发货3:已签收
    private Integer deliverState;
    public static final Integer DELIVER_STATUS_WAIT = 1;
    public static final Integer DELIVER_STATUS_DONE = 2;
    public static final Integer DELIVER_STATUS_OVER = 3;
    private String deliverName;
    private String deliverCode;
 
    @TableField(exist = false)
    private String address;
 
    @TableField(exist = false)
    private List<MallOrderItem> items;
    //商品名称
    @TableField(exist = false)
    private String goodsName;
 
}