package com.crm.rely.backend.core.pojo.table;

import com.crm.rely.backend.core.pojo.BaseTable;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 销售交易返佣配置表
 */
@Data
@Entity
@Table(name = "sales_commission_rule")
public class SalesCommissionRuleTable extends BaseTable {

    private static final long serialVersionUID = -1636792955323314783L;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * enum SalesType
     */
    private Integer salesType;
    /**
     * 考核标准
     * 1.净入金
     * 2.毛入金
     */
    private Integer kpiStandard;
    /**
     * 个人底薪规则
     */
    private String salaryRule;
    /**
     * 团队底薪规则
     */
    private String teamSalaryRule;
    /**
     * 个人净入金绩效规则
     */
    private String personalKpiRule;
    /**
     * 团队净入金绩效规则
     */
    private String teamKpiRule;
    /**
     * 个人交易量佣金规则
     */
    private String personalVolumeRule;
    /**
     * 团队交易量佣金规则
     */
    private String teamVolumeRule;
    /**
     * 删除标记
     * 1:已删除
     */
    private Integer delFlag;
    
    public static SalesCommissionRuleTable getInstance() {
        SalesCommissionRuleTable table = new SalesCommissionRuleTable();
        table.setDelFlag(0);
        return table;
    }


}
