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

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

/**
 * <p>
 * 直推-复购券规则配置
 * </p>
 *
 * @author hzs
 * @since 2023-04-22
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("AC_REPUR_COUPONS_RULE_CONFIG")
@KeySequence("AC_RULE_CONFIG_SEQ")
public class AcRepurCouponsRuleConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 订单类型 来源于枚举：所属专区
     */
    @TableField("ORDER_TYPE")
    private Integer orderType;

    /**
     * 订单金额
     */
    @TableField("ORDER_AMOUNT")
    private BigDecimal orderAmount;

    /**
     * 订单业绩
     */
    @TableField("ORDER_ACHIEVE")
    private BigDecimal orderAchieve;

    /**
     * 比率类型 ECalType
     */
    @TableField("RATIO_TYPE")
    private Integer ratioType;

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


}
