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

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

    @Schema(description = "物料检测标准ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28807")
    @NotNull(message = "物料检测标准ID不能为空")
    private Long materialAssayStandardId;

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

    @Schema(description = "检测项目编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测项目编码不能为空")
    private String dictionaryProjectCode;

    @Schema(description = "检测结果单位ID", example = "11072")
    private Long unitId;

    @Schema(description = "检测结果单位")
    private String unit;

    @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 = "是否必填,委托时是否必填；1-是，0-否", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否必填,委托时是否必填；1-是，0-否不能为空")
    private Integer isDefault;

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

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

}