package cn.pluss.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Djh
 * @since 2020-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_official_goods_exchange")
public class OfficialGoodsExchange implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("userId")
    private Long userId;


    /**
     * 兑换商品id
     */
    @TableField("goodId")
    private Integer goodId;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 商户详细地址
     */
    @TableField(value = "address",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String address;

    /**
     * 商户联系手机号
     */
    private String phone;

    /**
     * 商户真实名字
     */
    @TableField(value = "userName",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String userName;

    private BigDecimal price;

    @TableField(value = "name",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String name;
    /**
     * @description:支付状态 0：未支付 1：已支付
     * @date: 2021/11/23 15:09
     */
    private Integer status;

    /**
     * @description:订单号
     * @date: 2021/11/23 15:10
     */
    private String orderNumber;

    /**
     * @description:快递单号
     * @date: 2021/11/23 15:13
     */
    private String expressNo;

    /**
     * @description:物流状态0：待发货 1：已发货
     * @date: 2021/11/23 15:14
     */
    private Integer deliveryStatus;

    /**
     * 发货时间
     * @date: 2021/11/23 15:14
     */
    private Date deliveryTime;

}
