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.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 检测方法分析项目补正系数新增/修改 Request VO")
@Data
public class ConfigAssayMethodProjectCoefficientSaveReqVO {

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

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

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

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

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

    @Schema(description = "检测项目缩写", example = "李四")
    private String projectSimpleName;

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

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

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

    @Schema(description = "补正系数")
    private BigDecimal coefficient;

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

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

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

}