package com.inspect.job.domain.task;

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 lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Setter
@Getter
public class SilenceTaskPointExecRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long pointId;
    @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;
    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;
    private String fileType;
    @Excel(
            name = "文件名称--存在多个文件，路径用逗号分隔，并与文件 类型一一对应"
    )
    private String filePath;
    private String rectangle;
    @Excel(
            name = "巡视任务执行ID"
    )
    private String taskPatrolledId;
    @Excel(
            name = "巡视点位id"
    )
    private Long patrolPointId;

    @Override
    public String toString() {
        return "SilenceTaskPointExecRecord{" +
                "pointId=" + pointId +
                ", 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 + '\'' +
                ", patrolPointId=" + patrolPointId +
                '}';
    }
}
