package com.zt.plat.module.erp.controller.admin.erp.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - ERP物料清单(BOM) Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpBomRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31348")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("工厂编码")
    private String factoryNumber;

    @Schema(description = "顶层物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("顶层物料编码")
    private String upMaterial;

    @Schema(description = "可选BOM", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("可选BOM")
    private String useItem;

    @Schema(description = "物料描述")
    @ExcelProperty("物料描述")
    private String materialDescription;

    @Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("基本数量")
    private BigDecimal quantity;

    @Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("基本单位")
    private String unit;

}