Browse Source

优化采集控制逻辑

prod_202403
mh 9 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;
log.info("------Constant.WEB_FLAG==" + false + "------");
for (int i = 1; i <= 4; i++) {
if (!Constant.WEB_FLAG) {
if (Constant.WEB_FLAG) {
break;
}
String threadName;
@ -94,7 +94,7 @@ public class DealDataJob {
}
CountDownLatch countDownLatch = new CountDownLatch(10);
for (int j = 1; j < 11; j++) {
if (!Constant.WEB_FLAG) {
if (Constant.WEB_FLAG) {
break;
}
SerialPortThread myThread = new SerialPortThread();

Loading…
Cancel
Save