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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
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 BusinessAssayTaskPageReqVO extends PageParam {

    @Schema(description = "指派编号")
    private String taskNo;

    @Schema(description = "指派单名称", example = "张三")
    private String taskName;

    @Schema(description = "检测方法配置ID", example = "13609")
    private Long configAssayMethodId;

    @Schema(description = "任务单模板ID", example = "4389")
    private Long configReportTemplateId;

    @Schema(description = "任务单模板key")
    private String configReportTemplateKey;

    @Schema(description = "任务单来源,分配-task_assign、领取-task_claim", example = "1")
    private String taskSourceType;

    @Schema(description = "任务单分配人")
    private String taskAssignOperator;

    @Schema(description = "任务单分配时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] taskAssignTime;

    @Schema(description = "任务单分配状态,进行中-in_progress、已提交-submitted、作废-void", example = "2")
    private String taskAssignStatus;

    @Schema(description = "任务单分配提交时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] taskAssignSubmitTime;

    @Schema(description = "分析人")
    private String assayOperator;

    @Schema(description = "分析时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] assayTime;

    @Schema(description = "分析提交时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] assaySubmitTime;

    @Schema(description = "任务单分析状态,未开始-not_start、已保存- saved、 已提交-submitted", example = "1")
    private String taskAssayStatus;
    
    @Schema(description = "分析状态列表")
    private List<String> taskAssayStatusList;

    @Schema(description = "上报时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportTime;

    @Schema(description = "上报人")
    private String reportOperator;

    @Schema(description = "任务单完成时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] taskFinishTime;

    @Schema(description = "标样业务ID", example = "27168")
    private Long standardSampleId;

    @Schema(description = "标样编号")
    private String standardSampleCode;

    @Schema(description = "标准样类型ID", example = "11282")
    private Long standardSampleTypeId;

    @Schema(description = "质控样编号")
    private String qualitySampleCode;

    @Schema(description = "质控样分析时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] qualitySampleAssayTime;

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

    @Schema(description = "顶部字段数据集ID,T_DAT_COLT_FLD", example = "9742")
    private Long formDataCollectionId;

    @Schema(description = "顶部字段值")
    private String formValue;

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

    @Schema(description = "完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "2")
    private String finishStatus;

    @Schema(description = "流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "1")
    private String flowStatus;

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

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

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

}