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

@Schema(description = "管理后台 - PMS 功能优化 物料 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotMaterialRespVO {

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

    @Schema(description = "物料组id", example = "14786")
    @ExcelProperty("物料组id")
    private Long materialGroupId;

    @Schema(description = "物料组名称", example = "pms")
    private String materialGroupName;

    @Schema(description = "BOM叶子节点", example = "10893")
    @ExcelProperty("BOM叶子节点")
    private Long bomId;

    @Schema(description = "物料类型 ROH原材料 FERT成品 HALB半成品", example = "1")
    @ExcelProperty("物料类型 ROH原材料 FERT成品 HALB半成品")
    private String type;

    @Schema(description = "物料编码")
    @ExcelProperty("物料编码")
    private String code;

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

    @Schema(description = "规格型号")
    @ExcelProperty("规格型号")
    private String model;

    @Schema(description = "单位 字典表")
    @ExcelProperty("单位 字典表")
    private String unit;

    @Schema(description = "SAP系统中的物料唯一编号")
    @ExcelProperty("SAP系统中的物料唯一编号")
    private String sapCode;

    @Schema(description = "同步状态 0未同步 1同步成功 2同步失败", example = "2")
    @ExcelProperty("同步状态 0未同步 1同步成功 2同步失败")
    private Integer syncStatus;

    @Schema(description = "最后一次同步时间")
    @ExcelProperty("最后一次同步时间")
    private LocalDateTime syncTime;

    @Schema(description = "同步失败时的错误信息")
    @ExcelProperty("同步失败时的错误信息")
    private String syncError;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @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 = "12345")
    @ExcelProperty("数量")
    private String quantity;

}