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

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

    @Schema(description = "标准样类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12426")
    @NotNull(message = "标准样类型ID不能为空")
    private Long configStandardSampleTypeId;

    @Schema(description = "检测项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8525")
    @NotNull(message = "检测项目ID不能为空")
    private Long dictionaryProjectId;

    @Schema(description = "检测项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "检测项目名称不能为空")
    private String dictionaryProjectName;

    @Schema(description = "检测单位ID,UNT表", example = "31396")
    private Long unitId;

    @Schema(description = "检测项目单位")
    private String dictionaryProjectUnit;

    @Schema(description = "小数精度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "小数精度不能为空")
    private Integer accuracy;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序号不能为空")
    private Integer sortNo;

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

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

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

}