From e8e24655f90134400f6a90c507f13eb91d3813de Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期四, 25 十二月 2025 15:11:13 +0800
Subject: [PATCH] *
---
src/main/java/com/zy/core/MainProcess.java | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index 75f8e79..5251183 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -23,9 +23,9 @@
// 鎵�灞炵嚎绋�
private Thread thread;
private Thread thread2;
- private Thread thread3;
- private Thread thread4;
- private Thread thread5;
+// private Thread thread3;
+// private Thread thread4;
+// private Thread thread5;
/**
* =====>> 寮�濮嬪伐浣�
@@ -37,21 +37,21 @@
thread2 = new Thread(this::crnAndDevOtherRun);
thread2.start();
- thread5 = new Thread(this::demoRun5);
- thread5.start();
-
- thread3 = new Thread(this::demoRun);
- thread3.start();
-
- thread4 = new Thread(this::demoOpenRun);
- thread4.start();
+// thread5 = new Thread(this::demoRun5);
+// thread5.start();
+//
+// thread3 = new Thread(this::demoRun);
+// thread3.start();
+//
+// thread4 = new Thread(this::demoOpenRun);
+// thread4.start();
}
private void crnAndDevRun() {
while (!Thread.currentThread().isInterrupted()) {
try {
// 闂撮殧
- Thread.sleep(1000);
+ Thread.sleep(500);
// 绯荤粺杩愯鐘舵�佸垽鏂�
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
@@ -82,7 +82,7 @@
while (!Thread.currentThread().isInterrupted()) {
try {
// 闂撮殧
- Thread.sleep(400);
+ Thread.sleep(210);
// 绯荤粺杩愯鐘舵�佸垽鏂�
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
@@ -111,7 +111,7 @@
while (!Thread.currentThread().isInterrupted()) {
try {
// 闂撮殧
- Thread.sleep(1000);
+ Thread.sleep(210);
// 绯荤粺杩愯鐘舵�佸垽鏂�
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
@@ -136,7 +136,7 @@
while (!Thread.currentThread().isInterrupted()) {
try {
// 闂撮殧
- Thread.sleep(200);
+ Thread.sleep(100);
// 绯荤粺杩愯鐘舵�佸垽鏂�
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
@@ -161,12 +161,12 @@
while (!Thread.currentThread().isInterrupted()) {
try {
// 闂撮殧
- Thread.sleep(1000);
+ Thread.sleep(50);
// 绯荤粺婕旂ず妯″紡杩愯鐘舵�佸彉鍖�
if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 2) {
int signHpMk = mainService.crnStnDEMOStop2();
- if (signHpMk != 2) {
+ if (signHpMk == 0) {
SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 3;
}
} else if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 3) {
@@ -175,7 +175,7 @@
if (signHpMk && signHpMk2==0) {
SystemProperties.WCS_RUNNING_STATUS_DEMO.set(false);
SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 0;
- } else if (!signHpMk && signHpMk2==2) {
+ } else if (!signHpMk && signHpMk2 != 0) {
SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 2;
}
}
@@ -213,9 +213,9 @@
public void shutDown() {
if (thread != null) thread.interrupt();
if (thread2 != null) thread2.interrupt();
- if (thread3 != null) thread3.interrupt();
- if (thread4 != null) thread4.interrupt();
- if (thread5 != null) thread5.interrupt();
+// if (thread3 != null) thread3.interrupt();
+// if (thread4 != null) thread4.interrupt();
+// if (thread5 != null) thread5.interrupt();
}
}
--
Gitblit v1.9.1