Commit b869b98a 张少辉

1.电子仓货架CTU对接

1 个父辈 ab35d3a4
...@@ -246,26 +246,14 @@ public class DualPosNameDeviceController { ...@@ -246,26 +246,14 @@ public class DualPosNameDeviceController {
StoragePos pos = null; StoragePos pos = null;
int loopCount = 0; int loopCount = 0;
List<String> needRemoveLockPosId = new ArrayList<>(); List<String> needRemoveLockPosId = new ArrayList<>();
String endStr = "B";
while (pos == null) { while (pos == null) {
loopCount++; loopCount++;
if (loopCount >= 30) { if (loopCount >= 30) {
log.info(barcode.getBarcode() + "已循环查找30次 直接跳出循环"); log.info(barcode.getBarcode() + "已循环查找30次 直接跳出循环");
break; break;
} }
if (loopCount >= 15) { pos = taskService.dualPosNameFindEmptyPosForPutIn(findNewStorageList, barcode, rfid, lastPosId, barcode.getBarcode(), "");
endStr = "F";
}
pos = taskService.dualPosNameFindEmptyPosForPutIn(findNewStorageList, barcode, rfid, lastPosId, barcode.getBarcode(), endStr);
if (pos == null) {
if ("B".equals(endStr)) {
endStr = "F";
} else {
endStr = "B";
}
pos = taskService.dualPosNameFindEmptyPosForPutIn(findNewStorageList, barcode, rfid, lastPosId, barcode.getBarcode(), endStr);
}
if (pos == null) { if (pos == null) {
break; break;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!