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-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_RANGE_SEQ")
@TableName("CU_MEMBER_BONUS_RANGE")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberBonusRange 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_ORDER_ITEMS")
    private Long pkOrderItems;

    /**
     * 奖金项
     */
    @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("PK_RANGE")
    private Integer pkRange;

    /**
     * 前一极差等级
     */
    @TableField("PK_BEFORE_RANGE")
    private Integer pkBeforeRange;

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

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

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

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

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





}
