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

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 检测报告业务新增/修改 Request VO")
@Data
public class ReportDocumentMainSaveReqVO {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "报表类型ID")
    private Long configReportTypeId;

    @Schema(description = "报表数据ids")
    private String businessAssayReportDataIds;

    @Schema(description = "报告明细数据ids")
    private String reportDocumentDataIds;

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

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

    @Schema(description = "异步执行状态")
    private String executionStatus;

    //====================附加属性==============================
    @Schema(description = "委托id，支持多值")
    private String businessSampleEntrustRegistrationIds;

    @Schema(description = "报表数据明细，用于保存【备注】等数据")
    private List<ReportDocumentDataSaveReqVO> reportDocumentDataList;

}