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.util.*;
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 MaterialAssayStandardRespVO {

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

    @Schema(description = "样品大类ID", example = "1394")
    @ExcelProperty("样品大类ID")
    private Long baseSampleId;

    @Schema(description = "物料ID", example = "32069")
    @ExcelProperty("物料ID")
    private Long materialId;

    @Schema(description = "样品类型ID,字典表：【T_DIC_BSN】", example = "19879")
    @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 List<MaterialAssayStandardDetailRespVO> detailList;

    //=================样品大类属性====================
    @Schema(description = "大类名称")
    @ExcelProperty("大类名称")
    private String sampleName;

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

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


    @Schema(description = "检测项目数量")
    @ExcelProperty("检测项目数量")
    private Long detailCount;

}