#
luxiaotao1123
2025-01-08 c83b3ad4e7d3fc8da48eafcd45dd46de0262f138
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java
@@ -520,7 +520,7 @@
                    }
                    break;
                case MOVE:
                    endCode = codeService.selectByData(destination);
                    endCode = codeService.getCacheByData(destination);
                    break;
                default:
                    return false;
@@ -669,7 +669,6 @@
            }
            boolean first = true;
            long startTime = System.currentTimeMillis();
            for (Segment segment : segmentList) {
                // 分段所属的Task
@@ -690,7 +689,7 @@
                        String next = pathListPart.get(i);
                        Code nextCode = codeService.selectByData(next);
                        Code nextCode = codeService.getCacheByData(next);
                        Double nextDirection = mapService.calculateDirection(lastCode, nextCode, angleOffsetVal);
                        boolean reverse = false;
@@ -968,7 +967,6 @@
                }
            }
            System.out.println("save data: " + (System.currentTimeMillis() - startTime));
            // finish
            actionList.add(new Action(
@@ -1021,7 +1019,7 @@
                }
            }
            log.info(agvNo + "号Agv动作组装完成,指令数量:" + newActionList.size());
            log.info("{}号Agv动作组装完成,指令数量:{}", agvNo, newActionList.size());
        } catch (Exception e) {
            log.error("mainService.generateAction", e);
            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();