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

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

@Schema(description = "管理后台 - 检测任务分配明细新增/修改 Request VO")
@Data
public class BusinessAssayTaskDetailSaveReqVO {

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

    @Schema(description = "指派单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21102")
    @NotNull(message = "指派单ID不能为空")
    private Long businessAssayTaskId;
    
    @Schema(description = "检测任务ID", example = "16505")
    private Long businessAssayTaskDataId;

    @Schema(description = "样品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9299")
    @NotNull(message = "样品id不能为空")
    private Long sampleId;

    @Schema(description = "指派编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "指派编号不能为空")
    private String taskNo;

    @Schema(description = "样品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "样品名称不能为空")
    private String sampleName;

    @Schema(description = "样品编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "样品编号不能为空")
    private String sampleCode;

    @Schema(description = "杯号")
    private String cupNumber;

    @Schema(description = "数据来源类型,【字典】【jy_assay_task_data_source_type】正常，筛上，筛下", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "数据来源类型,【字典】【jy_assay_task_data_source_type】正常，筛上，筛下不能为空")
    private String dataSourceType;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序号不能为空")
    private Integer sortNo;

    @Schema(description = "任务退回状态,【字典】【jy_assay_task_rollback_status】默认；审批中；已审批（已退回）；取消退回", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "任务退回状态,【字典】【jy_assay_task_rollback_status】默认；审批中；已审批（已退回）；取消退回不能为空")
    private String rollbackStatus;

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

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

}