package com.ghy.payment.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author clunt
 * 财务细单(可能是师傅分佣后的细单关联，也可能是分佣账单，平台提成账单等类型)
 */
@Data
public class FinancialDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    @Excel(name = "编码")
    private String code;

    @Excel(name = "子订单序号", cellType = Excel.ColumnType.NUMERIC)
    private Long orderMasterId;

    @Excel(name = "子订单编码", cellType = Excel.ColumnType.NUMERIC)
    private String orderMasterCode;

    @Excel(name = "子单总金额", cellType = Excel.ColumnType.STRING)
    private BigDecimal totalMoney;

    @Excel(name = "优惠金额", cellType = Excel.ColumnType.STRING)
    private BigDecimal discountMoney;

    @Excel(name = "实付金额", cellType = Excel.ColumnType.STRING)
    private BigDecimal payMoney;

    @Excel(name = "财务子单类型,师傅转派/多级分销/平台抽成", cellType = Excel.ColumnType.NUMERIC)
    private Integer financialDetailType;

    @Excel(name = "支付方式,微信/支付宝/线下", cellType = Excel.ColumnType.NUMERIC)
    private Integer payType;

    @Excel(name = "支付状态, 未付款/已付款", cellType = Excel.ColumnType.NUMERIC)
    private Integer payStatus;

    @Excel(name = "付款时间", cellType = Excel.ColumnType.STRING)
    private String payTime;

}
