package com.zt.plat.module.qms.business.config.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 物料检测标准检测项目 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MaterialAssayStandardDetailRespVO {

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

    @Schema(description = "物料检测标准ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3494")
    @ExcelProperty("物料检测标准ID")
    private Long materialAssayStandardId;

    @Schema(description = "检测项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27840")
    @ExcelProperty("检测项目ID")
    private Long dictionaryProjectId;

    @Schema(description = "检测项目编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("检测项目编码")
    private String dictionaryProjectCode;

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

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

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

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

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

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

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

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

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

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

    @Schema(description = "样品大类ID", example = "1394")
    private Long baseSampleId;
    
    @Schema(description = "大类名称")
    private String sampleName;
    
    @Schema(description = "检测项名称")
    private String dictionaryProjectName;

    @Schema(description = "检测项简称")
    private String dictionaryProjectSimpleName;

    @Schema(description = "检测项显示名")
    private String dictionaryProjectShowName;

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

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