package com.zt.plat.module.qms.common.data.controller.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 通用数据 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataFormRespVO {

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

    @Schema(description = "数据集ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19782")
    @ExcelProperty("数据集ID")
    private Long dataCollectionId;

    @Schema(description = "主表数据id,支持", requiredMode = Schema.RequiredMode.REQUIRED, example = "28589")
    @ExcelProperty("主表数据id,支持")
    private Long parentId;

    @Schema(description = "业务数据ID", example = "18836")
    @ExcelProperty("业务数据ID")
    private Long businessId;

    @Schema(description = "业务类型,【字典】【jy_data_collect_bsn_type】人员履历、人员学历记录、人员资质、安全记录等", example = "1")
    @ExcelProperty("业务类型,【字典】【jy_data_collect_bsn_type】人员履历、人员学历记录、人员资质、安全记录等")
    private String businessType;

    @Schema(description = "业务类型编码")
    @ExcelProperty("业务类型编码")
    private String businessTypeCode;

    @Schema(description = "申请人")
    @ExcelProperty("申请人")
    private String applyUser;

    @Schema(description = "申请人id", example = "9284")
    @ExcelProperty("申请人id")
    private Long applyUserId;

    @Schema(description = "申请部门")
    @ExcelProperty("申请部门")
    private String applyDepartment;

    @Schema(description = "申请部门id", example = "12524")
    @ExcelProperty("申请部门id")
    private Long applyDepartmentId;

    @Schema(description = "申请时间")
    @ExcelProperty("申请时间")
    private LocalDateTime applyTime;

    @Schema(description = "提交状态,0-未提交；1-已提交", example = "1")
    @ExcelProperty("提交状态,0-未提交；1-已提交")
    private String submitStatus;

    @Schema(description = "审批状态,0-未审批；1-已审批", example = "2")
    @ExcelProperty("审批状态,0-未审批；1-已审批")
    private String approvalStatus;

    @Schema(description = "使用状态", example = "1")
    @ExcelProperty("使用状态")
    private String useStatus;

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

    @Schema(description = "表单模板,表单编辑器模板")
    @ExcelProperty("表单模板,表单编辑器模板")
    private String formTemplate;

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

    @Schema(description = "流程审批状态", example = "1")
    @ExcelProperty("流程审批状态")
    private String flowStatus;

    @Schema(description = "审批意见")
    @ExcelProperty("审批意见")
    private String opinion;

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

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

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

}