From f43b508dda7334487a1640b0bbd908d7b3aa3cb6 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期二, 15 十月 2024 13:14:28 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 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 f5e1c54..7cf1e40 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 @@ -298,8 +298,19 @@ motion.setTemp(String.valueOf(origin.getLiftNo()));//淇濆瓨鎻愬崌鏈哄彿 motion.setDockNo(String.valueOf(target.getStaNo())); break; + case SHUTTLE_TRANSPORT_TO_CONVEYOR://绌挎杞﹁浇璐ц繘杈撻�佺嚎 + motion.setDockNo(String.valueOf(target.getStaNo())); + break; default: break; + } + + if (target.getSync() != null) { + motion.setSync(target.getSync()); + } + + if (target.getReleaseShuttle() != null) { + motion.setReleaseShuttle(target.getReleaseShuttle()); } })); @@ -440,4 +451,40 @@ return motionList; } + // Map ----------------------------------------------------------------------------- + + /** + * 鍦板浘璺緞閿佸畾 + */ + public List<Motion> mapLockPath(MotionDto origin, MotionDto target) { + List<Motion> motionList = new ArrayList<>(); + + motionList.add(Motion.build(motion -> { + motion.setDeviceCtg(DeviceCtgType.MAP.val()); + motion.setDevice(String.valueOf(target.getShuttleNo())); + motion.setMotionCtg(MotionCtgType.MAP_LOCK_PATH.val()); + + motion.setTarget(target.getLocNo()); + })); + + return motionList; + } + + /** + * 鍦板浘璺緞瑙i攣 + */ + public List<Motion> mapUnlockPath(MotionDto origin, MotionDto target) { + List<Motion> motionList = new ArrayList<>(); + + motionList.add(Motion.build(motion -> { + motion.setDeviceCtg(DeviceCtgType.MAP.val()); + motion.setDevice(String.valueOf(target.getShuttleNo())); + motion.setMotionCtg(MotionCtgType.MAP_UNLOCK_PATH.val()); + + motion.setTarget(target.getLocNo()); + })); + + return motionList; + } + } -- Gitblit v1.9.1