package com.njcn.device.pq.pojo.bo.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.njcn.common.pojo.constant.PatternRegex;
import lombok.Data;

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

/**
 * pqs
 *
 * @author cdf
 * @date 2022/5/10
 */
@Data
public class LineMark implements Serializable {

    @Excel(name = "省份", width = 15)
    @NotBlank(message = "省份不可为空")
    private String province;
    @Excel(name = "供电公司", width = 15)
    @Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "供电公司名称违规")
    @NotBlank(message = "公司不可为空")
    private String gdName;
    @Excel(name = "所属变电站", width = 45)
    @Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "变电站名称违规")
    @NotBlank(message = "变电站不可为空")
    private String subName;
    @Excel(name = "装置名称", width = 35)
    @Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "设备名称违规")
    @NotBlank(message = "装置不可为空")
    private String devName;
    @Excel(name = "监测点名称", width = 25)
    @Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "监测点名称违规")
    @NotBlank(message = "监测点不可为空")
    private String lineName;
    @Excel(name = "监测点评级", width = 15)
    @NotBlank(message = "评分等级不可为空")
    private String mark;

    @ExcelIgnore
    private String devIndex;
    @ExcelIgnore
    private String lineIndex;
}
