package com.ruoyi.frequency.mallorder.model.result;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

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

/**
 * 订单主对象 mall_order
 *
 * @author liwenlong
 * @date 2024-01-25
 */
@Data
@Accessors(chain = true)
public class MallOrderResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("删除标志;1正常 删除 3 禁用")
    private Integer delFlag;

    @ApiModelProperty("用户类型 1设计师 2表现师")
    @Excel(name = "用户类型 1设计师 2表现师")
    private Integer userType;

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

    @ApiModelProperty("商品总价")
    @Excel(name = "商品总价")
    private BigDecimal goodsPrice;

    @ApiModelProperty("支付总价格")
    @Excel(name = "支付总价格")
    private BigDecimal payPrice;

    @ApiModelProperty("订单号(不作为支付订单号)")
    @Excel(name = "订单号(不作为支付订单号)")
    private String orderNo;

    @ApiModelProperty("支付订单号")
    @Excel(name = "支付订单号")
    private String payOrderNo;

    @ApiModelProperty("支付状态1:未支付;2:成功，3；失败")
    @Excel(name = "支付状态1:未支付;2:成功，3；失败")
    private Integer payStatus;

    @ApiModelProperty("订单状态;具体看代码")
    @Excel(name = "订单状态;具体看代码")
    private Integer orderStatus;

    @ApiModelProperty("支付时间")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    @ApiModelProperty("取消订单时间")
    @Excel(name = "取消订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelTime;

    @ApiModelProperty("发货时间")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    @ApiModelProperty("收货时间")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiveTime;

    @ApiModelProperty("完成时间")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    @ApiModelProperty("发货物流单号")
    @Excel(name = "发货物流单号")
    private String sendComCourierId;

    @ApiModelProperty("发货物流公司")
    @Excel(name = "发货物流公司")
    private String sendComLogistics;

    @ApiModelProperty("发货物流公司编码")
    @Excel(name = "发货物流公司编码")
    private String sendComLogisticsCode;

    @ApiModelProperty("支付方式，1:支付宝;2 微信 3 余额")
    @Excel(name = "支付方式，1:支付宝;2 微信 3 余额")
    private Integer payType;

    @ApiModelProperty("支付宝支付业务号")
    @Excel(name = "支付宝支付业务号")
    private String aliReturnPayId;

    @ApiModelProperty("到账时间")
    @Excel(name = "到账时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrivalTime;

    @ApiModelProperty("允许售后时间（类似于7日包退）,单位;天")
    @Excel(name = "允许售后时间", readConverterExp = "类=似于7日包退")
    private Long afterSalesDays;

    @ApiModelProperty("用户是否删除; 1 没有删除 2 删除")
    @Excel(name = "用户是否删除; 1 没有删除 2 删除")
    private Integer customerShow;

    @ApiModelProperty("订单商品id")
    @Excel(name = "订单商品id")
    private Long orderGoodsId;

    @ApiModelProperty("抵用金支付金额")
    @Excel(name = "抵用金支付金额")
    private BigDecimal givePrice;

    @ApiModelProperty("积分")
    @Excel(name = "积分")
    private BigDecimal integralPrice;


}
