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

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

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - PMS SAP 库存(sap同步的原始数据日志)新增/修改 Request VO")
@Data
public class IotSapStockLogSaveReqVO {

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

    @Schema(description = "组织部门id", example = "15891")
    private Long deptId;

    @Schema(description = "sap工厂编号")
    private String factoryCode;

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

    @Schema(description = "工厂(SAP) 专业公司")
    private String factory;

    @Schema(description = "SAP库存地点编码")
    private String storageLocationCode;

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

    @Schema(description = "库存地点 - SAP 部门 项目部级 通用库 项目部库")
    private String projectDepartment;

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

    @Schema(description = "物料名称", example = "赵六")
    private String materialName;

    @Schema(description = "物料组", example = "赵六")
    private String materialGroupName;

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

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

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

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

    @Schema(description = "安全库存")
    private BigDecimal safetyStock;

    @Schema(description = "库区id", example = "16041")
    private Long storageAreaId;

    @Schema(description = "货架id", example = "5170")
    private Long shelvesId;

    @Schema(description = "库位id", example = "32430")
    private Long cargoLocationId;

    @Schema(description = "类型(通用库 项目部库)", example = "2")
    private Integer type;

    @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;

}