package com.njcn.process.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * Description:
 * 接口文档访问地址：http://serverIP:port/swagger-ui.html
 * Date: 2022/11/11  15:20【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class RGeneralSurveyPlanAddParm {

    @ApiModelProperty(value="单位ID")
    @NotBlank(message = "单位不可为空")
    private String orgNo;

    @ApiModelProperty(value="普测计划编号")
    @NotBlank(message = "普测计划编号不可为空")
    private String planNo;

    @ApiModelProperty(value="普测计划名称")
    @NotBlank(message = "普测计划名称不可为空")
    private String planName;

    @ApiModelProperty(value="计划开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @NotNull(message = "计划开始时间不可为空")
    private Date planStartTime;

    @ApiModelProperty(value="计划结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @NotNull(message = "计划结束时间不可为空")
    private Date planEndTime;

    @ApiModelProperty(value="计划负责人")
    private String leader;
    @ApiModelProperty(value="详细情况")
    private String description;

    @ApiModelProperty(value="选中的电站集合")
    private List<String> subIds;
/*    @Data
    @ApiModel(value="计划详细情况电站相关")
    public static class RGeneralSurveyPlanDetailAddParm{

        @ApiModelProperty(value = "组织id")
        private String orgNo;
        @ApiModelProperty(value = "组织名")
        private String orgName;

        @ApiModelProperty(value="变电站ID")
        private String subId;

        @ApiModelProperty(value="变电站名称")
        private String subName;

        @ApiModelProperty(value="变电站电压等级")
        private String voltageLevel;

        @ApiModelProperty(value="母线ID")
        private String busbarId;

        @ApiModelProperty(value="母线名称")
        private String busbarName;

        @ApiModelProperty(value="离线监测点id")
        private String measurementPointId;
        *//**
         * 测试开始时间
         *//*
        @ApiModelProperty(value="测试开始时间")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        private Date generalSurveyStartTime;

        *//**
         * 测试结束时间
         *//*
        @ApiModelProperty(value="测试结束时间")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        private Date generalSurveyEndTime;

        *//**
         * 测试日期
         *//*
        @ApiModelProperty(value="测试日期")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        private Date generalSurveyTime;

        *//**
         * 测试负责人
         *//*
        @ApiModelProperty(value="测试负责人")
        private String generalSurveyLeader;

    }*/

}
