From 58d7b0e12ccd92cf3934f6582b51b5fbcecaa39a Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 09 五月 2024 09:42:41 +0800
Subject: [PATCH] 修改注入方式

---
 springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
index 237d034..ffe97fa 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -62,10 +62,12 @@
     // b.put()
     @Override
     public void run() {
+                
         while (this != null) {
             Short zhi = 0;
             JSONObject jsonObject = new JSONObject();
             jsonObject.append("feedglassid", feedglassid);
+            
             try {
                 Thread.sleep(1000);
                 // 娉ㄥ叆mapper
@@ -203,10 +205,10 @@
                             e.printStackTrace();
                         }
                         Short send;
-                        if (position.equals("0")) {
-                            send = 2;
-                        } else {
+                        if (position.equals("1")) {
                             send = 1;
+                        } else {
+                            send = 2;
                         }
                         if (J01id != null) {
                             int barcodeState = spianMapper.SelectOverState(J01id);// 鑾峰彇璇ラ摑妗嗙殑鐘舵��

--
Gitblit v1.8.0