package com.sundot.airport.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("PC绩效指标查询参数DTO")
public class PerformanceDimensionParamDto {

    @ApiModelProperty("统计维度：1-人员、2-班级、3-科级、4-大队")
    private Integer dimension;

    @ApiModelProperty("绩效维度：seizureEfficiency-查获效率、inspectionPassRate-巡检合格率、trainingScore-培训得分、totalScore-总分")
    private String resultField;

    @ApiModelProperty("排序结果：1-升序(由小到大)、2-降序(由大到小)")
    private Integer sortOrder;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty("维度(总分/进步，只要个体和班级有  1-总分 2-进步)")
    private Integer dimensionType;
}
