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 BusinessSubSampleAssessmentPageReqVO extends PageParam {

    @Schema(description = "样品分样ID", example = "29115")
    private Long businessSubParentSampleId;

    @Schema(description = "分样子样ID", example = "30256")
    private Long businessSubSampleId;

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

    @Schema(description = "任务类型,【字典】【jy_sample_task_type】常规、抽查...", example = "1")
    private String taskType;

    @Schema(description = "分析类型,【字典】【jy_sample_assay_type】单杯-single_cup、双杯-double_cup、平行-single_parallel...", example = "1")
    private String assayType;

    @Schema(description = "判定状态,in_progress-进行中 normal-正常，exceeds_tolerance-超差", example = "2")
    private String assessmentStatus;
    
    @Schema(description = "复测次数")
    private Integer retestCount;

    @Schema(description = "是否复检,1-是，0-否")
    private Integer isRecheck;

    @Schema(description = "是否已上报,1-是，0-否")
    private Integer isReported;

    @Schema(description = "上报状态,初始状态-initial、待上报-pending_report、待判定-pending_assessment、已复检-re_inspected、已上报-reported", example = "1")
    private String reportedStatus;

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

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

    @Schema(description = "上报描述")
    private String reportDescription;

    @Schema(description = "结果处理方式,automatic-自动报出(不超差)，manual-手动报出，modify-允许修改")
    private String resultTreatmentWay;

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

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

    @Schema(description = "乐观锁", example = "6438")
    private Integer updateCount;

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

}