package com.njcn.supervision.pojo.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class SensitiveUserExcel implements Serializable {


    /**
     * 所属地市
     */
    @Excel(name = "*供电单位", width = 30)
    @NotBlank(message = "供电单位不能为空")
    private String city;

    /**
     * 用户名称
     */
    @Excel(name = "*用户名称", width = 30)
    @NotBlank(message = "用户名称不能为空")
    private String projectName;


//    /**
//     * 工程预期投产日期
//     */
//    @Excel(name="工程预期投产日期(yyyy-MM-dd)",format = "yyyy-MM-dd",width = 45)
//    private String expectedProductionDate;

    /**
     * 用户状态
     */
    @Excel(name = "用户状态", width = 20, replace = {"可研_0", "建设_1", "运行_2", "退运_3", "_null"})
    private Integer userStatus;

    /**
     * 变电站
     */
    @Excel(name = "变电站", width = 30)
    private String substation;

    /**
     * 电压等级
     */
    @Excel(name = "电压等级(kV)", width = 20)
    private String voltageLevel;


    /**
     * 行业
     */
    @Excel(name = "行业", width = 30)
    private String industry;


    /**
     * 运维单位
     */
    @Excel(name = "运维单位", width = 30)
    private String maintenanceUnit;

    /**
     * 供电电源
     */
    @Excel(name = "供电电源", width = 40)
    private String powerSupply;

    /**
     * 接入电压等级
     */
    @Excel(name = "接入电压等级(kV)", width = 20)
    private String supplyVoltageLevel;


    /**
     * 负荷级别
     */
    @Excel(name = "负荷级别", width = 20)
    private String loadLevel;


    /**
     * 供电电源情况（单电源、双电源、多电源）
     */
    @Excel(name = "供电电源情况", width = 20)
    private String powerSupplyInfo;

//    /**
//     * 是否覆盖
//     */
//    @Excel(name = "是否覆盖", width = 20, replace = {"否_0", "是_1"})
//    private Integer overlay = 0;

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class SensitiveUserExcelMsg extends SensitiveUserExcel implements Serializable {
        @Excel(name = "错误信息描述")
        private String msg;

    }

}
