package com.xingxi.order.domain;

import com.xingxi.common.annotation.Excel;
import com.xingxi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

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

/**
 * 清算订单详细信息对象 t_clear_order_detail
 * 
 * @author xingxi
 * @date 2024-02-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString
public class ClearOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 订单明细ID */
    @Excel(name = "订单明细ID")
    private Long orderDetailId;

    /** 购方ID */
    @Excel(name = "购方ID")
    private Long buyerId;

    /** 购方角色 */
    @Excel(name = "购方角色")
    private String buyerRole;

    /** 销方ID */
    @Excel(name = "销方ID")
    private Long sellerId;

    /** 销方角色 */
    @Excel(name = "销方角色")
    private String sellerRole;

    /** 交易区分 */
    @Excel(name = "交易区分")
    private String tradeType;

    /** 套组ID */
    @Excel(name = "套组ID")
    private String suiteId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long prodId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String prodName;

    /** 商品属性ID */
    @Excel(name = "商品属性组合ID")
    private Long pprId;

    /** 商品属性名 */
    @Excel(name = "商品属性组合名")
    private String pprName;

    /** 元商品ID */
    @Excel(name = "元商品ID")
    private Long orgProdId;

    /** 素材ID */
    @Excel(name = "素材ID")
    private Long mateId;

    /** 素材名称 */
    @Excel(name = "素材名称")
    private String mateName;

    /** 商品区分 */
    @Excel(name = "商品区分")
    private String prodType;

    /** 平台经销标志 0：供应商直销，1：平台经销 */
    @Excel(name = "平台经销标志")
    private String pfSellFlag;

    /** 购方购买单价 */
    @Excel(name = "购方购买单价")
    private BigDecimal buyPrice;

    /** 销方结算价 */
    @Excel(name = "销方结算价")
    private BigDecimal salePrice;

    @Excel(name = "设计面数量")
    private Integer surfaceQty;

    @Excel(name = "单位数量")
    private Integer unitQty;

    /** 订单数量 */
    @Excel(name = "订单数量")
    private Integer orderQty;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Integer returnQty;

    /** 服务费率 */
    @Excel(name = "服务费率")
    private BigDecimal serviceRate;

    /** 订单完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

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

    /** 结算状态 */
    @Excel(name = "结算状态")
    private String settleStatus;

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

    /** 开票状态 */
    @Excel(name = "开票状态")
    private String invoiceStatus;

    /** 结算批次号 */
    @Excel(name = "结算批次号")
    private String settleBatchNo;

    /** 开票批次号 */
    @Excel(name = "开票批次号")
    private String invoiceBatchNo;

    /** 发票请求流水号 */
    @Excel(name = "发票请求流水号")
    private String invoiceBillNo;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

}
