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

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

    @Schema(description = "指派单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11066")
    @NotNull(message = "指派单ID不能为空")
    private Long businessAssayTaskId;

    @Schema(description = "标准样元素配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15889")
    @NotNull(message = "标准样元素配置ID不能为空")
    private Long configStandardSampleProjectId;

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

    @Schema(description = "检测项目名称,字典表：【UNT】", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "检测项目名称,字典表：【UNT】不能为空")
    private String dictionaryProjectName;

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

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

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

    @Schema(description = "质控样值")
    private String qualityControlValue;

    @Schema(description = "数据类型,【字典】【jy_sample_data_type】string-字符串，int-整数，decimal-小数,date-日期，datetime-时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "数据类型,【字典】【jy_sample_data_type】string-字符串，int-整数，decimal-小数,date-日期，datetime-时间不能为空")
    private String dataType;

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

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

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    private String systemDepartmentCode;

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "14124")
    private Integer updateCount;

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

}