From 9372f61dcb41eeb2e09871caefce0f764d6ab021 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 21 六月 2024 15:17:04 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 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 cac9b7d..8cad0eb 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
@@ -182,6 +182,36 @@
         return motionList;
     }
 
+    /**
+     * 鎻愬崌鏈�-灏忚溅宸插埌浣�
+     */
+    public List<Motion> liftShuttleArrival(MotionDto origin, MotionDto target) {
+        List<Motion> motionList = new ArrayList<>();
+
+        motionList.add(Motion.build(motion -> {
+            motion.setDeviceCtg(DeviceCtgType.LIFT.val());
+            motion.setDevice(String.valueOf(target.getLiftNo()));
+            motion.setMotionCtg(MotionCtgType.LIFT_SHUTTLE_ARRIVAL.val());
+        }));
+
+        return motionList;
+    }
+
+    /**
+     * 鎻愬崌鏈�-灏忚溅宸查┒绂�
+     */
+    public List<Motion> liftShuttleLeave(MotionDto origin, MotionDto target) {
+        List<Motion> motionList = new ArrayList<>();
+
+        motionList.add(Motion.build(motion -> {
+            motion.setDeviceCtg(DeviceCtgType.LIFT.val());
+            motion.setDevice(String.valueOf(target.getLiftNo()));
+            motion.setMotionCtg(MotionCtgType.LIFT_SHUTTLE_LEAVE.val());
+        }));
+
+        return motionList;
+    }
+
     // shuttle -----------------------------------------------------------------------------
 
     /**

--
Gitblit v1.9.1