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

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 通用数据分页 Request VO")
@Data
public class DataFormPageReqVO extends PageParam {

    @Schema(description = "数据集ID", example = "19782")
    private Long dataCollectionId;

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

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

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

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

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

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

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

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

    @Schema(description = "申请时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] applyTime;

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}