package com.hzs.common.domain.activity.bean;

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.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 海豆赠送活动规则
 * </p>
 *
 * @author hzs
 * @since 2023-10-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("AC_BEAN_RULE_CONFIG")
@KeySequence("AC_RULE_CONFIG_SEQ")
public class AcBeanRuleConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 活动基本配置主键
     */
    @TableField("PK_BASE_ID")
    private Long pkBaseId;

    /**
     * 等级ID
     */
    @TableField("PK_GRADE")
    private Integer pkGrade;
    /**
     * 业绩
     */
    @TableField("START_VALUE")
    private BigDecimal startValue;

    /**
     * 比率类型 (1=按比率, 2=按金额)
     */
    @TableField("RATIO_TYPE")
    private Integer ratioType;

    /**
     * 比率值
     */
    @TableField("RATIO_VALUE")
    private BigDecimal ratioValue;


}
