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

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

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

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

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

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

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

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

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

    @Schema(description = "检测分类,字典表【T_DIC_BSN】化学；仪器；外检", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测分类,字典表【T_DIC_BSN】化学；仪器；外检不能为空")
    private String assayCategory;

    @Schema(description = "是否默认选择,委托时是否默认选择；1-是，0-否", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否默认选择,委托时是否默认选择；1-是，0-否不能为空")
    private Integer isDefaultPick;

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

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

    //==================================扩展字段====================================

    @Schema(description = "检测项名称")
    private Long dictionaryProjectName;

    @Schema(description = "数据类型")
    private String dataTypeName;

    @Schema(description = "检测分类名称")
    private String assayCategoryName;
}