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;

/**
 * 会员奖金-会员奖金汇总表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_SEQ")
@TableName("CU_MEMBER_BONUS")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberBonus extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

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

    /**
     * 汇率
     */
    @TableField("PK_RATE")
    private Integer pkRate;

    /**
     * 直推收益
     */
    @TableField("DIRECT_INCOME")
    private BigDecimal directIncome;

    /**
     * 拓展收益
     */
    @TableField("EXPAND_INCOME")
    private BigDecimal expandIncome;

    /**
     * 拓展无封 (拓展收益按等级正常比例结算，并 拓展收益按等级正常比例结算 无封顶)
     */
    @TableField("EXPAND_NO_CAPPING")
    private BigDecimal expandNoCapping;

    /**
     * 拓展封顶 (拓展收益按等级正常比例结算，不按4-N结算，根据配置的封顶值限制最大收益)
     */
    @TableField("EXPAND_CAPPING")
    private BigDecimal expandCapping;

    /**
     * 培育津贴
     */
    @TableField("COACH_INCOME")
    private BigDecimal coachIncome;

    /**
     * 分红收益
     */
    @TableField("SHARE_INCOME")
    private BigDecimal shareIncome;

    /**
     * 报单收益
     */
    @TableField("SERVICE_INCOME")
    private BigDecimal serviceIncome;

    /**
     * 商城重消
     */
    @TableField("BACK_POINTS")
    private BigDecimal backPoints;

    /**
     * 平台服务费
     */
    @TableField("SERVICE_SPEND")
    private BigDecimal serviceSpend;

    /**
     * 首购实发小计
     */
    @TableField("PUR_REAL_SUBTOTAL")
    private BigDecimal purRealSubtotal;

    /**
     * 复购推荐收益 修改为互助收益 cu_member_bonus_push
     */
    @TableField("REPUR_PUSH_INCOME")
    private BigDecimal repurPushIncome;

    /**
     * 复购级差收益
     */
    @TableField("REPUR_RANGE_INCOME")
    private BigDecimal repurRangeIncome;

    /**
     * 复购拓展收益
     */
    @TableField("REPUR_EXPAND_INCOME")
    private BigDecimal repurExpandIncome;

    /**
     * 复购实发小计
     */
    @TableField("REPUR_REAL_SUBTOTAL")
    private BigDecimal repurRealSubtotal;

    /**
     * 云代直推收益 修改为幸运收益 cu_member_bonus_coach
     */
    @TableField("CLOUD_DIRECT_INCOME")
    private BigDecimal cloudDirectIncome;

    /**
     * 云代首购收益  修改为极差收益 cu_member_bonus_range
     */
    @TableField("CLOUD_PUR_INCOME")
    private BigDecimal cloudPurIncome;

    /**
     * 云代复购收益  修改为平级收益 cu_member_bonus_range
     */
    @TableField("CLOUD_REPUR_INCOME")
    private BigDecimal cloudRepurIncome;

    /**
     * 云代实发小计 修改为 极差小计
     */
    @TableField("CLOUD_REAL_SUBTOTAL")
    private BigDecimal cloudRealSubtotal;

    /**
     * 复购券
     */
    @TableField("REPUR_COUPON")
    private BigDecimal repurCoupon;

    /**
     * 复购券均分收益
     */
    @TableField("REPUR_COUPON_SHARE")
    private BigDecimal repurCouponShare;

    /**
     * 复购券小计
     */
    @TableField("REPUR_COUPON_SUBTOTAL")
    private BigDecimal repurCouponSubtotal;

    /**
     * 环球积分 修改为乐享直推奖金
     */
    @TableField("GLOBAL_POINTS")
    private BigDecimal globalPoints;

    /**
     * 车奖积分
     */
    @TableField("CAR_AWARD_POINTS")
    private BigDecimal carAwardPoints;

    /**
     * 店铺收益
     */
    @TableField("STORE_INCOME")
    private BigDecimal storeIncome;

    /**
     * 嗨粉推荐收益
     */
    @TableField("HI_FUN_INCOME")
    private BigDecimal hiFunIncome;

    /**
     * 海粉推荐收益
     */
    @TableField("HAI_FUN_INCOME")
    private BigDecimal haiFunIncome;

    /**
     * 创客空间直推收益
     */
    @TableField("MAKER_DIRECT_INCOME")
    private BigDecimal makerDirectIncome;

    /**
     * 创客共享收益
     */
    @TableField("MAKER_SHARE_INCOME")
    private BigDecimal makerShareIncome;

    /**
     * 创客空间收益小计
     */
    @TableField("MAKER_REAL_SUBTOTAL")
    private BigDecimal makerRealSubtotal;

    /**
     * 新零售直推收益
     */
    @TableField("RETAIL_RANGE_INCOME")
    private BigDecimal retailRangeIncome;

    /**
     * 新零售平级收益
     */
    @TableField("RETAIL_SAME_LEVEL_INCOME")
    private BigDecimal retailSameLevelIncome;

    /**
     * 新零售区域分红
     */
    @TableField("RETAIL_AREA_INCOME")
    private BigDecimal retailAreaIncome;

    /**
     * 新零售福利级差收益
     */
    @TableField("RETAIL_BENEFIT_RANGE_INCOME")
    private BigDecimal retailBenefitRangeIncome;

    /**
     * 新零售复购级差收益
     */
    @TableField("RETAIL_MONTH_REPURCHASE_INCOME")
    private BigDecimal retailMonthRepurchaseIncome;

    /**
     * 福利分红平均收益
     */
    @TableField("RETAIL_BENEFIT_AVG_INCOME")
    private BigDecimal retailBenefitAvgIncome;

    /**
     * 福利分红加权收益
     */
    @TableField("RETAIL_BENEFIT_INCOME")
    private BigDecimal retailBenefitIncome;

    /**
     * 新零售收益小计
     */
    @TableField("RETAIL_REAL_SUBTOTAL")
    private BigDecimal retailRealSubtotal;

    /**
     * 实发收益总计
     */
    @TableField("REAL_INCOME_TOTAL")
    private BigDecimal realIncomeTotal;

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

    /**
     * 发放状态 (1=已结算 2=已公布 3=已发放 4=可提现)
     */
    @TableField("GRANT_STATUS")
    private Integer grantStatus;
    /**
     * 隶属团队
     */
    @TableField(exist = false)
    private Integer pkTeamCode;
    /**
     * 隶属体系
     */
    @TableField(exist = false)
    private Long pkVertex;

}
