自动化立体仓库 - WCS系统
#
Junjie
2023-10-24 925b834a3341dbe9f486964a7ad5d1affd7a404d
src/main/java/com/zy/core/thread/NyShuttleThread.java
@@ -370,6 +370,7 @@
            return false;
        }
        NavigateMapUtils navigateMapUtils = SpringUtils.getBean(NavigateMapUtils.class);
        WrkMastMapper wrkMastMapper = SpringUtils.getBean(WrkMastMapper.class);
        WrkMast wrkMast = wrkMastMapper.selectByWorkNo(wrkNo.intValue());
@@ -388,8 +389,6 @@
        }
        checkIOSta(commands, commandStep);//检测小车是否进出提升机输送站
        NavigateMapData navigateMapData = new NavigateMapData(Utils.getLev(shuttleProtocol.getCurrentLocNo()));
        boolean isLock = false;//是否解锁路径
        //取出命令
@@ -414,7 +413,7 @@
//                        nodes.addAll(command.getNodes());
//                    }
                    if (nodes != null) {
                        boolean result = navigateMapData.writeNavigateNodeToRedisMap(nodes, false);//解锁路径
                        boolean result = navigateMapUtils.writeNavigateNodeToRedisMap(Utils.getLev(shuttleProtocol.getCurrentLocNo()), nodes, false);//解锁路径
                        if (!result) {
                            return false;//解锁失败
                        }
@@ -503,7 +502,7 @@
                nodes.addAll(nextNodes);
            }
            if (nodes != null) {
                boolean result = navigateMapData.writeNavigateNodeToRedisMap(nodes, true);//所使用的路径进行锁定禁用
                boolean result = navigateMapUtils.writeNavigateNodeToRedisMap(Utils.getLev(shuttleProtocol.getCurrentLocNo()), nodes, true);//所使用的路径进行锁定禁用
                if (!result) {
                    return false;//路径锁定失败
                }