package com.hzs.bonus.bonus.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.Excel;
import lombok.Data;

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

/**
 * 奖金明细表
 */
@Data
public class CuMemberBonusVO implements Serializable {

    /**
     * 主键
     */
    private Long pkId;

    /**
     * 会员主键
     */
    private Long pkMember;

    /**
     * 会员编号
     */
    @Excel(name = "会员编号")
    private String memberCode;

    /**
     * 会员名称
     */
    @Excel(name = "会员姓名")
    private String memberName;

    /**
     * 体系名称
     */
    @Excel(name = "隶属体系")
    private String vertexName;

    /**
     * 团队名称
     */
    @Excel(name = "隶属团队")
    private String teamName;

    /**
     * 期间
     */
    @Excel(name = "结算期数")
    private Integer period;

    /**
     * 结算日期
     */
    @Excel(name = "结算时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date settleDate;

    /**
     * 结算等级
     */
    private Integer pkSettleGrade;

    /**
     * 真实奖衔
     */
    private Integer pkAwards;

    /**
     * 汇率
     */
    private Integer pkRate;

    /**
     * 收益状态 (0=正常，1=停止收益)
     */
    private Integer incomeStatus;

    /**
     * 发放状态 (1=已结算 2=已公布 3=已发放 4=可提现)
     */
    private Integer grantStatus;

    /**
     * 需要转换人民币的
     */
    public static final String[] INCOME_ARRAY = new String[]{
            "backPoints", "retailRangeIncome", "retailSameLevelIncome", "retailAreaIncome",
            "retailBenefitRangeIncome", "retailMonthRepurchaseIncome", "coachIncome", "retailBenefitAvgIncome",
            "retailBenefitIncome", "retailRealSubtotal", "realIncomeTotal", "repurRangeIncome"};


    private BigDecimal retailRangeIncome;
    /**
     * 直推收益
     */
    @Excel(name = "直推收益", scale = 2)
    private BigDecimal retailRangeIncomeOri;

    private BigDecimal retailSameLevelIncome;
    /**
     * 平级收益
     */
    @Excel(name = "平级收益", scale = 2)
    private BigDecimal retailSameLevelIncomeOri;

    private BigDecimal retailAreaIncome;
    /**
     * 区域分红
     */
    @Excel(name = "区域分红", scale = 2)
    private BigDecimal retailAreaIncomeOri;

    /**
     * 新零售福利级差收益
     */
    private BigDecimal retailBenefitRangeIncome;
    @Excel(name = "月度福利级差收益", scale = 2)
    private BigDecimal retailBenefitRangeIncomeOri;

    /**
     * 新零售复购级差收益
     */
    private BigDecimal retailMonthRepurchaseIncome;
    @Excel(name = "月度复购级差收益", scale = 2)
    private BigDecimal retailMonthRepurchaseIncomeOri;

    /**
     * 培育津贴
     */
    private BigDecimal coachIncome;
    @Excel(name = "培育津贴", scale = 2)
    private BigDecimal coachIncomeOri;

    /**
     * 新零售福利平均收益
     */
    private BigDecimal retailBenefitAvgIncome;
    @Excel(name = " 福利平均收益", scale = 2)
    private BigDecimal retailBenefitAvgIncomeOri;

    /**
     * 新零售福利加权收益
     */
    private BigDecimal retailBenefitIncome;
    @Excel(name = " 福利加权收益", scale = 2)
    private BigDecimal retailBenefitIncomeOri;

    /**
     * 复购级差收益
     */
    private BigDecimal repurRangeIncome;
    @Excel(name = "复购级差收益", scale = 2)
    private BigDecimal repurRangeIncomeOri;

    /**
     * 商城重消
     */
    @Excel(name = "商城重消", scale = 2)
    private BigDecimal backPointsOri;

    /**
     * 商城重消
     */
    private BigDecimal backPoints;

    /**
     * 新零售收益小计
     */
    private BigDecimal retailRealSubtotal;

//    @Excel(name = "收益小计", scale = 2)
    private BigDecimal retailRealSubtotalOri;

    /**
     * 实发收益总计
     */
    @Excel(name = "实发收益总计", scale = 2)
    private BigDecimal realIncomeTotalOri;

    /**
     * 实发收益总计
     */
    private BigDecimal realIncomeTotal;
}
