From 04adb88a2ed54cdf4c2958c79972c30109b9b5b6 Mon Sep 17 00:00:00 2001
From: wang <3597712270@qq.com>
Date: 星期四, 28 三月 2024 16:54:56 +0800
Subject: [PATCH] 内容调整

---
 UnLoadGlassModule/src/main/java/com/mes/config/AppRunnerConfig.java |   56 ++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 42 insertions(+), 14 deletions(-)

diff --git a/UnLoadGlassModule/src/main/java/com/mes/config/AppRunnerConfig.java b/UnLoadGlassModule/src/main/java/com/mes/config/AppRunnerConfig.java
index f6ecf3f..ab753f3 100644
--- a/UnLoadGlassModule/src/main/java/com/mes/config/AppRunnerConfig.java
+++ b/UnLoadGlassModule/src/main/java/com/mes/config/AppRunnerConfig.java
@@ -1,23 +1,51 @@
 package com.mes.config;
 
-import com.mes.service.Plcaction;
-import com.mes.service.DownGlassInfoService;
-import org.springframework.context.ApplicationListener;
-import org.springframework.context.event.ContextRefreshedEvent;
+import com.mes.service.PLCAutoMes;
+import com.mes.service.Plchome;
+import org.springframework.boot.ApplicationArguments;
+import org.springframework.boot.ApplicationRunner;
+import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Component;
 
 @Component
-class AppStartup implements ApplicationListener<ContextRefreshedEvent> {
+@Order(1)
 
-    private final DownGlassInfoService downGlassInfoService;
-
-    public AppStartup(DownGlassInfoService downGlassInfoService) {
-        this.downGlassInfoService = downGlassInfoService;
-    }
+public class AppRunnerConfig implements ApplicationRunner {
 
     @Override
-    public void onApplicationEvent(ContextRefreshedEvent event) {
-        Plcaction.setDownGlassInfoService(downGlassInfoService);
-        new Plcaction().start();
+    public void run(ApplicationArguments args) throws Exception {
+        // TODO Auto-generated method stub
+        //
+        System.out.println("鍚姩瀹屾垚");
+
+
+
+
+        //  new PlcHold().start();
+       new PLCAutoMes().start();
+
+    new Plchome().start();
+        //  new PlcLayout().start();
+        //  new Plcalarm().start();
+
+        //  new Plcsign().start();
+
+        //  new Plcstate().start();
+        //  new PlcPositioning1().start();
+
+        //  new PlcParameter2().start();
+        //  new PLCAutomaticParameterSetting().start();
+
+        //  new PlcManualonePosition().start();
+        //  new PlcManualonePosition2().start();
+        //  new PlcServoManualone().start();
+        //  new PLCManualJog().start();
+        //  new Plclog().start();
+
+        //  new PlcInteractionState().start();
+        //new PlcParameter1Review().start();
+        //new PLCAutomaticParameterSettingReview2().start();
+
+    // new PLCManualJogReview().start();
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0