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

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.annotation.Excel;
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 java.math.BigDecimal;

/**
 * 极差配置
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_RANGE")
@KeySequence("BD_RANGE_SEQ")
public class BdRange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 极差名称
     */
    @Excel(name = "极差名称", sort = 1)
    @TableField("RANGE_NAME")
    private String rangeName;
    /**
     * 极差值
     */
    @TableField("RANGE_VALUE")
    @Transaction(transactionKey = EnumsPrefixConstants.AWARDS)
    private Integer rangeValue;
    @Excel(name = "极差值", sort = 2)
    @TableField(exist = false)
    private String rangeValueVal;

    /**
     * 翻译key
     */
    @TableField("PK_TRANSACTION")
    private Integer pkTransaction;
    /**
     * 金额比例
     */
    @TableField("MONEY_RATIO")
    private BigDecimal moneyRatio;
    /**
     * 业绩比例
     */
    @TableField("ACHIEVE_RATIO")
    private BigDecimal achieveRatio;

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

}
