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-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_EXPAND_SEQ")
@TableName("CU_MEMBER_BONUS_EXPAND")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberBonusExpand extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

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

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

    /**
     * 收益状态 (0=正常，1=停收，2=烧伤)
     */
    @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("CURRENT_TOUCH")
    private Integer currentTouch;

    /**
     * 拓展碰次
     */
    @TableField("EXPAND_TOUCH")
    private Integer expandTouch;

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

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

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

    /**
     * 拓展实际减半 (拓展收益按4-结算，根据配置的封顶值限制最大收益，税前收益（￥）/2)
     */
    @TableField("EXPAND_NORMAL_REAL")
    private BigDecimal expandNormalReal;

    /**
     * 备注
     */
    @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;


}
