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 PatrolTaskStatus extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long lineId;
    @Excel(
            name = "巡视任务执行ID"
    )
    private String taskPatrolledId;
    @Excel(
            name = "任务名称"
    )
    private String taskName;
    @Excel(
            name = "任务编码"
    )
    private String taskCode;
    @Excel(
            name = "任务状态 "
    )
    private String taskState;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "计划开始时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date planStartTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "开始时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date startTime;
    @Excel(
            name = "任务进度"
    )
    private String taskProgress;
    @Excel(
            name = "任务预计剩余时间"
    )
    private String taskEstimatedTime;
    @Excel(
            name = "描述"
    )
    private String description;
    @Excel(
            name = "预置位类型 0-视频 1-机器人 2-无人机"
    )
    private String posType;
    @Excel(
            name = "机器编码"
    )
    private String code;
    @Excel(
            name = "机器预置位号"
    )
    private String pos;
    @Excel(
            name = "巡检类型"
    )
    private String patrolType;
    private String timeType;
    private String timeConditions;
    private String beginTime;
    private String endTime;
    private Date createTime;
    private String patrolStatus;
    private int year;

    @Override
    public String toString() {
        return "PatrolTaskStatus{" +
                "lineId=" + lineId +
                ", taskPatrolledId='" + taskPatrolledId + '\'' +
                ", taskName='" + taskName + '\'' +
                ", taskCode='" + taskCode + '\'' +
                ", taskState='" + taskState + '\'' +
                ", planStartTime=" + planStartTime +
                ", startTime=" + startTime +
                ", taskProgress='" + taskProgress + '\'' +
                ", taskEstimatedTime='" + taskEstimatedTime + '\'' +
                ", description='" + description + '\'' +
                ", posType='" + posType + '\'' +
                ", code='" + code + '\'' +
                ", pos='" + pos + '\'' +
                ", patrolType='" + patrolType + '\'' +
                ", timeType='" + timeType + '\'' +
                ", timeConditions='" + timeConditions + '\'' +
                ", beginTime='" + beginTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", createTime=" + createTime +
                ", patrolStatus='" + patrolStatus + '\'' +
                ", year=" + year +
                '}';
    }
}
