package com.hfkj.model.order;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

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

/**
 * 卡券订单模型
 * @className: BsOrderCouponModel
 * @author: HuRui
 * @date: 2024/5/13
 **/
@Data
public class OrderCouponModel {

    @ColumnWidth(20)
    @ExcelProperty("交易单号")
    public String orderNo;

    @ColumnWidth(15)
    @ExcelProperty("商品单号")
    public String childOrderNo;

    @ColumnWidth(20)
    @ExcelProperty("用户手机号")
    public String userPhone;

    @ColumnWidth(20)
    @ExcelProperty("商品key")
    public String goodsKey;

    @ColumnWidth(30)
    @ExcelProperty("商品名称")
    public String goodsName;

    @ColumnWidth(30)
    @ExcelProperty("商品规格")
    public String goodsSpecsName;

    @ColumnWidth(20)
    @ExcelProperty("商品原价（单价）")
    public String goodsOriginalPrice;

    @ColumnWidth(20)
    @ExcelProperty("商品销售价（单价）")
    public String goodsSalePrice;

    @ColumnWidth(20)
    @ExcelProperty("购买数量")
    public String goodsCount;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "订单金额"})
    public BigDecimal totalPrice;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "总优惠"})
    public BigDecimal totalDeductionPrice;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "优惠券优惠"})
    public BigDecimal couponDiscountPrice;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "积分抵扣"})
    public BigDecimal integralDiscountPrice;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "实付金额"})
    public BigDecimal payRealPrice;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "支付渠道"})
    public String payChannel;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "支付方式"})
    public String payType;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "支付单号"})
    public String paySerialNo;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "交易状态"})
    public String tradeStatus;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "创建时间"})
    public Date createTime;

    @ColumnWidth(20)
    @ExcelProperty({"交易信息", "支付时间"})
    public Date payTime;

    @ColumnWidth(35)
    @ExcelProperty("渠道订单号")
    public String channelOrderNo;

    @ColumnWidth(50)
    @ExcelProperty("卡密")
    public String couNo;

    @ColumnWidth(20)
    @ExcelProperty("卡密状态")
    public String couStatus;

    @ColumnWidth(20)
    @ExcelProperty("过期时间")
    public Date expireTime;

    @ColumnWidth(20)
    @ExcelProperty("完成时间")
    public Date finishTime;

    @ColumnWidth(20)
    @ExcelProperty("是否异常")
    public String exceptionStatus;

    @ColumnWidth(20)
    @ExcelProperty("平台")
    public String platformCode;

}
