package com.inspect.exec.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 lombok.*;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PatrolTaskPointExecRecord 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 HH:mm:ss"
    )
    @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;
    private Long patrolPointId;
    private String oldTaskPatrolledId;
    private Integer tries;
    private Integer isOk;
}
