From bb6bc1f4030cf813e128f021ccecd42420f35628 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 06 六月 2025 13:38:10 +0800
Subject: [PATCH] *
---
src/main/java/com/zy/core/MainProcess.java | 38 ++++++++++++++++++++++++++------------
1 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index c43a005..674ed7a 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -10,6 +10,7 @@
import javax.annotation.PreDestroy;
import java.util.ArrayList;
+import java.util.Date;
/**
* WCS涓绘祦绋�
@@ -29,33 +30,46 @@
private int j = 0;
private int k = 0;
private int l = 0;
+ private int[] autoZ = new int[]{0,0,0,0,0,0,0};
/**
* =====>> 寮�濮嬪伐浣�
*/
public void start(){
thread = new Thread(() -> {
+ try{
+ Thread.sleep(200);
+ log.info("++++++++ 寮�濮嬮獙璇佽鍙瘉 ++++++++");
+ if (!mainService.licenseVerify()){
+ SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
+ log.info("++++++++ 楠岃瘉璁稿彲璇佸け璐� ++++++++");
+ } else {
+ SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE);
+ log.info("++++++++ 楠岃瘉璁稿彲璇佹垚鍔� ++++++++");
+ }
+ } catch (Exception e) {}
while (!Thread.currentThread().isInterrupted()) {
try {
- i++; if (i>5) i=0;
- j++; if (j>5) j=0;
- k++;
- if (k>13) {
- k=0;
- l++;
- if (l>3) l=0;
- }
-
-
// 闂撮殧
- Thread.sleep(1000);
+ Thread.sleep(200);
+ System.out.println("寮�濮嬶細"+new Date().getTime());
// 绯荤粺杩愯鐘舵�佸垽鏂�
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
}
- /************************************JAR璋冨害************************************/
+ //鏇存柊浣嶇疆淇℃伅
+ mainService.updateStePositionNearby();
+ //鏇存柊浣嶇疆淇℃伅
+ mainService.updateStePosition();
+ // 浠诲姟涓嬪彂
+ mainService.DevpTaskNoRun();
+ // 浠诲姟瀹屾垚
+ mainService.rgvCompleteWrkMastSta(autoZ);
+ //鏇存柊浣嶇疆淇℃伅
+ mainService.updateStePosition();
+ System.out.println("缁撴潫锛�"+new Date().getTime());
} catch (Exception e) {
--
Gitblit v1.9.1