Commit a88d9388 hc

fix:agvBox根据料箱条码获取目的地信息接口重复生成任务的修改

1 个父辈 58fa5821
...@@ -213,6 +213,14 @@ public class AgvBoxDeviceClientController { ...@@ -213,6 +213,14 @@ public class AgvBoxDeviceClientController {
storageList.add(storage); storageList.add(storage);
} }
List<DataLog> allTasks = taskService.getAllTasks();
for (DataLog task : allTasks) {
if (task.getBarcode().equals(barcode.getBarcode())) {
taskData.put("barcode", barcode.getBarcode());
taskData.put("slotCode",task.getPosName());
return ResultBean.newOkResult(taskData);
}
}
StoragePos pos = taskService.findEmptyPosForPutIn(storageList, barcode, "", ""); StoragePos pos = taskService.findEmptyPosForPutIn(storageList, barcode, "", "");
if (pos != null){ if (pos != null){
Storage storage = dataCache.getStorageById(pos.getStorageId()); Storage storage = dataCache.getStorageById(pos.getStorageId());
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!