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

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

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

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

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

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

    @Schema(description = "范围类型,控制范围类型（0-不控制；1-只警告；2-只限制；3-警告+限制）", example = "2")
    private String rangeType;

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

    @Schema(description = "最小警告值")
    private String minimumWarningValue;

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

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

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

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

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

}