From f2631e786cc1c939e0a0698eadee76fd3d9a1fa9 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期五, 10 一月 2025 16:39:41 +0800
Subject: [PATCH] #

---
 zy-acs-manager/src/main/java/com/zy/acs/manager/fake/AgvSimulatorTask.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/fake/AgvSimulatorTask.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/fake/AgvSimulatorTask.java
index 5d8013b..874926c 100644
--- a/zy-acs-manager/src/main/java/com/zy/acs/manager/fake/AgvSimulatorTask.java
+++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/fake/AgvSimulatorTask.java
@@ -6,6 +6,7 @@
 import com.zy.acs.common.enums.AgvCompleteType;
 import com.zy.acs.common.utils.RedisSupport;
 import com.zy.acs.manager.core.scheduler.MapDataWsScheduler;
+import com.zy.acs.manager.core.service.MainService;
 import com.zy.acs.manager.core.service.MapService;
 import com.zy.acs.manager.manager.entity.Action;
 import com.zy.acs.manager.manager.entity.Agv;
@@ -34,6 +35,7 @@
     private final CodeService codeService;
     private final MapService mapService;
     private final JamService jamService;
+    private final MainService mainService;
     private final List<Action> actionList;
 
     private final RedisSupport redis;
@@ -48,6 +50,7 @@
             , CodeService codeService
             , MapService mapService
             , JamService jamService
+            , MainService mainService
             , List<Action> actionList
     ) {
         this.agv = agv;
@@ -57,6 +60,7 @@
         this.codeService = codeService;
         this.mapService = mapService;
         this.jamService = jamService;
+        this.mainService = mainService;
         this.actionList = actionList;
 
         this.groupId = actionList.get(0).getGroupId();
@@ -149,6 +153,7 @@
         agv_11_up.setQrCode(qrCode);
 
         AgvProtocol agvProtocol = AgvProtocol.build(this.agv.getUuid()).setMessageBody(agv_11_up);
-        redis.push(RedisConstant.AGV_COMPLETE_FLAG, agvProtocol);
+        mainService.upDataSubscribe(agvProtocol);
+//        redis.push(RedisConstant.AGV_COMPLETE_FLAG, agvProtocol);
     }
 }

--
Gitblit v1.9.1