package com.inspect.partrolresult.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
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 PatrolResult extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long lineId;
    @Excel(
            name = "巡视设备名称"
    )
    @JsonProperty("patroldeviceName")
    private String patrolDeviceName;
    @Excel(
            name = "巡视设备编码"
    )
    @JsonProperty("patroldeviceCode")
    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 = "值类型"
    )
    private String valueType;
    @Excel(
            name = "值"
    )
    private String value;
    @Excel(
            name = "值带单位"
    )
    private String valueUnit;
    @Excel(
            name = "单位"
    )
    private String unit;
    private String time;
    @Excel(
            name = "识别类型"
    )
    private String recognitionType;
    @Excel(
            name = "采集文件类型"
    )
    private String fileType;
    @Excel(
            name = "文件名称 "
    )
    private String filePath;
    @Excel(
            name = "图像框"
    )
    private String rectangle;
    @Excel(
            name = "巡视任务执行ID"
    )
    private String taskPatrolledId;
    @Excel(
            name = "结论"
    )
    private String valid;
    @Excel(
            name = "审核状态"
    )
    private String patrolStatus;
    @Excel(
            name = " 审核人"
    )
    private String checkPerson;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @Excel(
            name = " 审核时间"
    )
    private String checkTime;
    private String checkResult;
    @Excel(
            name = "实物ID"
    )
    private String materialId;
    @Excel(
            name = "巡视结果数据来源"
    )
    private String dataType;
    @Excel(
            name = "阈值"
    )
    private String threshold;
    private String taskId;
    private String presetPosCode;
    private String description;
    private List<String> infraRed;
    private List<String> visible;
    private List<String> audio;
    private List<String> video;
    private List<String> photo;
    private String areaName;
    private String areaType;
    private String deviceNam;
    @JsonProperty("devicetypName")
    private String deviceTypeName;
    private String mainId;
    private String defectType;
    private String beginTime;
    private String endTime;
    private String alarmType;
    private String resultContent;
    private String devNo;
    private String componentName;
    private String componentId;
    private String bayName;
    private String areaId;
    private String mainDevId;
    @JsonProperty("warnlevel")
    private String warnLevel;
    private String photoUrl;
    private String videoUrl;
    private String desc;
    private String deviceCode;
    private String devType;
    private String phase;
    private String status;
    private String pointStatus;
    private String suggestion;
    private String resStatus;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    private String content;
    private List<String> algId;
    @JsonProperty("patrolpointName")
    private String patrolPointName;
    private String channelCode;

    private List<Long> mainIds;

    private String coordinatePixel;

    public PatrolResult(String mainId) {
        this.mainId = mainId;
    }

    public PatrolResult() {
    }

    @Override
    public String toString() {
        return "PatrolResult{" +
                "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 + '\'' +
                ", patrolStatus='" + patrolStatus + '\'' +
                ", checkPerson='" + checkPerson + '\'' +
                ", checkTime='" + checkTime + '\'' +
                ", checkResult='" + checkResult + '\'' +
                ", materialId='" + materialId + '\'' +
                ", dataType='" + dataType + '\'' +
                ", threshold='" + threshold + '\'' +
                ", taskId='" + taskId + '\'' +
                ", presetPosCode='" + presetPosCode + '\'' +
                ", describe='" + description + '\'' +
                ", infraRed=" + infraRed +
                ", visible=" + visible +
                ", audio=" + audio +
                ", video=" + video +
                ", photo=" + photo +
                ", areaName='" + areaName + '\'' +
                ", areaType='" + areaType + '\'' +
                ", deviceNam='" + deviceNam + '\'' +
                ", deviceTypeName='" + deviceTypeName + '\'' +
                ", mainId='" + mainId + '\'' +
                ", defectType='" + defectType + '\'' +
                ", beginTime='" + beginTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", alarmType='" + alarmType + '\'' +
                ", resultContent='" + resultContent + '\'' +
                ", devNo='" + devNo + '\'' +
                ", componentName='" + componentName + '\'' +
                ", componentId='" + componentId + '\'' +
                ", bayName='" + bayName + '\'' +
                ", areaId='" + areaId + '\'' +
                ", mainDevId='" + mainDevId + '\'' +
                ", warnLevel='" + warnLevel + '\'' +
                ", photoUrl='" + photoUrl + '\'' +
                ", videoUrl='" + videoUrl + '\'' +
                ", desc='" + desc + '\'' +
                ", deviceCode='" + deviceCode + '\'' +
                ", devType='" + devType + '\'' +
                ", phase='" + phase + '\'' +
                ", status='" + status + '\'' +
                ", pointStatus='" + pointStatus + '\'' +
                ", suggestion='" + suggestion + '\'' +
                ", resStatus='" + resStatus + '\'' +
                ", createTime=" + createTime +
                ", content='" + content + '\'' +
                ", algId=" + algId +
                ", patrolPointName='" + patrolPointName + '\'' +
                ", channelCode='" + channelCode + '\'' +
                ", mainIds='" + mainIds + '\'' +
                ", coordinatePixel='" + coordinatePixel + '\'' +
                '}';
    }
}
