package com.inspect.maintain.domain;

import com.inspect.base.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

@Setter
@Getter
@XmlRootElement(
        name = "Item"
)
@XmlAccessorType(XmlAccessType.FIELD)
public class MaintainAreaXML implements Serializable {
    private static final long serialVersionUID = 1L;
    @XmlAttribute(
            name = "station_name"
    )
    private String stationName;
    @Excel(
            name = "变电站编码"
    )
    @XmlAttribute(
            name = "station_code"
    )
    private String stationCode;
    @XmlAttribute(
            name = "config_code"
    )
    private String configCode;
    @XmlAttribute(
            name = "enable"
    )
    private String enable;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "开始时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    @XmlAttribute(
            name = "start_time"
    )
    private String startTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "结束时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    @XmlAttribute(
            name = "end_time"
    )
    private String endTime;
    @Excel(
            name = "设备层级 : = 间隔 : = 主设备 : = 设备点位 : = 部件"
    )
    @XmlAttribute(
            name = "device_level"
    )
    private String deviceLevel;
    @Excel(
            name = "检修设备列表 格式：多个 ID，采用“,”分隔"
    )
    @XmlAttribute(
            name = "device_list"
    )
    private String deviceList;
    @XmlAttribute(
            name = "coordinate_pixel"
    )
    private String coordinatePixel;

}
