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

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

    @Schema(description = "定值样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17499")
    @NotNull(message = "定值样ID不能为空")
    private Long businessStandardSampleId;

    @Schema(description = "定值样元素配置ID", example = "10892")
    private Long configStandardSampleProjectId;

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

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

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

    @Schema(description = "标准值")
    private String standardValue;

    @Schema(description = "标准允差值")
    private String standardToleraanceValue;

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

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

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

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

}