From fa2fab0a146e683cb319887239db19e699d485b7 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 24 六月 2024 10:10:02 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/AnalyzeService.java |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/AnalyzeService.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/AnalyzeService.java
index f3d9b42..164e30b 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/AnalyzeService.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/AnalyzeService.java
@@ -634,6 +634,7 @@
                             dto.setLiftNo(transferLiftDevice.getId().intValue());
                             dto.setLev(5);//绱㈢墝椤圭洰5灞傛槸杈撻�佺嚎灞�
                             dto.setStaNo(1);//鎻愬崌鏈哄乏渚�
+                            dto.setSync(0);//寮傛鎵ц
                         }))
                 ));
 
@@ -814,17 +815,17 @@
                         MotionDto.build((dto -> {
                             dto.setShuttleNo(shuttleDevice.getId().intValue());
                             dto.setLiftNo(transferLiftDevice.getId().intValue());
-                            dto.setLocNo(standbyLocNoTo);
+                            dto.setLocNo(standbyLocNoFrom);
                         })),
                         MotionCtgType.SHUTTLE_MOVE
                 ));
 
-                // 鎻愬崌鏈虹┖杞界Щ鍔ㄥ埌绌挎杞﹀眰
+                // 鎻愬崌鏈虹┖杞界Щ鍔ㄥ埌鐩爣灞�
                 motionList.addAll(kernelService.liftMove(
                         null
                         , MotionDto.build((dto -> {
                             dto.setLiftNo(transferLiftDevice.getId().intValue());
-                            dto.setLev(Utils.getLev(shuttleLocNo));
+                            dto.setLev(Utils.getLev(originLoc));
                         }))
                 ));
 
@@ -840,12 +841,12 @@
                 motionList.addAll(kernelService.shuttleMove(
                         MotionDto.build((dto -> {
                             dto.setShuttleNo(shuttleDevice.getId().intValue());
-                            dto.setLocNo(standbyLocNoTo);
+                            dto.setLocNo(standbyLocNoFrom);
                         })),
                         MotionDto.build((dto -> {
                             dto.setShuttleNo(shuttleDevice.getId().intValue());
                             dto.setLiftNo(transferLiftDevice.getId().intValue());
-                            dto.setLocNo(liftLocNoTo);
+                            dto.setLocNo(liftLocNoFrom);
                         })),
                         MotionCtgType.SHUTTLE_MOVE_TO_LIFT
                 ));
@@ -892,6 +893,7 @@
                             dto.setLiftNo(transferLiftDevice.getId().intValue());
                             dto.setLev(5);//绱㈢墝椤圭洰5灞傛槸杈撻�佺嚎灞�
                             dto.setStaNo(1);//鎻愬崌鏈哄乏渚�
+                            dto.setSync(0);//寮傛鎵ц
                         }))
                 ));
 
@@ -1153,11 +1155,12 @@
         }
 
         // 绌挎杞﹀紑濮嬪厖鐢�
-        motionList.addAll(kernelService.shuttleCharge(
+        motionList.addAll(kernelService.shuttleAction(
                 null,
                 MotionDto.build((dto -> {
                     dto.setShuttleNo(shuttleDevice.getId().intValue());
-                }))
+                })),
+                MotionCtgType.SHUTTLE_CHARGE_ON
         ));
 
         return motionList;
@@ -1195,6 +1198,15 @@
         // 鍒ゆ柇绌挎杞︽槸鍚﹀湪鐩爣灞�
         if (Utils.getLev(shuttleLocNo) == Utils.getLev(locNo)) {
 
+            // 绌挎杞﹀叧闂厖鐢�
+            motionList.addAll(kernelService.shuttleAction(
+                    null,
+                    MotionDto.build((dto -> {
+                        dto.setShuttleNo(shuttleDevice.getId().intValue());
+                    })),
+                    MotionCtgType.SHUTTLE_CHARGE_OFF
+            ));
+
             // 绌挎杞﹁蛋琛岃嚦鐩爣搴撲綅
             motionList.addAll(kernelService.shuttleMove(
                     MotionDto.build((dto -> {

--
Gitblit v1.9.1