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 2022-11-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_PUSH_SEQ")
@TableName("CU_MEMBER_BONUS_PUSH")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberBonusPush extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 订单主键
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 奖金类型
     */
    @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("PRETAX_INCOME")
    private BigDecimal pretaxIncome;

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

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

    /**
     * 轮
     */
    @TableField("ROUND")
    private Integer round;

    /**
     * 次
     */
    @TableField("SECOND")
    private Integer second;

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

    /**
     * 收益占比
     */
    @TableField("INCOME_RATIO")
    private BigDecimal incomeRatio;

    /**
     * 收益拨比
     */
    @TableField("INCOME_DIAL_RATIO")
    private BigDecimal incomeDialRatio;

    /**
     * 订单拨比
     */
    @TableField("ORDER_DIAL_RATIO")
    private BigDecimal orderDialRatio;
}
