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;

/**
 * <p>
 * 会员奖金-奖金收益明细表(加权积分奖励)
 * </p>
 *
 * @author hzs
 * @since 2023-10-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_POINT_SEQ")
@TableName("CU_MEMBER_BONUS_POINT")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberBonusPoint extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 主表主键
     */
    @TableField("PK_BONUS")
    private Long pkBonus;

    /**
     * 奖金项
     */
    @TableField("PK_BONUS_ITEMS")
    private Integer pkBonusItems;

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

    /**
     * 计算类型 1=比例 2=值
     */
    @TableField("CAL_TYPE")
    private Integer calType;

    /**
     * 计算业绩
     */
    @TableField("CAL_ACHIEVE")
    private BigDecimal calAchieve;

    /**
     * 计算比例
     */
    @TableField("CAL_VALUE")
    private BigDecimal calValue;

    /**
     * 购买积分
     */
    @TableField("BUY_POINT")
    private Integer buyPoint;

    /**
     * 直推积分
     */
    @TableField("PUSH_POINT")
    private Integer pushPoint;

    /**
     * 血缘积分
     */
    @TableField("BLOOD_POINT")
    private Integer bloodPoint;

    /**
     * 安置积分
     */
    @TableField("PLACE_POINT")
    private Integer placePoint;

    /**
     * 汇总积分
     */
    @TableField("SUM_POINT")
    private Integer sumPoint;

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

    /**
     * 使用积分
     */
    @TableField("USE_POINT")
    private Integer usePoint;

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

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

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;


}
