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

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

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

    @Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "1283")
    @NotNull(message = "参数ID,字典表【T_DIC_PRM】不能为空")
    private Long dictionaryParameterId;

    @Schema(description = "参数名称", example = "李四")
    private String parameterName;

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

    @Schema(description = "参数序号")
    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】，keyboard-人工数字键盘录入，input-人工文本录入,collect-天平采集,calculate-计算", requiredMode = Schema.RequiredMode.REQUIRED)
    private String fillingWay;

    @Schema(description = "数据类型,【字典】【jy_sample_data_type】字符串，整数，小数,日期，时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @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 = "计算公式")
    private String formula;

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

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

    @Schema(description = "参数分组_ID")
    private Long dictionaryBusinessId;

    @Schema(description = "参数分组_Key")
    private String dictionaryBusinessKey;

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

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

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

}