package com.cftech.waybill.model;

import com.cftech.core.poi.ExportConfig;
import lombok.Data;

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

/**
 * 顺丰物流运单
 *
 * @author Strive
 * @date: 2020-10-21 15:04
 */
@Data
public class Waybill implements Serializable {

    /* 主键id */
    private Long id;
    /* 咨询单Id */
    private Long consultId;
    /* 订单Id */

    private Long orderId;
    /* 物流单编码 */
    @ExportConfig(value = "物流单编码", width = 120, showLevel = 1)
    private String number;

    /* 顺丰运单号 */
    @ExportConfig(value = "顺丰运单号", width = 120, showLevel = 1)
    private String waybillNo;

    /* 会员Id */
    private String memberId;
    /* 粉丝Id */
    @ExportConfig(value = "粉丝OpneId", width = 120, showLevel = 1)
    private String openId;
    /* 仓管员Id */

    private String storageManage;



    /* 语言 */
    private String language;
    /* 顺丰月结卡号 */
    private String monthlyCard;

    /**
     * 会员名称
     */
    //@ExportConfig(value = "会员名称", width = 100, showLevel = 1)
    //private String memberName;

     /* 联系人 */
    @ExportConfig(value = "联系人", width = 120, showLevel = 1)
    private String contact;

    /* 联系电话 */
    @ExportConfig(value = "联系人手机号", width = 120, showLevel = 1)
    private String mobile;

    /* 快件产品类型 */
    private String expressTypeId;
    /* 温度范围控制 1:冷藏 3：冷冻 */
    private String temperatureRange;



    /* 省份 */
    private String province;
    /* 城市 */
    private String city;
    /* 县/区级行政区名称 */
    private String county;
    /* 地址Id */
    private String addressId;
    /* 详细地址 */
    private String address;
    /* 发件时间 */
    private Date sendExpressDate;
    /* 收件时间 */
    private Date acceptExpressDate;
    /* 运单描述不可派发原因 */
    private String waybillRemark;
    /* 所属的账号 */
    private Long accountsId;
    /* 删除标识 */
    private boolean delFlag;
    /* 状态 */
    private String status;
    /* 创建时间 */
    private Date createTime;
    /* 更新时间 */
    private Date updateTime;
    /* 备注 */
    private String description;
    /* 创建人 */
    private Long createBy;
    /* 更新人 */
    private Long updateBy;

    /**
     *路由信息
     */
    private String routeDes;

    /**
     * 筛单结果
     */
    @ExportConfig(value = "筛单结果", width = 120, showLevel = 1)
    private String filterResult;// 筛单结果 1：人工确认; 2：可收派; 3：不可以收派

    private String originCode;//原寄地代码

    private String destCode;//收件地代码

    private String shippercode;//寄件人邮政编码

    /**
     * 非数据库字段
     */
    @ExportConfig(value = "订单编码", width = 120, showLevel = 1)
    private String orderCode;//订单编码
    private String drugsNum;//商品数量
    private String drugsName;//商品名称
    private String drugsCode;//商品编码
    private String price;//价格

    @ExportConfig(value = "咨询单编码", width = 120, showLevel = 1)
    private String consultSheetCode;//咨询单编码
    @ExportConfig(value = "订单员名称", width = 120, showLevel = 1)
    private String storageManageName;//仓管员名称
    private String sendExpressDateStr;
    private String acceptExpressDateStr;
    private String createTimeStr;
    private String updateTimeStr;
    @ExportConfig(value = "粉丝昵称", width = 120, showLevel = 1)
    private String nickName;//粉丝昵称

    public Waybill() {
        this.delFlag = false;
        this.status = "0";
        this.expressTypeId = "12";
        this.temperatureRange = "0";
    }

}