package com.crm.rely.backend.core.entity.sales;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class SalesCommissionRuleAddEntity extends BaseAddEntity {

    /**
     * 规则名称
     */
    @NotNull(message = "parameter_error")
    @Size(max = 500,message = "parameter_error")
    private String ruleName;
    /**
     * enum SalesType
     */
    @NotNull(message = "parameter_error")
    private Integer salesType;
    /**
     * 考核标准
     * 1.净入金
     * 2.毛入金
     */
    @NotNull(message = "parameter_error")
    private Integer kpiStandard;
    /**
     * 底薪规则
     */
    private List<SalesCommissionSalaryRuleEntity> salaryRule;
    /**
     * 个人净入金绩效规则
     */
    private List<SalesCommissionSalaryRuleEntity> personalKpiRule;
    /**
     * 团队净入金绩效规则
     */
    private List<SalesCommissionSalaryRuleEntity> teamKpiRule;
    /**
     * 个人交易量佣金规则
     */
    private List<SalesCommissionVolumeRuleEntity> personalVolumeRule;
    /**
     * 团队交易量佣金规则
     */
    private List<SalesCommissionVolumeRuleEntity> teamVolumeRule;
}
