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("SEE_POINT_INCOME")
    private BigDecimal seePointIncome;

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

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

    /**
     * 辅导收益
     */
    @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;

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

    /**
     * 复销同级收益
     */
    @TableField("SAME_LEVEL_INCOME")
    private BigDecimal sameLevelIncome;

    /**
     * 加权积分收益
     */
    @TableField("POINT_SHARE_INCOME")
    private BigDecimal pointShareIncome;


    /**
     * 烧伤积分收益
     */
    @TableField("FIRE_SHARE_INCOME")
    private BigDecimal fireShareIncome;

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

    /**
     * 环球积分
     */
    @TableField("GLOBAL_POINTS")
    private BigDecimal globalPoints;

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

    @TableField("STORE_RANGE_INCOME")
    private BigDecimal storeRangeIncome;

    /**
     * 实发收益总计
     */
    @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 Integer pkVertex;

}
