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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 子样检测任务业务新增/修改 Request VO")
@Data
public class BusinessAssayTaskDataSaveReqVO {

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

    @Schema(description = "样品主样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23293")
    @NotNull(message = "样品主样ID不能为空")
    private Long businessBaseSampleId;

    @Schema(description = "样品分样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15024")
    @NotNull(message = "样品分样ID不能为空")
    private Long businessSubParentSampleId;

    @Schema(description = "分样子样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20464")
    @NotNull(message = "分样子样ID不能为空")
    private Long businessSubSampleId;

    @Schema(description = "分样子样判定ID", example = "14560")
    private Long businessSubSampleAssessmentId;

    @Schema(description = "检测方法配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9130")
    @NotNull(message = "检测方法配置ID不能为空")
    private Long configAssayMethodId;

    @Schema(description = "指派单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23566")
    @NotNull(message = "指派单ID不能为空")
    private Long businessAssayTaskId;

    @Schema(description = "任务类型,【字典】【jy_sample_task_type】常规、抽查...", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "任务类型,【字典】【jy_sample_task_type】常规、抽查...不能为空")
    private String taskType;

    @Schema(description = "分析类型,【字典】【jy_sample_assay_type】单杯-single_cup、双杯-double_cup、平行-single_parallel...", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "分析类型,【字典】【jy_sample_assay_type】单杯-single_cup、双杯-double_cup、平行-single_parallel...不能为空")
    private String assayType;

    @Schema(description = "检测项目", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测项目不能为空")
    private String assayProject;

    @Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16988")
    @NotNull(message = "分析部门ID不能为空")
    private Long assayDepartmentId;

    @Schema(description = "分析部门名称", example = "芋艿")
    private String assayDepartmentName;

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

    @Schema(description = "分析人ID", example = "27835")
    private Long assayOperatorId;

    @Schema(description = "分配任务时间")
    private LocalDateTime assignTaskTime;

    @Schema(description = "是否已分配任务")
    private Integer isAssignTasked;

    @Schema(description = "是否已上报")
    private Integer isReported;

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

    @Schema(description = "上报人ID", example = "15920")
    private Long reporterId;

    @Schema(description = "上报时间")
    private LocalDateTime reportTime;

    @Schema(description = "样品流程配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10639")
    @NotNull(message = "样品流程配置ID不能为空")
    private Long configSampleFlowId;

    @Schema(description = "样品流程节点KEY", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "样品流程节点KEY不能为空")
    private String sampleFlowNodeKey;

    @Schema(description = "样品流程节点时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "样品流程节点时间不能为空")
    private LocalDateTime sampleFlowNodeTime;

    @Schema(description = "复检次数", example = "7312")
    private Integer recheckCount;

    @Schema(description = "复测次数", example = "28081")
    private Integer retestCount;

    @Schema(description = "扩展信息")
    private String externalInfomation;

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "11435")
    private Integer updateCount;

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    private String systemDepartmentCode;

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

}