package cn.iocoder.yudao.module.pms.controller.admin.iotdevicematerial.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;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - PMS 设备BOM物料关联 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotDeviceMaterialRespVO {

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

    @Schema(description = "所属设备分类", example = "739")
    @ExcelProperty("所属设备分类")
    private Long deviceCategoryId;

    @Schema(description = "所属设备", example = "10736")
    @ExcelProperty("所属设备")
    private Long deviceId;

    @Schema(description = "设备BOM节点名称", example = "芋艿")
    @ExcelProperty("设备BOM节点名称")
    private String name;

    @Schema(description = "设备BOM节点id", example = "24906")
    @ExcelProperty("设备BOM节点id")
    private Long bomNodeId;

    @Schema(description = "设备BOM节点编码")
    @ExcelProperty("设备BOM节点编码")
    private String code;

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

    @Schema(description = "数量")
    @ExcelProperty("数量")
    private BigDecimal quantity;

    @Schema(description = "状态 0启用  1停用", example = "2")
    @ExcelProperty("状态 0启用  1停用")
    private Integer status;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

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

    /**
     * 扩展字段
     */
    @Schema(description = "单位", example = "PC")
    private String unit;

    @Schema(description = "库存数量")
    private BigDecimal stockQuantity;

    @Schema(description = "单价")
    private BigDecimal unitPrice;

    @Schema(description = "工厂id", example = "27947")
    private Long factoryId;

    @Schema(description = "工厂名称", example = "瑞恒兴域")
    private String factory;

    @Schema(description = "成本中心id", example = "27947")
    private Long costCenterId;

    @Schema(description = "成本中心名称", example = "新疆科瑞-制氮-华北-HY-E1")
    private String costCenter;

    @Schema(description = "库存地点id", example = "27947")
    private Long storageLocationId;

    @Schema(description = "库存地点名称", example = "华中项目部库")
    private String storageLocation;

    @Schema(description = "物料类型", example = "本地库存 SAP库存 SAP主数据 手动添加")
    private String materialSource;

}