package com.zy.asrs.entity.param;
|
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* MES调拨参数
|
*/
|
@Data
|
public class MesOrderReportParam {
|
//编码
|
private String code;
|
//备注
|
private String remark;
|
private List<TransferOrderItem> transferOrderItems;
|
private RecordCustomFieldBaseCO recordCustomFieldBaseCO;
|
|
@Data
|
public static class RecordCustomFieldBaseCO{
|
private List<CustomField> customFields;
|
|
@Data
|
public static class CustomField{
|
private String fieldCode;
|
private String fieldValue;
|
|
public CustomField(String fieldCode, String fieldValue) {
|
this.fieldCode = fieldCode;
|
this.fieldValue = fieldValue;
|
}
|
}
|
}
|
|
@Data
|
public static class TransferOrderItem{
|
|
//行备注 单据号
|
private String remark;
|
//接收仓位
|
private String targetLocationCode;
|
|
private List<InventoryDetail> inventoryDetails;
|
|
|
@Data
|
public static class InventoryDetail{
|
private Amount amount;
|
private BizKey bizKey;
|
//发出仓位
|
private String locationCode;
|
//物料编码
|
private String materialCode;
|
//质量状态
|
private Integer qcStatus;
|
//仓储状态
|
private Integer storageStatus;
|
//版本号,默认为null
|
private String version;
|
|
@Data
|
public static class Amount{
|
//数量
|
private Double amount;
|
//单位编码
|
private String unitCode;
|
//单位名称 二选一
|
private String unitName;
|
|
public Amount(Double amount, String unitName, String unitCode) {
|
this.amount = amount;
|
this.unitCode = unitCode;
|
this.unitName = unitName;
|
}
|
}
|
|
@Data
|
public static class BizKey{
|
//批次
|
private String batchNo;
|
|
public BizKey(String batchNo) {
|
this.batchNo = batchNo;
|
}
|
}
|
}
|
|
}
|
}
|