Commit 5b0c2a26 zshaohui

1.排除虚拟仓 入料机构入库

2.呼叫空箱排除虚拟仓
1 个父辈 9d1d9397
......@@ -430,7 +430,12 @@ public class CDeviceController {
List<DataLog> dataLogList = taskService.getAllTasks();
for (DataLog dataLog : dataLogList) {
if (dataLog.isWait() && dataLog.isCheckOutTask()) {
needSendList.add(dataLog);
//判断是不是虚拟仓
String storageId = dataLog.getStorageId();
Storage storage = dataCache.getStorageById(storageId);
if (storage != null && !storage.isVirtual()){
needSendList.add(dataLog);
}
}
}
......
......@@ -189,6 +189,15 @@ public class BoxHandleUtil {
c.and("barcode.status").is(BARCODE_STATUS.IN_STORE);
c.and("barcode.barcode").in(boxList);
List<String> storageIdList = new ArrayList<>();
for (Storage storage : dataCache.getAllStorage().values()) {
if (!storage.isVirtual()){
storageIdList.add(storage.getId());
}
}
c.and("storageId").in(storageIdList);
if (needBinCodeList != null && !needBinCodeList.isEmpty()) {
List<Criteria> criteriaList = new ArrayList<>();
......@@ -340,8 +349,10 @@ public class BoxHandleUtil {
List<String> cidList = new ArrayList<>();
List<Storage> storageList = new ArrayList<>();
for (Storage storage : dataCache.getAllStorage().values()) {
storageList.add(storage);
cidList.add(storage.getCid());
if (!storage.isVirtual()) {
storageList.add(storage);
cidList.add(storage.getCid());
}
}
pos = taskService.findEmptyPosForPutIn(storageList, boxBarcode, "", "");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!