package com.zt.plat.module.qms.resource.device.controller.vo;

import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.infra.api.businessfile.dto.BusinessFileWithUrlRespDTO;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 设备-期间核查 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DevicePeriodCheckRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27613")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "期间核查计划id", example = "21407")
    @ExcelProperty("期间核查计划id")
    private Long planId;

    @Schema(description = "有效标识")
    @ExcelProperty("有效标识")
    private String effectiveFlag;

    @Schema(description = "设备ID", example = "31026")
    @ExcelProperty("设备ID")
    private Long deviceId;

    @Schema(description = "期间核查执行人")
    @ExcelProperty("期间核查执行人")
    private String checkPersonRemark;

    @Schema(description = "核查人姓名", example = "张三")
    @ExcelProperty("核查人姓名")
    private String checkPersonName;

    @Schema(description = "核查人id", example = "29695")
    @ExcelProperty("核查人id")
    private Long checkPersonId;

    @Schema(description = "复核人姓名", example = "赵六")
    @ExcelProperty("复核人姓名")
    private String recheckPersonName;

    @Schema(description = "复核人id", example = "10898")
    @ExcelProperty("复核人id")
    private Long recheckPersonId;

    @Schema(description = "核查方法")
    @ExcelProperty("核查方法")
    private String checkAccording;

    @Schema(description = "核查方法描述")
    @ExcelProperty("核查方法描述")
    private String checkAccordingRemark;

    @Schema(description = "核查记录")
    @ExcelProperty("核查记录")
    private String checkContent;

    @Schema(description = "核查结论")
    @ExcelProperty("核查结论")
    private String checkResult;

    @Schema(description = "核查备注")
    @ExcelProperty("核查备注")
    private String checkRemark;

    @Schema(description = "实际检查日期")
    @ExcelProperty("实际检查日期")
    private LocalDateTime checkDate;

    @ExcelProperty("核查对象类型")
    @Schema(description = "核查对象类型")
    private String checkTarget;

    @Schema(description = "上次检查日期")
    @ExcelProperty("上次检查日期")
    private LocalDateTime lastCheckDate;

    @Schema(description = "计划检查日期-开始")
    @ExcelProperty("计划检查日期-开始")
    private LocalDateTime planCheckDateStart;

    @Schema(description = "计划检查日期-截止")
    @ExcelProperty("计划检查日期-截止")
    private LocalDateTime planCheckDateEnd;

    @Schema(description = "频次")
    @ExcelProperty("频次")
    private String frequencyRemark;

    @Schema(description = "审批状态", example = "2")
    @ExcelProperty("审批状态")
    @Dict(dicCode = "flow_status")
    private String flowStatus;

    @Schema(description = "流程实例id", example = "31647")
    @ExcelProperty("流程实例id")
    private String flowInstanceId;

    @Schema(description = "表单id")
    @ExcelProperty("表单id")
    private Long formId;

    @Schema(description = "所属部门")
    @ExcelProperty("所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    //============扩展字段============

    @Schema(description = "附件对象")
    private CommonResult<List<BusinessFileWithUrlRespDTO>> businessFileRet;

}