package com.inspect.partrolresultAux.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class PatrolResultAux extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long lineId;
    @Excel(
            name = "巡视设备名称"
    )
    private String patrolDeviceName;
    @Excel(
            name = "巡视设备编码"
    )
    private String patrolDeviceCode;
    @Excel(
            name = "任务名称"
    )
    private String taskName;
    @Excel(
            name = "任务编码"
    )
    private String taskCode;
    @Excel(
            name = "设备点位名称"
    )
    private String deviceName;
    @Excel(
            name = "设备点位ID"
    )
    private String deviceId;
    @Excel(
            name = "值类型 <0>: = 默认值类型 <11>: = 局放放电频次 <12>: = 局放信号峰值 <13>: = 局放信号均值"
    )
    private String valueType;
    @Excel(
            name = "值"
    )
    private String value;
    @Excel(
            name = "值带单位"
    )
    private String valueUnit;
    @Excel(
            name = "单位"
    )
    private String unit;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date time;
    private String recognitionType;
    @Excel(
            name = "采集文件类型 "
    )
    private String fileType;
    @Excel(
            name = "文件名称--存在多个文件，路径用逗号分隔，并与文件 类型一一对应"
    )
    private String filePath;
    @Excel(
            name = "图像框 格式：x1,y1;x2,y2;x3,y3;x4,y4，x1等为图片 文件的像素点"
    )
    private String rectangle;
    @Excel(
            name = "巡视任务执行ID"
    )
    private String taskPatrolledId;
    @Excel(
            name = "结论 0为失败，1为成功，2为判别异常"
    )
    private String valid;
    @Excel(
            name = "关联结果id"
    )
    private String resultId;
    private List<String> infraRed;
    private List<String> visible;
    private List<String> audio;
    private List<String> video;
    private List<String> photo;

    public PatrolResultAux(String resultId) {
        this.resultId = resultId;
    }

    public PatrolResultAux() {
    }

    @Override
    public String toString() {
        return "PatrolResultAux{" +
                "lineId=" + lineId +
                ", patrolDeviceName='" + patrolDeviceName + '\'' +
                ", patrolDeviceCode='" + patrolDeviceCode + '\'' +
                ", taskName='" + taskName + '\'' +
                ", taskCode='" + taskCode + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", valueType='" + valueType + '\'' +
                ", value='" + value + '\'' +
                ", valueUnit='" + valueUnit + '\'' +
                ", unit='" + unit + '\'' +
                ", time=" + time +
                ", recognitionType='" + recognitionType + '\'' +
                ", fileType='" + fileType + '\'' +
                ", filePath='" + filePath + '\'' +
                ", rectangle='" + rectangle + '\'' +
                ", taskPatrolledId='" + taskPatrolledId + '\'' +
                ", valid='" + valid + '\'' +
                ", resultId='" + resultId + '\'' +
                ", infraRed=" + infraRed +
                ", visible=" + visible +
                ", audio=" + audio +
                ", video=" + video +
                ", photo=" + photo +
                '}';
    }
}
