package com.zt.plat.module.qms.business.reportdoc.controller.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 检测报告业务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ReportDocumentMainRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6004")
    @ExcelProperty("ID")
    private Long id;

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

    @Schema(description = "报告类型ID", example = "2124")
    @ExcelProperty("报告类型ID")
    private Long reportDocumentTypeId;

    @Schema(description = "流程模型Key")
    @ExcelProperty("流程模型Key")
    private String flowKey;

    @Schema(description = "流程流水号")
    @ExcelProperty("流程流水号")
    private String flowSerialNumber;

    @Schema(description = "当前节点")
    @ExcelProperty("当前节点")
    private String currentNode;

    @Schema(description = "报告编号")
    @ExcelProperty("报告编号")
    private String documentCode;

    @Schema(description = "报告类型,【字典】【jy_doc_main_type】化验报告、典型性报告、检测报告", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("报告类型,【字典】【jy_doc_main_type】化验报告、典型性报告、检测报告")
    @Dict(dicCode = "jy_doc_main_type")
    private String documentType;

    @Schema(description = "报告标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报告标题")
    private String documentTitle;

    @Schema(description = "报告配置项")
    @ExcelProperty("报告配置项")
    private String documentConfig;

    @Schema(description = "报告签名信息")
    @ExcelProperty("报告签名信息")
    private String documentSignature;

    @Schema(description = "报告发起时间")
    @ExcelProperty("报告发起时间")
    private LocalDateTime documentStartTime;

    @Schema(description = "报告结束时间")
    @ExcelProperty("报告结束时间")
    private LocalDateTime documentEndTime;

    @Schema(description = "报告表单数据")
    @ExcelProperty("报告表单数据")
    private String formData;

    @Schema(description = "审批状态,【字典】【jy_doc_main_status】待编制、审批中、已结束", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("审批状态,【字典】【jy_doc_main_status】待编制、审批中、已结束")
    @Dict(dicCode = "flow_status")
    private String flowStatus;

    @Schema(description = "作废标识：0-有效；1-作废")
    @ExcelProperty("作废标识：0-有效；1-作废")
    private String cancelFlag;

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

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

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

    @Schema(description = "发布状态")
    @ExcelProperty("发布状态")
    private String publishStatus;

    @Schema(description = "发布人id")
    @ExcelProperty("发布人id")
    private String publishUserId;

    @Schema(description = "发布人姓名")
    @ExcelProperty("发布人姓名")
    private String publishUserName;

    @Schema(description = "发布时间")
    @ExcelProperty("发布时间")
    private String publishTime;

    @Schema(description = "报表类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15805")
    @ExcelProperty("报表类型ID")
    private Long configReportTypeId;

    @Schema(description = "表单设计器模板id")
    @ExcelProperty("表单设计器模板id")
    private Long dataTemplateId;

    @Schema(description = "附件版本")
    @ExcelProperty("附件版本")
    private Integer documentVersion;

    @Schema(description = "异步执行状态")
    @ExcelProperty("异步执行状态")
    private String executionStatus;
    //==============================扩展字段=======================================
    @Schema(description = "记录数")
    @ExcelProperty("记录数")
    private Long detailDataCount;

}