package com.njcn.process.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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 RGeneralSurveyPlanVO {

    @ApiModelProperty(value="单位ID")
    private String orgNo;
    @ApiModelProperty(value="单位名称")
    private String orgName;


    @ApiModelProperty(value="普测计划编号")
    private String planNo;

    @ApiModelProperty(value="普测计划名称")
    private String planName;

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

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

    @ApiModelProperty(value="变电站数量")
    private Integer subCount;

    @ApiModelProperty(value="母线数量")
    private Long busCount;

    @ApiModelProperty(value="计划状态(0:新建 1:待审核 2:审核未通过 3:已发布 4:已完成)")
    private Integer status;

    @ApiModelProperty(value="文件是否上传(0:否 1:是)")
    private Integer isFileUpload;
    private String leader;
    /**
     * 上传文件数量
     */
    @ApiModelProperty(value="上传文件数量")
    private Integer fileCount;

    /**
     * 文件路径
     */
    @ApiModelProperty(value="文件路径")
    private String filePath;

    @ApiModelProperty(value="审核人")
    private String checkPerson;


    @ApiModelProperty(value="审核人中文名称")
    private String checkPersonName;
    /**
     * 审核意见
     */
    @ApiModelProperty(value="审核意见")
    private String checkComment;


    @ApiModelProperty(value="创建人")
    private  String createPerson;

    @ApiModelProperty(value="创建人名称")
    private  String createPersonName;

    /**
     * 上传时间
     */
    @ApiModelProperty(value="上传时间")
    private Date uploadTime;
    @ApiModelProperty(value="选中的电站集合")
    private List<String> subIds;
//    @ApiModelProperty(value="计划详细情况母线相关")
//    private List<RGeneralSurveyPlanDetailVO> rGeneralSurveyPlanDetailVOList;
    @Data
    @ApiModel(value="计划详细情况母线相关")
    public static class RGeneralSurveyPlanDetailVO{

        @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;

        /**
         * 是否实现监测(0:否 1:是)
         */
        @TableField(value = "is_survey")
        @ApiModelProperty(value="是否生成问题(0:否 1:是)")
        private Integer isSurvey;

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

    }

}
