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.util.Date;

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

    /**
     * 编号
     */
    private Long id;

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

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

    /**
     * 购买方编号
     */
    @Excel(name = "购买方编号")
    private Long buyerId;

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

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

    /**
     * 销售方编号
     */
    @Excel(name = "销售方编号")
    private Long sellerId;

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

    /**
     * 收款方ID
     */
    @Excel(name = "收款方ID")
    private Long payeeId;

    /**
     * 收款方角色
     */
    @Excel(name = "收款方角色")
    private String payeeRole;

    /**
     * 订单完成时间
     */
    @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;

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

}
