From 475447f26fc2f4c534236e65f6f947125462d643 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 25 三月 2025 11:59:02 +0800
Subject: [PATCH] #堆垛机写入优化

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 980186a..5680365 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -209,7 +209,10 @@
                 } else {
                     staProtocol = staProtocol.clone();
                 }
-                TaskWrk taskWrk = taskWrkMapper.selectById(staProtocol.getWorkNo());
+                if(staProtocol.getWorkNo() == 0){
+                    continue;
+                }
+                TaskWrk taskWrk = taskWrkMapper.selectStaWorking(Integer.valueOf(staProtocol.getWorkNo()));
                 if(taskWrk != null &&  taskWrk.getWrkNo() < 9001 && taskWrk.getWrkNo() > 6000){
                     staProtocol.setStaNo(Short.valueOf(taskWrk.getTargetPoint()));
                     MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol));

--
Gitblit v1.9.1