From b058b8c8be2267c2a0ba4e3916871ede64f53c47 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期一, 15 七月 2024 19:09:32 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java | 35 +++++++++++++++++++++++++++++------ 1 files changed, 29 insertions(+), 6 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java index ae6aadf..540dfe4 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java @@ -55,13 +55,15 @@ motion.setOrigin(String.valueOf(liftDispatcher.getLiftLevOffset(target.getLiftNo(), origin.getLev()))); } motion.setTarget(String.valueOf(liftDispatcher.getLiftLevOffset(target.getLiftNo(), target.getLev()))); - })); -// if (target.getUpdateLiftNo() != null && target.getWrkNo() != null) { -// if (target.getUpdateLiftNo()) { -// -// } -// } + if (target.getSync() != null) { + motion.setSync(target.getSync()); + } + + if (target.getReleaseLift() != null) { + motion.setReleaseLift(target.getReleaseLift()); + } + })); return motionList; } @@ -84,9 +86,14 @@ } motion.setTarget(String.valueOf(liftDispatcher.getLiftLevOffset(target.getLiftNo(), target.getLev()))); motion.setTarDrt(target.getStaNo());//鐩爣绔� + motion.setDockNo(String.valueOf(target.getDevpNo()));//杈撻�佺嚎ID if (target.getSync() != null) { motion.setSync(target.getSync()); + } + + if (target.getReleaseLift() != null) { + motion.setReleaseLift(target.getReleaseLift()); } })); @@ -166,6 +173,14 @@ motion.setDeviceCtg(DeviceCtgType.LIFT.val()); motion.setDevice(String.valueOf(target.getLiftNo())); motion.setMotionCtg(MotionCtgType.LIFT_LOCK.val()); + + if (target.getSync() != null) { + motion.setSync(target.getSync()); + } + + if (target.getReleaseLift() != null) { + motion.setReleaseLift(target.getReleaseLift()); + } })); return motionList; @@ -181,6 +196,14 @@ motion.setDeviceCtg(DeviceCtgType.LIFT.val()); motion.setDevice(String.valueOf(target.getLiftNo())); motion.setMotionCtg(MotionCtgType.LIFT_UNLOCK.val()); + + if (target.getSync() != null) { + motion.setSync(target.getSync()); + } + + if (target.getReleaseLift() != null) { + motion.setReleaseLift(target.getReleaseLift()); + } })); return motionList; -- Gitblit v1.9.1