package com.zt.plat.module.qms.business.config.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 ConfigQCSampleMethodSaveReqVO {

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

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

    @Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型：空白样、管理样、标准样、标样", requiredMode = Schema.RequiredMode.REQUIRED, example = "9549")
    @NotNull(message = "质控类型_ID,字典表【T_DIC_BSN】质控类型：空白样、管理样、标准样、标样不能为空")
    private Long dictionaryBusinessId;

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

    @Schema(description = "编码规则", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码规则不能为空")
    private String codeRule;

    @Schema(description = "默认个数,1-是，0-否", requiredMode = Schema.RequiredMode.REQUIRED, example = "484")
    @NotNull(message = "默认个数,1-是，0-否不能为空")
    private Integer defaultCount;

    @Schema(description = "分配提交最小个数", requiredMode = Schema.RequiredMode.REQUIRED, example = "28377")
    @NotNull(message = "分配提交最小个数不能为空")
    private Integer taskMinimumCount;

    @Schema(description = "分析提交最小个数", requiredMode = Schema.RequiredMode.REQUIRED, example = "31499")
    @NotNull(message = "分析提交最小个数不能为空")
    private Integer assayMinimumCount;

    @Schema(description = "是否关联定值样,1-是，0-否", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否关联定值样,1-是，0-否不能为空")
    private Integer isCorrelation;

    @Schema(description = "映射检测信息配置")
    private String configInfomation;

    @Schema(description = "必要检测项目")
    private String mustProject;

    @Schema(description = "排序号")
    private Integer sortNo;

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

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

}