package cn.iocoder.yudao.module.pms.controller.admin.iotsapstocklog.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 SAP 库存(sap同步的原始数据日志) Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotSapStockLogRespVO {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}