package com.hzs.common.domain.member.bonus;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 会员奖金-拓展收益延缓明细表
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_DELAY_DETA_SEQ")
@TableName("CU_MEMBER_BONUS_DELAY_DETAIL")
public class CuMemberBonusDelayDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 会员ID
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 期间
     */
    @TableField("PERIOD")
    private Integer period;

    /**
     * 首购计算类型 1=比例 2=值
     */
    @TableField("FIR_CAL_TYPE")
    private Integer firCalType;

    /**
     * 首购计算业绩
     */
    @TableField("FIR_CAL_ACHIEVE")
    private BigDecimal firCalAchieve;

    /**
     * 首购计算比例
     */
    @TableField("FIR_CAL_VALUE")
    private BigDecimal firCalValue;

    /**
     * 首购税前收益
     */
    @TableField("FIR_PRETAX_INCOME")
    private BigDecimal firPretaxIncome;

    /**
     * 复购计算类型 1=比例 2=值
     */
    @TableField("REP_CAL_TYPE")
    private Integer repCalType;

    /**
     * 复购计算业绩
     */
    @TableField("REP_CAL_ACHIEVE")
    private BigDecimal repCalAchieve;

    /**
     * 复购计算比例
     */
    @TableField("REP_CAL_VALUE")
    private BigDecimal repCalValue;

    /**
     * 复购税前收益
     */
    @TableField("REP_PRETAX_INCOME")
    private BigDecimal repPretaxIncome;

    /**
     * 收益发放前
     */
    @TableField("BEFORE_PRETAX_INCOME")
    private BigDecimal beforePretaxIncome;

    /**
     * 收益发放后
     */
    @TableField("AFTER_PRETAX_INCOME")
    private BigDecimal afterPretaxIncome;

    /**
     * 税前收益
     */
    @TableField("PRETAX_INCOME")
    private BigDecimal pretaxIncome;

    /**
     * 扣除个税
     */
    @TableField("INCOME_TAX")
    private BigDecimal incomeTax;

    /**
     * 实际收益
     */
    @TableField("REAL_INCOME")
    private BigDecimal realIncome;

    /**
     * 收益类型（1=增加，2=减少）
     */
    @TableField("TYPE")
    private Integer type;

    /**
     * 会员奖金主表ID
     */
    @TableField("PK_BONUS")
    private Long pkBonus;

    /**
     * 封顶值
     */
    @TableField("EXPAND_CAPPING")
    private BigDecimal expandCapping;

}
