From d2c0bccd2e6dde4cf2a614a67bbf0ed45e2bcbaf Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 29 十一月 2024 13:59:22 +0800
Subject: [PATCH] # 213

---
 src/main/java/com/zy/core/ServerBootstrap.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index 75fd83d..9bb4f6d 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -145,12 +145,12 @@
             SlaveConnection.put(SlaveType.Ste, ste.getId(), steThread);
         }
         // 鍒濆鍖栫绉ょ嚎绋�
-//        log.info("鍒濆鍖栫绉ょ嚎绋�...................................................");
-//        for (Slave scale : slaveProperties.getScale()) {
-//            ScaleThread barcodeThread = new ScaleThread(scale);
-//            new Thread(barcodeThread).start();
-//            SlaveConnection.put(SlaveType.Scale, scale.getId(), barcodeThread);
-//        }
+        log.info("鍒濆鍖栫绉ょ嚎绋�...................................................");
+        for (Slave scale : slaveProperties.getScale()) {
+            ScaleThread barcodeThread = new ScaleThread(scale);
+            new Thread(barcodeThread).start();
+            SlaveConnection.put(SlaveType.Scale, scale.getId(), barcodeThread);
+        }
     }
 
 
@@ -161,7 +161,7 @@
     @Component
     class killThread {
 
-        @Scheduled(cron = "0/3 * * * * ? ")
+//        @Scheduled(cron = "0/3 * * * * ? ")
         public void kill() {
             for (Map.Entry<CrnThread, Thread> entry : map.entrySet()) {
                 CRN_COUNT++;

--
Gitblit v1.9.1