Commit 8e570910 LN

科博达获取库位号bug修改

1 个父辈 d17f8be5
......@@ -94,7 +94,7 @@ public class KebodaController {
String okMsg = "";
String errorMsg = "";
List<String> needRemoveReelLockPosIdList = new ArrayList<>();
// List<String> needRemoveReelLockPosIdList = new ArrayList<>();
if (Strings.isNullOrEmpty(cids)) {
resultMap.put("result", "101");
......@@ -171,7 +171,13 @@ public class KebodaController {
StoragePos pos = null;
int loopCount=0;
while (pos == null){
loopCount++;
if(loopCount>=10 ){
log.info(barcode.getBarcode()+"已循环查找10次 直接跳出循环");
}
pos = taskService.findEmptyPosForPutIn(storageList, barcode, rfid, lastPosId);
if (pos == null){
break;
......@@ -186,14 +192,16 @@ public class KebodaController {
StoragePos storagePos = storagePosManager.getByPosName(posName);
if (storagePos != null){
if (storagePos.getBarcode() != null){
log.info(posName+"有物料信息,重新查找库位");
log.info(posName+"有物料信息,重新查找库位,清除条码["+barcode.getBarcode()+"]锁定库位");
ReelLockPosUtil.removeReelLockPosInfo(barcode.getBarcode());
ReelLockPosInfo reelLocInfo = new ReelLockPosInfo();
reelLocInfo.setBarcode(pos.getId());
reelLocInfo.setCid(dataCache.getStorageById(pos.getStorageId()).getCid());
reelLocInfo.setLockPosName(pos.getPosName());
reelLocInfo.setLockPosId(pos.getId());
ReelLockPosUtil.addReelLockPosInfo(reelLocInfo,cidList);
needRemoveReelLockPosIdList.add(pos.getId());
// needRemoveReelLockPosIdList.add(pos.getId());
pos = null;
}
}
......@@ -309,11 +317,11 @@ public class KebodaController {
DeviceMessageUtil.lastLineMsg = null;
}
if (needRemoveReelLockPosIdList != null && !needRemoveReelLockPosIdList.isEmpty()) {
for (String posId : needRemoveReelLockPosIdList) {
ReelLockPosUtil.removeReelLockPosInfo(posId);
}
}
// if (needRemoveReelLockPosIdList != null && !needRemoveReelLockPosIdList.isEmpty()) {
// for (String posId : needRemoveReelLockPosIdList) {
// ReelLockPosUtil.removeReelLockPosInfo(posId);
// }
// }
return resultMap;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!