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

import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static com.zt.plat.module.qms.core.constant.DataTypeConstant.DICT_ANNOTATION_KEY_TYPE_ID;

@Schema(description = "管理后台 - 样品大类管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BaseSampleRespVO {

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

    @Schema(description = "样品大类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("样品大类名称")
    private String name;

    @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16711")
    @ExcelProperty("物料ID")
    private Long materialId;

    @Schema(description = "物料代码")
    @ExcelProperty("物料代码")
    private String materialCode;

    @Schema(description = "物料名称", example = "芋艿")
    @ExcelProperty("物料名称")
    private String materialName;

    @Schema(description = "样品类型_ID,字典表【T_DIC_BSN】结算样、委检样、抽查样", requiredMode = Schema.RequiredMode.REQUIRED, example = "29325")
    @ExcelProperty("样品类型_ID,字典表【T_DIC_BSN】结算样、委检样、抽查样")
    @Dict(dicCode = "sampleType", keyOrID = DICT_ANNOTATION_KEY_TYPE_ID)
    private Long dictionaryBusinessId;

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

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

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

    //===================扩展字段===================
    @Schema(description = "检测标准数量")
    private String assayStandardCount;
}