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

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.njcn.device.pq.pojo.po.PqsLineWeight;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wr
 * @description
 * @date 2023/8/24 10:31
 */
@Data
public class PqsLineWeightVo extends PqsLineWeight {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "区域")
    private String areaName;

    @ApiModelProperty(value = "供电公司")
    private String gbName;

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

    @ApiModelProperty(value = "装置名称")
    private String devName;

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

    @ApiModelProperty(value = "终端运行状态")
    private String runFlag;

    @ApiModelProperty(value = "监测点评级")
    private String lineGrade;

    @Data
    public static class WeightExcel {

        private static final long serialVersionUID = 1L;

        @Excel(name = "省份",width = 15,height = 20)

        @NotBlank(message = "省份名称不为空")
        private String areaName;

        @Excel(name = "供电公司",width = 15)
        @NotBlank(message = "供电公司名称不为空")
        private String gbName;

        @Excel(name = "变电站",width = 15)
        @NotBlank(message = "变电站名称不为空")
        private String subName;

        @Excel(name = "装置名称",width = 15)
        @NotBlank(message = "装置名称不为空")
        private String devName;

        @Excel(name = "监测点名称",width = 15)
        @NotBlank(message = "监测点名称不为空")
        private String lineName;

        @Excel(name ="通讯费用评分",width = 15)
        @NotNull(message = "通讯费用评分不为空")
        private Integer communFeeMark;

        @Excel(name ="资产归属评分",width = 15)
        @NotNull(message ="资产归属评分")
        private Integer assetBelong;

        @Excel(name ="服务条款评分",width = 15)
        @NotNull(message = "服务条款评分不为空")
        private Integer serviceMark;

        @Excel(name ="中间户数据需求",width = 15)
        @NotNull(message = "中间户数据需求不为空")
        private Integer agentMark;

        @Excel(name ="公司数据需求",width = 15)
        @NotNull(message = "公司数据需求不为空")
        private Integer companyMark;

        @Excel(name ="用户需求",width = 15)
        @NotNull(message = "用户需求不为空")
        private Integer userMark;

        @Excel(name ="监测点类型",width = 15)
        @NotNull(message = "监测点类型不为空")
        private Integer lineTypeMark;

        @Excel(name ="行业重要度",width = 15)
        @NotNull(message = "行业重要度不为空")
        private Integer businessMark;
    }
    @Data
    public static class Msg extends  WeightExcel{

        private static final long serialVersionUID = 1L;

        @Excel(name = "错误信息",width = 60)
        private String msg;
    }
}
