From a9b98ef2b0af7a4a830a2a4d3320d42e2779b152 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期三, 16 十月 2024 10:02:43 +0800 Subject: [PATCH] #出库待机位自动搜索 --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 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 db4c697..d827bd6 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 @@ -431,4 +431,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