|
|
|
@ -248,9 +248,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
|
|
|
|
// 3. 构建WmsOrderTask对象 - rqrq |
|
|
|
WmsOrderTask task = new WmsOrderTask(); |
|
|
|
task.setSite(item.getSite()); |
|
|
|
task.setPalletId(palletId); |
|
|
|
task.setTaskNo(transData.getNewTransNo()); |
|
|
|
// rqrq - 所有字符串字段赋值时trim去除空格,防止WCS接口识别失败 |
|
|
|
task.setSite(item.getSite() != null ? item.getSite().trim() : null); |
|
|
|
task.setPalletId(palletId != null ? palletId.trim() : null); |
|
|
|
task.setTaskNo(transData.getNewTransNo() != null ? transData.getNewTransNo().trim() : null); |
|
|
|
task.setItemNo(1); |
|
|
|
if(item.getAgvFlag()!=null&&item.getAgvFlag().equals("Y")){ |
|
|
|
task.setSourceType("立库取货"); |
|
|
|
@ -259,10 +260,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
} |
|
|
|
task.setSourceBillNo(""); |
|
|
|
task.setSourceLineId(0L); |
|
|
|
task.setPartNo(item.getPartNo()); |
|
|
|
task.setPartNo(item.getPartNo() != null ? item.getPartNo().trim() : null); |
|
|
|
task.setQty(item.getQty()); |
|
|
|
task.setBatchNo(item.getBatchNo()); |
|
|
|
task.setSerialNo(item.getSerialNo()); |
|
|
|
task.setBatchNo(item.getBatchNo() != null ? item.getBatchNo().trim() : null); |
|
|
|
task.setSerialNo(item.getSerialNo() != null ? item.getSerialNo().trim() : null); |
|
|
|
task.setFromLocation(""); |
|
|
|
task.setToLocation(""); |
|
|
|
task.setPriority(0); |
|
|
|
@ -1086,16 +1087,17 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
}else{ |
|
|
|
inData.setPartType(PartTypeEnum.fromCode(3)); |
|
|
|
} |
|
|
|
inData.setSite(site); |
|
|
|
inData.setTaskNo(taskNo); |
|
|
|
// rqrq - 所有字符串字段赋值时trim去除空格,防止WCS接口识别失败 |
|
|
|
inData.setSite(site != null ? site.trim() : null); |
|
|
|
inData.setTaskNo(taskNo != null ? taskNo.trim() : null); |
|
|
|
inData.setItemNo(itemNo); |
|
|
|
inData.setPalletBarcode(palletId); |
|
|
|
inData.setPalletBarcode(palletId != null ? palletId.trim() : null); |
|
|
|
inData.setPalletType(wcsPalletType); |
|
|
|
inData.setBasePalletType(wcsBasePalletType); |
|
|
|
inData.setCommonUsed(hasCommonlyUsed); |
|
|
|
inData.setAutoSort(isAutoSort); |
|
|
|
inData.setSoreType(soreType); |
|
|
|
inData.setAssemblyPosition(locationCode); |
|
|
|
inData.setAssemblyPosition(locationCode != null ? locationCode.trim() : null); |
|
|
|
inData.setEndFlag(boFlag); |
|
|
|
//明细根据点位拆分 |
|
|
|
Map<String, List<PalletDetailData>> groupedHUs = newDetail.stream() |
|
|
|
@ -1145,7 +1147,8 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
//每个点位多个物料 |
|
|
|
for (int i = 0; i <groupHUs.size() ; i++) { |
|
|
|
PalletStationDetailVo saveVo=new PalletStationDetailVo(); |
|
|
|
saveVo.setSku(groupHUs.get(i).getPartNo()); |
|
|
|
// rqrq - 字符串字段trim去除空格 |
|
|
|
saveVo.setSku(groupHUs.get(i).getPartNo() != null ? groupHUs.get(i).getPartNo().trim() : null); |
|
|
|
String partDesc = groupHUs.get(i).getPartDesc(); |
|
|
|
String materialName = (partDesc != null) ? |
|
|
|
(partDesc.length() > 70 ? partDesc.substring(0, 70) : partDesc) |
|
|
|
@ -2195,16 +2198,17 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
inData.setPartType(PartTypeEnum.fromCode(3)); |
|
|
|
} |
|
|
|
inData.setCount(count); |
|
|
|
inData.setSite(site); |
|
|
|
inData.setTaskNo(taskNo); |
|
|
|
// rqrq - 所有字符串字段赋值时trim去除空格,防止WCS接口识别失败 |
|
|
|
inData.setSite(site != null ? site.trim() : null); |
|
|
|
inData.setTaskNo(taskNo != null ? taskNo.trim() : null); |
|
|
|
inData.setItemNo(itemNo); |
|
|
|
inData.setPalletBarcode(palletId); |
|
|
|
inData.setPalletBarcode(palletId != null ? palletId.trim() : null); |
|
|
|
inData.setPalletType(wcsPalletType); |
|
|
|
inData.setBasePalletType(wcsBasePalletType); |
|
|
|
inData.setCommonUsed(false); // 空托盘没有常用料标记 - rqrq |
|
|
|
inData.setAutoSort(isAutoSort); |
|
|
|
inData.setSoreType(soreType); |
|
|
|
inData.setAssemblyPosition(locationCode); |
|
|
|
inData.setAssemblyPosition(locationCode != null ? locationCode.trim() : null); |
|
|
|
inData.setEndFlag(true); // 空托盘直接结束组盘 - rqrq |
|
|
|
inData.setCargoInfos(new ArrayList<>()); // 空托盘没有货物信息,传null - rqrq |
|
|
|
|
|
|
|
@ -2315,8 +2319,9 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
|
|
|
|
System.out.println("已更新栈板calling_flag为N - rqrq"); |
|
|
|
SpecialPalletTask pushData= new SpecialPalletTask(); |
|
|
|
pushData.setPalletBarcode(palletId); |
|
|
|
pushData.setSite(site); |
|
|
|
// rqrq - 所有字符串字段赋值时trim去除空格,防止WCS接口识别失败 |
|
|
|
pushData.setPalletBarcode(palletId != null ? palletId.trim() : null); |
|
|
|
pushData.setSite(site != null ? site.trim() : null); |
|
|
|
pushData.setOperationType(1); |
|
|
|
wcsApiService.SpecialPalletTask(pushData); |
|
|
|
System.out.println("取消WCS组盘完成 - rqrq"); |
|
|
|
|