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;

/**
 * 等级范围
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_GRADE_SCOPE")
@KeySequence("BD_GRADE_SCOPE_SEQ")
public class BdGradeScope extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 等级配置表主键
     */
    @TableField("PK_GRADE")
    private Integer pkGrade;

    /**
     * 等级配置表主键
     */
    @Transaction(transactionKey = EnumsPrefixConstants.KEY_GRADE)
    @TableField("PK_SCOPE")
    private Integer pkScope;


}
