package com.inspect.resultmain.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

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

@Setter
@Getter
@ToString
public class PatrolTaskResultMain extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long lineId;

    private List<Long> lineIds;
    @Excel(
            name = "任务主表id"
    )
    private String taskId;
    @Excel(
            name = "任务名称"
    )
    private String taskName;
    @Excel(
            name = "任务编码"
    )
    private String taskCode;
    @Excel(
            name = "创建人"
    )
    private String createBy;
    @Excel(
            name = "归档状态  0--未归档  1-已归档"
    )
    private String fileStatus;
    @Excel(
            name = "区域名称"
    )
    private String areaName;
    @Excel(
            name = "巡视类型"
    )
    private String taskType;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "巡视时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date taskTime;
    @Excel(
            name = "间隔名称"
    )
    private String intervalName;
    @Excel(
            name = "设备类型"
    )
    private String devType;
    @Excel(
            name = "巡视结论"
    )
    private String taskResult;
    @Excel(
            name = "调用智能分析id"
    )
    private String requestId;
    @Excel(
            name = "审核人"
    )
    private String checkPerson;
    private String taskPatrolledId;
    private List<String> taskPatrolledIds;
    private String unifiedTaskPatrolledId;

    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "审核时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date checkTime;

    public PatrolTaskResultMain() {}

    public PatrolTaskResultMain(String taskPatrolledId) {
        this.taskPatrolledId = taskPatrolledId;
    }
}
