package com.yami.shop.bean.po;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SMOrderPo implements Serializable {

    private static final long serialVersionUID = 6222259729062826852L;

    private Long shopId;

    /**
     * 订购流水号
     */
    private String orderNumber;

    /**
     * 总值
     */
    private Double total;

    /**
     * 实际总值
     */
    private Double actualTotal;

    private Integer payType;

    /**
     * 用户备注
     */
    private String remarks;

    /**
     * 配送类型（1:快递 2:自提 3：及时配送）
     */
    private Integer dvyType;

    /**
     * 订单运费
     */
    private Double freightAmount;

    /**
     * 自提核验码（明文码），长度不超过50
     */
    private String selfPickCode;


    /**
     * 付款时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    private Long offsetPoints;

    private String consigneeName;

    private String consigneeMobile;

    private String consigneeAddress;

    private Double latitude;

    private Double longitude;

    private List<SMOrderItemPo> orderItems;

}
