From 077c158e71bec14810dcef0815d5d5b6aad8cbf0 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期日, 13 七月 2025 20:18:27 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/impl/NyShuttleThread.java | 34 +++++++++++++++------------------- 1 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java index 68771e5..21832e5 100644 --- a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java +++ b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java @@ -78,6 +78,9 @@ listenInit();//鐩戝惉鍒濆鍖栦簨浠� readStatus(); Thread.sleep(100); + +// //灏忚溅绌洪棽涓旀湁璺戝簱绋嬪簭 +// shuttleAction.moveLoc(deviceConfig.getDeviceNo()); } catch (Exception e) { log.error("ShuttleThread Fail", e); } @@ -110,14 +113,7 @@ //瀛樺湪浠诲姟闇�瑕佹墽琛� boolean result = shuttleAction.executeWork(deviceConfig.getDeviceNo(), taskNo); } - -// //灏忚溅绌洪棽涓旀湁璺戝簱绋嬪簭 -// shuttleAction.moveLoc(deviceConfig.getDeviceNo()); - - //婕旂ず妯″紡 - shuttleAction.demo(deviceConfig.getDeviceNo()); - - Thread.sleep(200); + Thread.sleep(100); } catch (Exception e) { e.printStackTrace(); } @@ -125,17 +121,17 @@ }); executeThread.start(); - //鍏朵粬浠诲姟 - Thread otherThread = new Thread(() -> { - while (true) { - try { - saveLog();//淇濆瓨鏁版嵁 - } catch (Exception e) { - e.printStackTrace(); - } - } - }); - otherThread.start(); +// //鍏朵粬浠诲姟 +// Thread otherThread = new Thread(() -> { +// while (true) { +// try { +// saveLog();//淇濆瓨鏁版嵁 +// } catch (Exception e) { +// e.printStackTrace(); +// } +// } +// }); +// otherThread.start(); } private void saveLog() { -- Gitblit v1.9.1