package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.*;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;

/**
 * 奖衔配置类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_AWARDS")
@KeySequence("BD_AWARDS_SEQ")
public class BdAwards extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 奖衔等级
     */
    @TableField("AWARDS_NAME")
    private String awardsName;

    /**
     * 翻译key
     */
    @TableField("PK_TRANSACTION")
    private Integer pkTransaction;

    /**
     * 奖衔值
     */
    @TableField("AWARDS_VALUE")
    private Integer awardsValue;

    /**
     * 小区考核
     */
    @TableField("COMMUNITY_CHECK")
    private BigDecimal communityCheck;

    /**
     * 代数
     */
    @TableField("ALGEBRA")
    private Integer algebra;

    /**
     * 复购考核
     */
    @TableField("PURCHASE_CHECK")
    private BigDecimal purchaseCheck;

    /**
     * 分红考核
     */
    @TableField("SHARE_CHECK")
    private BigDecimal shareCheck;

    /**
     * 环球积分
     */
    @TableField("GLOBAL_INTEGRAL")
    private BigDecimal globalIntegral;

    /**
     * 车奖积分
     */
    @TableField("CAR_AWARD_POINTS")
    private BigDecimal carAwardPoints;

    /**
     * 考核奖衔
     */
    @TableField("PK_CHECK_AWARDS_LEFT")
    private Integer pkCheckAwardsLeft;

    /**
     * 右区奖衔
     */
    @TableField("PK_CHECK_AWARDS_RIGHT")
    private Integer pkCheckAwardsRight;

    /**
     * 考核类型: 1=血缘考核 2=安置考核
     */
    @TableField("RELATION_TYPE")
    private String relationType;

    /**
     * 辅导代数
     */
    @TableField("COACH_ALGEBRA")
    private Integer coachAlgebra;

    /**
     * 辅导比例
     */
    @TableField("COACH_RATIO")
    private BigDecimal coachRatio;

    /**
     * 分红比例
     */
    @TableField("ABONUS_RATIO")
    private BigDecimal abonusRatio;

    /**
     * 图片
     */
    @TableField("IMAGE")
    private String image;

    /**
     * 色值
     */
    @TableField("COLOR")
    private String color;

    /**
     * 启用状态 0启用1禁用
     */
    @TableField("ENABLE_STATE")
    private Integer enableState;

    /**
     * 文字内容
     */
    @TableField("TEXT_CONTENT")
    private String textContent;

    @TableField("COMMUNITY_CHECK_END")
    private BigDecimal communityCheckEnd;

    /**
     * 系统类型（2=新零售）
     */
    @TableField("SYSTEM_TYPE")
    private Integer systemType;

    /**
     * 考核部门数量
     */
    @TableField("PLACE_DEPT_NUM")
    private Integer placeDeptNum;

    /**
     * 累计业绩
     */
    @TableField("TOTAL_CHECK")
    private BigDecimal totalCheck;

    /**
     * 领导奖级差比例
     */
    @TableField("RANGE_RATIO")
    private BigDecimal rangeRatio;

    /**
     * 领导奖平级比例
     */
    @TableField("SAME_LEVEL_RATIO")
    private BigDecimal sameLevelRatio;


}
