From b63790fa580ea78777f16bff6bc79373d675dd10 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期四, 21 八月 2025 16:50:47 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/utils/NavigateMapData.java | 71 -----------------------------------
1 files changed, 0 insertions(+), 71 deletions(-)
diff --git a/src/main/java/com/zy/common/utils/NavigateMapData.java b/src/main/java/com/zy/common/utils/NavigateMapData.java
index 8deec59..1c7f453 100644
--- a/src/main/java/com/zy/common/utils/NavigateMapData.java
+++ b/src/main/java/com/zy/common/utils/NavigateMapData.java
@@ -444,77 +444,6 @@
lists.set(row, list);
}
}
-
-// HashMap<String, Integer> deviceMap = trafficControlThread.getDeviceMap();
-// if(deviceMap == null) {
-// throw new CoolException("get traffic control device map error");
-// }
-//
-// for (Map.Entry<String, Integer> entry : deviceMap.entrySet()) {
-// String key = entry.getKey();
-// Integer shuttleNo = entry.getValue();
-// if (shuttleNo <= 0) {
-// continue;
-// }
-//
-// Object object = redisUtil.get(RedisKeyType.SHUTTLE_FLAG.key + shuttleNo);
-// if (object == null) {
-// continue;
-// }
-//
-// int taskNo = Integer.parseInt(String.valueOf(object));
-//
-// Object obj = redisUtil.get(RedisKeyType.SHUTTLE_WORK_FLAG.key + taskNo);
-// if (obj == null) {
-// continue;
-// }
-//
-// ShuttleRedisCommand redisCommand = null;
-// try {
-// redisCommand = objectMapper.readValue(String.valueOf(obj), ShuttleRedisCommand.class);
-// } catch (IOException e) {
-// throw new RuntimeException(e);
-// }
-//
-// if (redisCommand == null) {
-// continue;
-// }
-//
-// ShuttleAssignCommand assignCommand = redisCommand.getAssignCommand();
-// List<ShuttleCommand> commands = assignCommand.getCommands();
-//
-// List<NavigateNode> controlLocList = new ArrayList<>();
-// for (ShuttleCommand command : commands) {
-// if (command.getComplete()) {
-// continue;
-// }
-//
-// if (command.getMode() == ShuttleCommandModeType.MOVE.id) {
-// List<NavigateNode> nodes = command.getNodes();
-// for (NavigateNode node : nodes) {
-// if(!controlLocList.contains(node)) {
-// controlLocList.add(node);
-// }
-// }
-// }
-// }
-//
-// for (NavigateNode node : controlLocList) {
-// int row = node.getX();
-// int bay = node.getY();
-//
-// List<MapNode> list = lists.get(row);
-// MapNode mapNode = list.get(bay);
-//
-// //鑺傜偣璁剧疆鎴怐isable
-// mapNode.setValue(MapNodeType.DISABLE.id);
-//
-// //鏇存柊list
-// list.set(bay, mapNode);
-// lists.set(row, list);
-// }
-//
-// }
} catch (Exception e) {
e.printStackTrace();
}
--
Gitblit v1.9.1