package com.fs.his.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fs.common.annotation.Excel;
import com.fs.common.core.domain.BaseEntity;
import lombok.Data;

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

@Data
public class FsStoreOrderParam extends BaseEntity implements Serializable {
    private Long orderId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long storeId;
    @Excel(name = "订单号")
    private String orderCode;
    /** 订单号 */
    @Excel(name = "订单号")
    private String subOrderCode;

    @Excel(name = "医生ID")
    private Long doctorId;


    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String userName;

    private String patientName;
    private String doctorName;
    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String userPhone;
    private String userPhoneMk;
    /** 详细地址 */
    @Excel(name = "详细地址")
    private String userAddress;
    private String payRemain;
    /** 购物车id */
    @Excel(name = "购物车id")
    private String cartId;

    /** 订单商品总数 */
    @Excel(name = "订单商品总数")
    private Long totalNum;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal totalPrice;

    /** 实际支付金额 */
    @Excel(name = "实际支付金额")
    private BigDecimal payPrice;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payMoney;

    /** 支付状态 待支付 1已支付 */
    @Excel(name = "支付状态 待支付 1已支付")
    private String isPay;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 支付方式 1微信 */
    @Excel(name = "支付方式 1微信")
    private String payType;

    /** 订单状态（-1 : 申请退款 -2 : 退货成功 1：待支付 2：待发货；3：待收货；4：待评价；5：已完成） */
    @Excel(name = "订单状态", readConverterExp = "-=1,:=,申=请退款,-=2,:=,退=货成功,1=：待支付,2=：待发货；3：待收货；4：待评价；5：已完成")
    private Integer status;

    /** 0 未退款 1 申请中 2 已退款 */
    @Excel(name = "0 未退款 1 申请中 2 已退款")
    private String refundStatus;

    /** 退款图片 */
    @Excel(name = "退款图片")
    private String refundImg;

    /** 退款用户说明 */
    @Excel(name = "退款用户说明")
    private String refundExplain;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundTime;

    /** 不退款的理由 */
    @Excel(name = "不退款的理由")
    private String refundReason;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal refundMoney;

    /** 快递公司编号 */
    @Excel(name = "快递公司编号")
    private String deliveryCode;

    /** 快递名称 */
    @Excel(name = "快递名称")
    private String deliveryName;

    /** 快递单号 */
    @Excel(name = "快递单号")
    private String deliverySn;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDel;

    /** 成本价 */
    @Excel(name = "成本价")
    private BigDecimal costPrice;

    /** 核销码 */
    @Excel(name = "核销码")
    private String verifyCode;

    /** 配送方式 1=快递 ，2=门店自提 */
    @Excel(name = "配送方式 1=快递 ，2=门店自提")
    private Integer shippingType;

    /** 支付渠道(1微信小程序) */
    @Excel(name = "支付渠道(1微信小程序)")
    private String isChannel;

    /** 是否开处方 */
    @Excel(name = "是否开处方")
    private Integer isPrescribe;

    /** 处方ID */
    @Excel(name = "处方ID")
    private Long prescribeId;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date finishTime;
    private Date sTime;
    private Date eTime;
    private Date paysTime;
    private Date payeTime;
    /** 发货时间 */
    @Excel(name = "发货时间")
    private String deliveryTime;

    /** 推广佣金 */
    @Excel(name = "推广佣金")
    private BigDecimal tuiMoney;

    /** 推广佣金状态 1已发放 0待发放 */
    @Excel(name = "推广佣金状态 1已发放 0待发放")
    private Integer tuiMoneyStatus;

    /** 上级推荐人ID */
    @Excel(name = "上级推荐人ID")
    private Long tuiUserId;

    /** 订单创建类型 */
    @Excel(name = "订单创建类型")
    private Long orderCreateType;

    @Excel(name = "订单类型")
    private Integer orderType;
    private Long companyId;
    private Long companyUserId;

    private Long userCouponId;
    private String companyName;

    private String companyUserName;
     //部门id
    private Long deptId;
    //物流状态
    private Integer deliveryStatus;
    //物流结算状态
    private Integer deliveryPayStatus;
    //公司员工昵称
    private String companyUserNickName;

    private Date deliverySendsTime;
    private Date deliverySendeTime;


    private Date deliveryImportsTime;
    private Date deliveryImporteTime;

    private Date tuisTime;
    private Date tuieTime;

    private String packageName;

    private String scheduleId;//档期id

    private String orderBuyType;//购买类型，同药品商城的订单订单类型


    private String orderChannel;

    private String qwSubject;
//    @ApiModelProperty(value = "页码,默认为1")
//    private Integer pageNum =1;
//    @ApiModelProperty(value = "页大小,默认为10")
//    private Integer pageSize = 10;


    private String packageSecondName;

    private String prescribeCode;

    private Integer isFirst;

    private Long customerId;

    private String source;

    private Long taskId;//任务ID
}
