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

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

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

    @Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "参数名称不能为空")
    private String parameterName;

    @Schema(description = "参数简称", example = "张三")
    private String shortName;

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

    @Schema(description = "键值")
    private String key;

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

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "填写方式,字典表【T_DIC_BSN】人工录入,天平采集,计算", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "填写方式,字典表【T_DIC_BSN】人工录入,天平采集,计算不能为空")
    private String fillingWay;

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

    @Schema(description = "小数位")
    private Integer decimalPosition;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "是否允许为空", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否允许为空不能为空")
    private Integer isNull;

    @Schema(description = "pc界面是否显示", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "pc界面是否显示不能为空")
    private Integer isShow;

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

    @Schema(description = "参数分组_ID,字典表【T_DIC_BSN】参数分组", example = "14680")
    private Long dictionaryBusinessId;

    @Schema(description = "参数分组_Key,字典表【T_DIC_BSN】参数分组")
    private String dictionaryBusinessKey;

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

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

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

}