package cn.iocoder.yudao.module.pms.controller.admin.iotmaterial.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - PMS 功能优化 物料新增/修改 Request VO")
@Data
public class IotMaterialSaveReqVO {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}