package com.ghy.payment.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 改价记录对象 financial_change_record
 *
 * @author clunt
 * @date 2022-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FinancialChangeRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 改价子单
     */
    @Excel(name = "改价子单")
    private Long orderDetailId;

    /**
     * 子单所属主单ID
     */
    private Long orderMasterId;

    /**
     * 支付ID
     */
    private String paymentId;

    /**
     * Adapay撤销支付或退款ID
     */
    private String reverseId;

    /**
     * 改价金额
     */
    @Excel(name = "改价金额")
    private BigDecimal changeMoney;

    /**
     * 状态0.待审核 1.审核通过 2.审核拒绝
     */
    @Excel(name = "状态0.待审核 1.审核通过 2.审核拒绝")
    private Integer status;

    /**
     * {@link com.ghy.common.enums.PayStatus}
     */
    @Excel(name = "0 待支付 1.已支付")
    private Integer payStatus;

    /**
     * 1.本单报价 2.加单报价
     **/
    @Excel(name = "1.本单报价 2.加单报价")
    private Integer type;

    @Excel(name = "剩余分账金额")
    private BigDecimal leftMoney;

    @Excel(name = "一级分销")
    private BigDecimal oneMoney;

    @Excel(name = "二级分销")
    private BigDecimal twoMoney;

    @Excel(name = "三级分销")
    private BigDecimal threeMoney;

    @Excel(name = "平台扣点")
    private BigDecimal deptMoney;

    @Excel(name = "平台追加扣点")
    private BigDecimal deptAddMoney;

    @Excel(name = "团队师傅扣点")
    private BigDecimal leaderMoney;

    @Excel(name = "工作师傅剩余金额")
    private BigDecimal workerMoney;

    private String urls;

    private String fileNames;

    private BigDecimal attachmentMoney;

    private String reason;
}
