package com.peanut.modules.book.entity; import com.baomidou.mybatisplus.annotation.*; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import java.util.List; import lombok.Data; /** * 订单表 * * @author yl * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ @Data @TableName("buy_order") public class BuyOrderEntity implements Serializable { private static final long serialVersionUID = 1L; /** * */ @TableId private Integer orderId; /** * 订单编号 yyyymmddnnnnnnnn’ */ private String orderSn; /** * 下单人ID */ private Integer userId; /** * 下单人姓名 */ @TableField(exist = false) private String userName; /** * 收货人姓名 */ private String shippingUser; /** * 收货人手机号 */ private String userPhone; /** * 省 */ private String province; /** * 市 */ private String city; /** * 区 */ private String district; /** * 地址 */ private String address; /** * 支付方式 1支付宝,2微信,3ios内购 ,4虚拟币 */ private String paymentMethod; /** * 订单金额 */ private BigDecimal orderMoney; /** * 优惠金额 */ private BigDecimal districtMoney; /** * 实收金额 */ private BigDecimal realMoney; /** * 运费 */ private BigDecimal shippingMoney; /** * 物流公司名称 */ private String shippingCompName; /** * 物流单号 */ private String shippingSn; /** * 下单时间 */ @TableField(fill = FieldFill.INSERT)//创建注解 private Date createTime; /** * 发货时间 */ private Date shippingTime; /** * 订单状态 * 0: 待付款 * 1: 待发货 * 2: 已发货 * 3:已完成 * 4: 交易失败 */ private String orderStatus; /** * 交易成功时间 */ private Date successTime; /** * 优惠券Id */ private Integer couponId; /** * 优惠券名称 */ private String couponName; @TableLogic private Integer delFlag; @TableField(exist = false) private List products; @TableField(exist = false) private String buyType; /** * vip order point */ private String orderType; /** * 快递单号 */ private String expNo; /** * 是否存在发货的商品 0:不存在,1:已存在 */ private String isSend; /** * 地址id */ private Integer addressId; /** * 订单备注 */ private String remark; /** * 快递鸟订单编号 */ private String orderCode; /** * 支付时间 */ private Date paymentDate; @TableField("product_id") private String productId; @TableField("record_id") private Integer recordId; }