Commit 0c20753d LN

NLL出库bug修改

1 个父辈 016827b8
...@@ -259,7 +259,7 @@ public class NLLShelfHandler extends BaseDeviceHandler { ...@@ -259,7 +259,7 @@ public class NLLShelfHandler extends BaseDeviceHandler {
Barcode posBarcode = pos.getBarcode(); Barcode posBarcode = pos.getBarcode();
if (posBarcode != null) { if (posBarcode != null) {
List<Barcode> subCodeList = posBarcode.getSubCodeList(); List<Barcode> subCodeList =new ArrayList<>( posBarcode.getSubCodeList());
if (subCodeList != null && !subCodeList.isEmpty()) { if (subCodeList != null && !subCodeList.isEmpty()) {
...@@ -317,7 +317,7 @@ public class NLLShelfHandler extends BaseDeviceHandler { ...@@ -317,7 +317,7 @@ public class NLLShelfHandler extends BaseDeviceHandler {
StoragePos storagePos = storagePosManager.getByPosName(posName); StoragePos storagePos = storagePosManager.getByPosName(posName);
if (storagePos != null) { if (storagePos != null) {
Map<String, Long> collect = new HashMap<>(); Map<String, Long> collect = new HashMap<>();
Map<String, Map<String, Long>> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
Barcode barcode = storagePos.getBarcode(); Barcode barcode = storagePos.getBarcode();
if (barcode != null) { if (barcode != null) {
List<Barcode> subCodeList = barcode.getSubCodeList(); List<Barcode> subCodeList = barcode.getSubCodeList();
...@@ -326,6 +326,11 @@ public class NLLShelfHandler extends BaseDeviceHandler { ...@@ -326,6 +326,11 @@ public class NLLShelfHandler extends BaseDeviceHandler {
resultMap.put(posName, collect); resultMap.put(posName, collect);
} }
} }
if(!resultMap.containsKey(posName)){
Map<String,String> vaMap=new HashMap<>();
vaMap.put("","");
resultMap.put(posName,vaMap );
}
Storage storage = dataCache.getStorageById(storagePos.getStorageId()); Storage storage = dataCache.getStorageById(storagePos.getStorageId());
DevicesStatusUtil.addOp(storage.getCid(), "storagePosInfo", JSON.toJSONString(resultMap)); DevicesStatusUtil.addOp(storage.getCid(), "storagePosInfo", JSON.toJSONString(resultMap));
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!