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.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;

/**
 * <p>
 * 一次性补差升级配置
 * </p>
 *
 * @author zhangjing
 * @since 2022-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_BONUS_DIFFERENCE")
@KeySequence("BD_BONUS_DIFFERENCE_SEQ")
public class BdBonusDifference extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 奖励值
     */
    @TableField("REWARD_VALUE")
    private BigDecimal rewardValue;

    /**
     * 升级方式
     */
    @TableField("UPGRADE_TYPE")
    @Transaction(transactionKey = EnumsPrefixConstants.UPGRADE_TYPE)
    private Long upgradeType;

    /**
     * 计算类型 源计算类型枚举
     */
    @TableField("CALTYPE")
    private Integer calType;


}
