From e3524343be955ba20d10c6e9fd3f46765e6fb9b3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 25 十月 2024 15:40:05 +0800
Subject: [PATCH] #

---
 zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java     |    7 ++++---
 zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/AllocateService.java |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MissionAssignService.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/AllocateService.java
similarity index 99%
rename from zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MissionAssignService.java
rename to zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/AllocateService.java
index cc5973b..3ec330b 100644
--- a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MissionAssignService.java
+++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/AllocateService.java
@@ -25,7 +25,7 @@
  */
 @Slf4j
 @Service
-public class MissionAssignService {
+public class AllocateService {
 
     @Autowired
     private AgvService agvService;
diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java
index 8da6ca8..c35cd65 100644
--- a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java
+++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java
@@ -67,6 +67,8 @@
     @Autowired
     private ValidService validService;
     @Autowired
+    private AllocateService allocateService;
+    @Autowired
     private CodeService codeService;
     @Autowired
     private MapService mapService;
@@ -88,8 +90,7 @@
     private TrafficService trafficService;
     @Autowired
     private AgvModelService agvModelService;
-    @Autowired
-    private MissionAssignService missionAssignService;
+
 
     @SuppressWarnings("all")
     @Transactional
@@ -214,7 +215,7 @@
 
             List<Long> taskIds = taskList.stream().map(Task::getId).distinct().collect(Collectors.toList());
             for (Task task : taskList) {
-                Agv agv = missionAssignService.execute(task);
+                Agv agv = allocateService.execute(task);
                 if (null == agv) {
                     log.warn("Task[{}] has an issue锛� because it failed to checkout agv which is idle...", task.getSeqNum());
                     continue;

--
Gitblit v1.9.1