From 2bedde4d5aff244f0a95af47de70e98def96abc2 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 22 四月 2025 16:51:32 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 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 fcb7843..8323dac 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -877,7 +877,7 @@ short staNo = 1012; if (wrkMast.getSourceStaNo() == 1022) { staNo = 1023; - } else if (wrkMast.getSourceStaNo() == 1032) { + } else if (wrkMast.getSourceStaNo() == 1031) { staNo = 1032; } @@ -945,6 +945,8 @@ Integer sourceStaNo = wrkMast.getSourceStaNo(); if (wrkMast.getSourceStaNo() == 1022) { sourceStaNo = 1023; + } else if (wrkMast.getSourceStaNo() == 1031) { + sourceStaNo = 1032; } StaProtocol staProtocol = station.get(sourceStaNo); @@ -972,7 +974,7 @@ return false; } } else if (sourceStaNo == 1032) { - if (staProtocol.getWorkNo().intValue() != wrkMast.getWrkNo()) { + if (staProtocol.getFinishWorkNo().intValue() != wrkMast.getWrkNo()) { News.info("{}浠诲姟锛寋}绔欑偣锛屼换鍔″彿涓嶄竴鑷�", wrkMast.getWrkNo(), staProtocol.getSiteId()); return false; } @@ -2150,9 +2152,15 @@ } private void shuttleMoveExecuteTransportLift(WrkMast wrkMast) { - LiftThread liftThread = LiftUtils.getRecentLift(wrkMast.getLocNo()); - if (liftThread == null) { - return; + WrkMast wrkMast1 = wrkMastService.selectByWorkNo(wrkMast.getMainWrkNo()); + LiftThread liftThread; + if (wrkMast1 != null && wrkMast1.getLiftNo() != null) { + liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, 1); + } else { + liftThread = LiftUtils.getRecentLift(wrkMast.getLocNo()); + if (liftThread == null) { + return; + } } //liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, wrkMast1.getLiftNo()); String liftLocNo = liftThread.getLiftLocNo(Utils.getLev(wrkMast.getLocNo())); -- Gitblit v1.9.1