From f2f19526ed5ba89a8e3a195d3559a2d74471b0c9 Mon Sep 17 00:00:00 2001
From: lsh <lsh>
Date: 星期四, 16 五月 2024 10:19:07 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/MainProcess.java | 40 +++++++++++++++++++++++-----------------
1 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index 3dbda62..dccc63f 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -1,11 +1,15 @@
package com.zy.core;
+import com.zy.asrs.service.impl.MainServiceImpl;
import com.zy.core.properties.SystemProperties;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PreDestroy;
+import java.util.ArrayList;
/**
* WCS涓绘祦绋�
@@ -16,8 +20,12 @@
@Component
public class MainProcess {
+ @Autowired
+ private MainServiceImpl mainService;
// 鎵�灞炵嚎绋�
private Thread thread;
+ // 棰戠巼
+ private int i = 0;
/**
* =====>> 寮�濮嬪伐浣�
@@ -26,25 +34,23 @@
thread = new Thread(() -> {
while (!Thread.currentThread().isInterrupted()) {
try {
- // 绯荤粺杩愯鐘舵�佸垽鏂�
- if (SystemProperties.WCS_RUNNING_STATUS.get()) {
- continue;
- }
-
-
-
-
-
-
-
-
-
-
-
// 闂撮殧
- Thread.sleep(1500);
- log.info("WCS 宸ヤ綔涓� .....................");
+ Thread.sleep(1000);
+
+ // 绯荤粺杩愯鐘舵�佸垽鏂�
+ if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
+ continue;
+ }
+ // 婕旂ず
+// mainService.getRgvTask();
+// mainService.RGVDemoShow0();
+// mainService.RGVDemoShow1();
+ mainService.RGVDemoShow2();
+ //浠诲姟鐢熸垚
+ mainService.DevpTaskAndPut();
+
+
} catch (Exception e) {
e.printStackTrace();
}
--
Gitblit v1.9.1