package org.dromara.inspection.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.inspection.domain.OpsInspectionTestTask;
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_test_task
 *
 * @author LionLi
 * @date 2025-09-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OpsInspectionTestTask.class)
public class OpsInspectionTestTaskVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 项目ID(电站ID)
     */
    @ExcelProperty(value = "项目ID(电站ID)")
    private Long projectId;

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

    /**
     * 测试对象
     */
    @ExcelProperty(value = "测试对象")
    private String testObject;

    /**
     *
     */
    @ExcelProperty(value = "开始时间")
    private Date beginTime;

    /**
     *
     */
    @ExcelProperty(value = "结束时间")
    private Date endTime;

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

    /**
     * 执行人员
     */
    @ExcelProperty(value = "执行人员")
    private Long person;

    private RemoteUserVo personInfo;

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

    /**
     * 节点列表
     */
    private List<OpsInspectionNodeVo> nodes;

    /**
     * 状态,1待执行2暂停3失败4执行中5已完成
     */
    @ExcelProperty(value = "状态,1待执行2暂停3失败4执行中5已完成")
    private String status;

    /**
     * 是否已分析1未分析2已分析
     */
    private String unPack;

    /**
     * 关联测试计划ID
     */
    @ExcelProperty(value = "关联测试计划ID")
    private Long testPlanId;

    private OpsInspectionTestPlanVo testPlan;

    /**
     * 试验环境
     */
    @ExcelProperty(value = "试验环境")
    private String testSetting;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private Date planBeginTime;

    /**
     * 进度
     */
    @ExcelProperty(value = "进度")
    private BigDecimal progress;

    /**
     * 失败原因
     */
    @ExcelProperty(value = "失败原因")
    private String failReason;

    /**
     * 失败时间
     */
    @ExcelProperty(value = "失败时间")
    private Date failTime;

    /**
     * 失败阶段
     */
    @ExcelProperty(value = "失败阶段")
    private Long failPhase;

    /**
     * 失败原因分析
     */
    @ExcelProperty(value = "失败原因分析")
    private String faileAnalyze;

    /**
     * 改进建议
     */
    @ExcelProperty(value = "改进建议")
    private String faileTips;

    /**
     * 试验时长(分钟)
     */
    @ExcelProperty(value = "试验时长(分钟)")
    private Long testLongTime;

    /**
     * 结果
     */
    @ExcelProperty(value = "结果")
    private String testFinal;

    /**
     * 结果详情
     */
    @ExcelProperty(value = "结果详情")
    private String finalInfo;

    /**
     * 暂停原因
     */
    @ExcelProperty(value = "暂停原因")
    private String pauseFor;

    /**
     * 暂停时间
     */
    @ExcelProperty(value = "暂停时间")
    private Date pauseTime;

    /**
     * 计划完成时间
     */
    private Date planFinishTime;

    /**
     * 创建 时间
     */
    private Date createTime;

}
