#
luxiaotao1123
2024-04-11 111316dd3c9db874a24a4126b2b754f0e1b7bd6a
#
1个文件已添加
2个文件已修改
46 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/utils.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MapRealTimeDatascheduler.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/utils.js
@@ -58,7 +58,7 @@
    TRACK: 3,
    LIFT: 67,
    CHARGE: 5,
    DISABLE: 1,
    DISABLE: -1,
})
export const NOTIFY_TYPE = Object.freeze({
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MapRealTimeDatascheduler.java
New file
@@ -0,0 +1,7 @@
package com.zy.asrs.wcs.core.map.websocket;
/**
 * Created by vincent on 4/11/2024
 */
public class MapRealTimeDatascheduler {
}
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/websocket/MockScheduler.java
@@ -87,41 +87,4 @@
        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;
    }
}