package cn.iocoder.yudao.module.pms.controller.admin.iotsappickinglist.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 领料单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotSapPickingListRespVO {

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

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

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

    @Schema(description = "工厂(SAP)")
    @ExcelProperty("工厂(SAP)")
    private String factory;

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

    @Schema(description = "成本中心(SAP)")
    @ExcelProperty("成本中心(SAP)")
    private String costCenter;

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

    @Schema(description = "库存地点")
    @ExcelProperty("库存地点")
    private String storageLocation;

    @Schema(description = "领料单号")
    @ExcelProperty("领料单号")
    private String number;

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

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

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

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

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

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

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

    @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 = "1")
    @ExcelProperty("状态 0启用  1停用")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

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

}