package org.dromara.inspection.domain.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.inspection.domain.OpsInspectionTask;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.personnel.domain.vo.OpsUserVo;
import org.dromara.system.api.domain.vo.RemoteUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 运维-巡检计划-任务视图对象 ops_inspection_task
 *
 * @author LionLi
 * @date 2025-09-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OpsInspectionTask.class)
public class OpsInspectionTaskVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    private Long projectId;

    /**
     * 任务名
     */
    @ExcelProperty(value = "任务名")
    private String taskName;

    /**
     * 巡检对象
     */
    @ExcelProperty(value = "巡检对象")
    private String inspectionObject;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Date beginTime;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Date endTime;

    /**
     * 时间段
     */
    @ExcelProperty(value = "时间段")
    private String timeInfo;

    /**
     * 计划ID
     */
    @ExcelProperty(value = "计划ID")
    private Long planId;

    private OpsInspectionPlanVo plan;

    /**
     * 执行人ID
     */
    @ExcelProperty(value = "执行人ID")
    private Long personId;

    private RemoteUserVo person;

    /**
     * 进度
     */
    private BigDecimal taskProgress;

    /**
     * 节点ids
     */
    private String nodeIds;

    private List<OpsInspectionNodeVo> nodes;

    /**
     * 问题列表
     */
    private List<OpsInspectionTaskProblemVo> problems;

    /**
     * 状态   1待执行2已延期3执行中4已完成
     */
    private String taskType;

    /**
     * 发现问题种类,1磁盘使用率2内存使用率3服务状态4响应时间5设备运行状态
     */
    private String problemType;

    /**
     * 开始时间
     */
    private Date startTime;

    private Date finishTime;

    private Date createTime;

}
