From 0f69561e397093b5165c4aac58530721d5c62178 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 25 十一月 2024 11:03:16 +0800
Subject: [PATCH] #led

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java |   40 +---------------------------------------
 1 files changed, 1 insertions(+), 39 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java
index aa771de..92cad27 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java
@@ -5,7 +5,6 @@
 import com.zy.asrs.wcs.core.map.entity.MapWsVo;
 import com.zy.asrs.wcs.core.utils.Utils;
 import org.springframework.scheduling.annotation.Scheduled;
-import org.springframework.stereotype.Component;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -13,7 +12,7 @@
 /**
  * Created by vincent on 4/3/2024
  */
-@Component
+//@Component
 public class MockScheduler {
 
     private int row = 1;
@@ -85,43 +84,6 @@
             increasingBay = !increasingBay; // 鍒拌揪姣忚鐨勬湯灏炬椂鏀瑰彉bay鐨勯�掑/閫掑噺鏂瑰悜
         }
         return fullPath;
-    }
-
-    private List<String> generatePreTravelPath(int currentRow, int currentBay, int currentLev, boolean increasingBay, int pathLength) {
-        List<String> path = new ArrayList<>();
-        int tempRow = currentRow;
-        int tempBay = currentBay;
-        boolean tempIncreaseBay = increasingBay;
-
-        for (int i = 0; i < pathLength; i++) {
-            if (tempIncreaseBay) {
-                if (tempBay < 30) {
-                    tempBay++;
-                } else {
-                    if (tempRow < 10) {
-                        tempRow++;
-                    } else {
-                        tempRow = 1;  // 濡傛灉 row 宸茬粡鏄渶澶э紝鍒欏洖鍒拌捣濮嬩綅缃�
-                    }
-                    tempIncreaseBay = false;
-                }
-            } else {
-                if (tempBay > 1) {
-                    tempBay--;
-                } else {
-                    if (tempRow < 10) {
-                        tempRow++;
-                    } else {
-                        tempRow = 1;  // 濡傛灉 row 宸茬粡鏄渶澶э紝鍒欏洖鍒拌捣濮嬩綅缃�
-                    }
-                    tempIncreaseBay = true;
-                }
-            }
-            // 灏嗙敓鎴愮殑搴撲綅鍙峰姞鍏ヨ矾寰勫垪琛�
-            path.add(Utils.getLocNo(tempRow, tempBay, currentLev));
-        }
-
-        return path;
     }
 
 }

--
Gitblit v1.9.1