package com.njcn.device.pq.pojo.vo;

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

import java.math.BigDecimal;
import java.util.List;

/**
 * @author wr
 * @description
 * @date 2025/5/8 14:11
 */
@Data
public class DeviceRunEvaluateVO {

    @ApiModelProperty("终端id")
    private String id;

    @ApiModelProperty("名称")
    private String name;

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

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("评价")
    private BigDecimal evaluate;

    @ApiModelProperty("地市")
    private String cit;

    @ApiModelProperty("供电公司")
    private String company;

    @ApiModelProperty("终端厂家")
    private String manufacturer;

    @ApiModelProperty("终端运行状态（0：运行；1：检修；2：停运；3：调试；4：退运）")
    private String runFlag;

    @ApiModelProperty("完整率")
    private BigDecimal integrityRate;

    @ApiModelProperty("在线率")
    private BigDecimal onLineRate;

    @ApiModelProperty("合格率")
    private BigDecimal passRate;

    @Data
    public static class Info extends DeviceRunEvaluateVO{
        @ApiModelProperty("终端id集合")
        private List<String> devIds;
    }

    @Data
    public static class Detail {

        @ApiModelProperty("名称")
        private String name;

        @ApiModelProperty("评价")
        private BigDecimal score;

        @ApiModelProperty("终端数量")
        private Integer count;

        @ApiModelProperty("在线率")
        private BigDecimal online;

        @ApiModelProperty("数据完整性")
        private BigDecimal integrity;

        @ApiModelProperty("异常率")
        private BigDecimal qualified;

        @ApiModelProperty("终端信息")
        List<DeviceRunEvaluateVO> list;
    }
}
