Browse Source

优化采集控制逻辑

prod_202403
mh 11 months ago
parent
commit
d3d970768a
  1. 4
      user-service/src/main/java/com/mh/user/job/DealDataJob.java

4
user-service/src/main/java/com/mh/user/job/DealDataJob.java

@ -78,7 +78,7 @@ public class DealDataJob {
Constant.FLAG = true; Constant.FLAG = true;
log.info("------Constant.WEB_FLAG==" + false + "------"); log.info("------Constant.WEB_FLAG==" + false + "------");
for (int i = 1; i <= 4; i++) { for (int i = 1; i <= 4; i++) {
if (!Constant.WEB_FLAG) { if (Constant.WEB_FLAG) {
break; break;
} }
String threadName; String threadName;
@ -94,7 +94,7 @@ public class DealDataJob {
} }
CountDownLatch countDownLatch = new CountDownLatch(10); CountDownLatch countDownLatch = new CountDownLatch(10);
for (int j = 1; j < 11; j++) { for (int j = 1; j < 11; j++) {
if (!Constant.WEB_FLAG) { if (Constant.WEB_FLAG) {
break; break;
} }
SerialPortThread myThread = new SerialPortThread(); SerialPortThread myThread = new SerialPortThread();

Loading…
Cancel
Save