package com.engine.salary.report.entity.param;

import com.engine.salary.report.entity.dto.SalaryStatisticsItemRuleDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 薪酬统计报表自定义统计项目保存参数
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SalaryStatisticsItemSaveParam {
    //统计项目id
    private Long id;

    // 报表id
    private Long statReportId;

    //统计项目
    private List<String> itemValue;

    //统计项名称
    private String itemName;

    //计数规则
    private SalaryStatisticsItemRuleDTO countRule;

    //求和规则
    private SalaryStatisticsItemRuleDTO sumRule;

    //平均值规则
    private SalaryStatisticsItemRuleDTO avgRule;

    //最大值规则
    private SalaryStatisticsItemRuleDTO maxRule;

    //最小值规则
    private SalaryStatisticsItemRuleDTO minRule;

    //中位数规则
    private SalaryStatisticsItemRuleDTO medianRule;

    //最近值
    private SalaryStatisticsItemRuleDTO lastRule;

    //最旧值
    private SalaryStatisticsItemRuleDTO oldRule;

    //频繁出现
    private SalaryStatisticsItemRuleDTO frequentRule;

    //平铺
    private SalaryStatisticsItemRuleDTO tileRule;


    //统计单位
    private Integer unitType;
}
