Commit 97b34ee2 zshaohui

1.工单计算时,使用最新的库位信息

1 个父辈 e97c84e0
...@@ -1042,25 +1042,31 @@ public class LiteOrderCache { ...@@ -1042,25 +1042,31 @@ public class LiteOrderCache {
if (pos != null) { if (pos != null) {
break; break;
} }
Storage storage = dataCache.getStorageById(storagePos.getStorageId());
if (storage == null){
continue;
}
Barcode posBarcode = storagePos.getBarcode(); Barcode posBarcode = storagePos.getBarcode();
if (posBarcode == null){ if (posBarcode == null){
continue; continue;
} }
if (storagePos.getStorageId().equals(storageId)) { StoragePos newPos = storagePosManager.getByBarcode(posBarcode.getBarcode());
Barcode barcode = storagePos.getBarcode(); if (newPos == null){
continue;
}
Storage storage = dataCache.getStorageById(newPos.getStorageId());
if (storage == null){
continue;
}
if (newPos.getStorageId().equals(storageId)) {
Barcode barcode = newPos.getBarcode();
if (barcode == null){ if (barcode == null){
continue; continue;
} }
if (!storagePos.isEnabled()){ if (!newPos.isEnabled()){
continue; continue;
} }
Collection<String> excludeOutPosIds = excludeOutPosIds(); Collection<String> excludeOutPosIds = excludeOutPosIds();
if (excludeOutPosIds.contains(storagePos.getId())){ if (excludeOutPosIds.contains(newPos.getId())){
continue; continue;
} }
boolean hasTask = false; boolean hasTask = false;
...@@ -1080,7 +1086,7 @@ public class LiteOrderCache { ...@@ -1080,7 +1086,7 @@ public class LiteOrderCache {
if (hasTask){ if (hasTask){
continue; continue;
} }
pos = storagePos; pos = newPos;
} }
} }
if (pos != null) { if (pos != null) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!