package org.dromara.inspection.domain.vo;

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

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 计划名称
     */
    @ExcelProperty(value = "计划名称")
    private String planName;

    /**
     * 计划编号
     */
    @ExcelProperty(value = "计划编号")
    private String planCode;

    /**
     * 实验对象类型,1安全试验2网络实验3性能试验4
     */
    @ExcelProperty(value = "实验对象类型,1安全试验2网络实验3性能试验4")
    private String testObject;

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

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

    /**
     * 试验目的与预期结果
     */
    @ExcelProperty(value = "试验目的与预期结果")
    private String testInfo;

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

    /**
     * 负责人ID
     */
    @ExcelProperty(value = "负责人ID")
    private Long personCharge;

    private RemoteUserVo person;

    /**
     * 参与人员IDS
     */
    @ExcelProperty(value = "参与人员IDS")
    private String personIds;

    private List<RemoteUserVo> persons;

    /**
     * 自定义检查项
     */
    @ExcelProperty(value = "自定义检查项")
    private String inspectionItems;

    private List<OpsInspectionItem> inspectionItemList;

    /**
     * 实验步骤
     */
    @ExcelProperty(value = "实验步骤")
    private String testStep;

    /**
     * 所需资源与设备
     */
    @ExcelProperty(value = "所需资源与设备")
    private String testDevice;

    /**
     * 风险评估与应对措施
     */
    @ExcelProperty(value = "风险评估与应对措施")
    private String testSolutions;

    /**
     * 申请状态 1已批准2进行中3已完成4草稿5未通过
     */
    @ExcelProperty(value = "状态")
    private String testStatus;

    //1启动2停止
    private String testPlanType;

}
