|
|
|
@ -428,6 +428,8 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
//初始化的时候用 一开始栈板是没有位置的 按照第一个入栈的标签来给虚拟位置 后期不需要处理 |
|
|
|
if("TEMP".equals(labelWarehouseId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "TEMP"); |
|
|
|
}else if("AS".equals(labelLocationId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Virtual_AS"); |
|
|
|
}else if("W01".equals(labelWarehouseId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "W01"); |
|
|
|
}else if("L01".equals(labelWarehouseId)){ |
|
|
|
@ -436,8 +438,6 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Q01"); |
|
|
|
}else if("W02".equals(labelWarehouseId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "W02"); |
|
|
|
}else if("AS".equals(labelLocationId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Virtual_AS"); |
|
|
|
}else { |
|
|
|
throw new Exception("栈板不在运输点位,无法进行打托操作"); |
|
|
|
} |
|
|
|
@ -1883,7 +1883,6 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
if (palletInfo == null) { |
|
|
|
throw new RuntimeException("栈板不存在"); |
|
|
|
} |
|
|
|
|
|
|
|
// 生成入库任务编号 - rqrq |
|
|
|
TransNoControl transData = transNoService.getTransNo(site, "WOT", 10); |
|
|
|
Date currentTime = new Date(); |
|
|
|
@ -1941,6 +1940,11 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
scheduleDeliveryTask.setToArea("Z103"); |
|
|
|
scheduleDeliveryTask.setUsername(currentUser.getUsername()); |
|
|
|
autoTaskService.scheduleDeliveryTask(scheduleDeliveryTask); |
|
|
|
}else { |
|
|
|
Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
|
if (pallet.getLocationCode()== null||pallet.getLocationCode().isEmpty()) { |
|
|
|
pallet.setLocationCode("Virtual_AS"); |
|
|
|
} |
|
|
|
} |
|
|
|
// 调用空托盘推送方法(只推送托盘数据,cargoInfos为null)- rqrq |
|
|
|
pushEmptyPalletDetail(site, palletId, orderTask.getTaskNo(), orderTask.getItemNo()); |
|
|
|
|