package com.njcn.prepare.harmonic.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author clam
 * Date: 2022/10/20  11:41
 * @version V1.0.0
 */
@Data
public class PrimaryGridParam {

    @ApiModelProperty(name = "orgIdList",value = "单位Id")
    private List<String> orgIdList;

    @ApiModelProperty(name = "type",value = "报表类型,1,年，2季，3月，4周，5日")
    @NotNull(message = "报表类型不可为空")
    private Integer type;

    @ApiModelProperty(name = "dataDate",value = "时间")
    @NotBlank(message = "报表时间不可为空")
    private String dataDate;

    @ApiModelProperty(name = "dataSource",value = "数据源 0:oracle;1:influxdb")
    @NotBlank(message = "数据源")
    private Integer dataSource;

    /**
     * 调度任务开始时间
     */
    @NotBlank(message = "调度任务开始时间不可为空")
    private String beginTime;

    /**
     * 调度任务结束时间
     */
    @NotBlank(message = "调度任务结束时间不可为空")
    private String endTime;


    /**
     * 是否补招标识,默认false不补招
     */
    @ApiModelProperty(name = "repairFlag",value = "0.不补招 1.补招",example = "false")
    private Boolean repairFlag = false;
}
