package com.njcn.csharmonic.pojo.vo;


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

import java.io.Serializable;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * @author xy
 */
@Data
public class HarmonicVO implements Serializable {

    @ApiModelProperty(value = "稳态数量")
    private Integer harmonicNums = 0;

    @ApiModelProperty(value = "越限天数")
    private Integer overDays = 0;

    @ApiModelProperty(value = "越限监测点数")
    private Integer overLineNums = 0;

    @ApiModelProperty(value = "越限日期")
    private List<String> overDaysList;

    @ApiModelProperty(value = "越限监测点详情")
    private List<LineHarmonicDetail> list = new ArrayList<>();

    @Data
    public static class LineHarmonicDetail implements Serializable {

        @ApiModelProperty(value = "事件id")
        private String eventId;

        @ApiModelProperty(value = "工程名称")
        private String engineeringName;

        @ApiModelProperty(value = "项目名称")
        private String projectName;

        @ApiModelProperty(value = "设备名称")
        private String devName;

        @ApiModelProperty(value = "统计日期")
        private LocalDate statisticsDate;

        @ApiModelProperty(value = "监测点id")
        private String lineId;

        @ApiModelProperty(value = "监测点名称")
        private String lineName;

        @ApiModelProperty(value = "越限描述")
        private String overLimitDesc;

        @ApiModelProperty(value = "是否读取 0:未读取 1:读取")
        private Integer isRead;

    }

    @Data
    public static class LineHarmonicOverDays implements Serializable {

        @ApiModelProperty(value = "工程名称")
        private String engineeringName;

        @ApiModelProperty(value = "项目名称")
        private String projectName;

        @ApiModelProperty(value = "设备名称")
        private String devName;

        @ApiModelProperty(value = "监测点id")
        private String lineId;

        @ApiModelProperty(value = "监测点名称")
        private String lineName;

        @ApiModelProperty(value = "越限日期字符串")
        private String timeString;

        @ApiModelProperty(value = "越限日期集合")
        private List<String> timeList;

    }


}
