package com.inspect.metadata.eqpbook.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;
import lombok.Setter;

@Setter
@Getter
public class BasedataUavResumeInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long recordId;
    @Excel(
            name = "巡检设备类型"
    )
    private String devType;
    @Excel(
            name = "巡检设备ID"
    )
    private Long eqpBookId;
    @Excel(
            name = "巡检设备名称"
    )
    private String devName;
    @Excel(
            name = "记录类型"
    )
    private String recordType;
    @Excel(
            name = "记录名称"
    )
    private String recordName;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "记录时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date recordTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "保养时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date maintainTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "投运时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date inTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "退出投运时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date outTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "退出再投运记录",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date againTime;

    @Override
    public String toString() {
        return "BasedataUavResumeInfo{" +
                "recordId=" + recordId +
                ", devType='" + devType + '\'' +
                ", eqpBookId=" + eqpBookId +
                ", devName='" + devName + '\'' +
                ", recordType='" + recordType + '\'' +
                ", recordName='" + recordName + '\'' +
                ", recordTime=" + recordTime +
                ", maintainTime=" + maintainTime +
                ", inTime=" + inTime +
                ", outTime=" + outTime +
                ", againTime=" + againTime +
                '}';
    }
}
