From 715101e29ad1eb8d70f587237a37d74d50d3fd2a Mon Sep 17 00:00:00 2001 From: zc <zc@123> Date: 星期五, 25 四月 2025 15:23:28 +0800 Subject: [PATCH] 初步调试 --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 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 acc29db..98bd691 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -957,7 +957,7 @@ staProtocol = staProtocol.clone(); staProtocol.setStaNo(staNo); - staProtocol.setWorkNo(wrkMast.getWrkNo().shortValue()); + staProtocol.setWorkNo(wrkMast.getMainWrkNo().shortValue()); boolean result = MessageQueue.offer(SlaveType.Devp, 1, new Task(2, staProtocol)); wrkMast.setWrkSts(WrkStsType.INBOUND_DEVICE_RUN.sts); @@ -1287,14 +1287,14 @@ Integer sourceLev = liftThread.getLevToStaNo(Utils.getLev(wrkMast.getSourceLocNo())); //鑾峰彇鎻愬崌鏈哄懡浠� - List<LiftCommand> liftCommands = liftThread.getPalletOutCommand(wrkMast.getWrkNo(), sourceLev, wrkMast.getStaNo()); + List<LiftCommand> liftCommands = liftThread.getPalletOutCommand(wrkMast.getMainWrkNo(), sourceLev, wrkMast.getStaNo()); LiftCommand liftCommand = liftCommands.get(0); - if (wrkMast.getMainWrkNo() != null) { - liftCommand.setTaskNo(wrkMast.getMainWrkNo()); - } else { - int deviceWrk = commonService.getWorkNo(8);//鐢熸垚鎻愬崌鏈鸿澶囧伐浣滃彿 - liftCommand.setTaskNo(deviceWrk);//鏇存崲闅忔満浠诲姟鍙� - } +// if (wrkMast.getMainWrkNo() != null) { + liftCommand.setTaskNo(wrkMast.getMainWrkNo()); +// } else { +// int deviceWrk = commonService.getWorkNo(8);//鐢熸垚鎻愬崌鏈鸿澶囧伐浣滃彿 +// liftCommand.setTaskNo(deviceWrk);//鏇存崲闅忔満浠诲姟鍙� +// } ArrayList<LiftCommand> commands = new ArrayList<>(); commands.add(liftCommand); @@ -1303,7 +1303,7 @@ LiftAssignCommand assignCommand = new LiftAssignCommand(); assignCommand.setCommands(commands); assignCommand.setLiftNo(liftProtocol.getLiftNo().shortValue()); - assignCommand.setTaskNo(wrkMast.getWrkNo().shortValue()); + assignCommand.setTaskNo(wrkMast.getMainWrkNo().shortValue()); assignCommand.setTaskMode(LiftCommandModeType.PALLET_OUT.id.shortValue()); wrkMast.setWrkSts(WrkStsType.OUTBOUND_LIFT_RUN.sts); -- Gitblit v1.9.1