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.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 质控样业务新增/修改 Request VO")
@Data
public class BusinessQCDataSaveReqVO {

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

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

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

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

    @Schema(description = "指派单ID", example = "29117")
    private Long businessAssayTaskId;

    @Schema(description = "定值样业务ID", example = "24895")
    private Long businessStandardSampleId;

    @Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型：空白样、管理样、标准样、标样", example = "9549")
    private Long dictionaryBusinessId;

    @Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型：空白样、管理样、标准样、标样")
    private String dictionaryBusinessKey;

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

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

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

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

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

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

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

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

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

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "24118")
    @NotNull(message = "乐观锁不能为空")
    private Integer updateCount;

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

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

}