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 ConfigAssayMethodProjectAssessmentSaveReqVO {

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

    @Schema(description = "主样配置ID", example = "30107")
    private Long configBaseSampleId;

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

    @Schema(description = "检测方法分析项目配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10083")
    @NotNull(message = "检测方法分析项目配置ID不能为空")
    private Long configAssayMethodProjectId;

    @Schema(description = "检测项目ID,字典表【T_DIC_PRJ】", requiredMode = Schema.RequiredMode.REQUIRED, example = "31414")
    @NotNull(message = "检测项目ID,字典表【T_DIC_PRJ】不能为空")
    private Long dictionaryProjectId;

    @Schema(description = "级别")
    private Integer assessmentLevel;

    @Schema(description = "范围")
    private String assessmentRange;

    @Schema(description = "最小允差值")
    private String minimumToleraanceValue;

    @Schema(description = "最大允差值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "最大允差值不能为空")
    private String maximumToleraanceValue;

    @Schema(description = "最小值")
    private String minimumValue;

    @Schema(description = "最大值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "最大值不能为空")
    private String maximumValue;

    @Schema(description = "计算公式")
    private String formula;

    @Schema(description = "是否使用公式计算计算允差值,1-是，0-否")
    private Integer isUseFormula;

    @Schema(description = "允差值调整参数")
    private String toleraanceAdjustmentValue;

    @Schema(description = "判定类型,内控超差、重复性超差、再现性超差", example = "2")
    private String assessmentType;

    @Schema(description = "是否作废(取消)判定[超差时],1-是，0-否")
    private Integer isCancelAssessment;

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

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

    @Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本不能为空")
    private Integer version;

}