自动化立体仓库 - WCS系统
Junjie
2023-12-28 cc42d79563a119ffb37302092c445e73ab76e274
src/main/java/com/zy/common/utils/ShuttleDispatchUtils.java
@@ -176,8 +176,9 @@
                    String currentLocNo = shuttleThread.getShuttleProtocol().getCurrentLocNo();
                    int currentLev = Utils.getLev(currentLocNo);
                    List<WrkMast> wrkMasts1 = wrkMastService.selectNoShuttleWrkByLev(currentLev);//判断当前穿梭车楼层是否有待分配车辆的任务,如果有则不分配这辆车
                    if (!wrkMasts1.isEmpty()) {
                        //存在其他任务,跳过这辆车
                    int shuttleCount = this.getShuttleCountByLev(currentLev);//获取穿梭车楼层车辆数量
                    if (!wrkMasts1.isEmpty() && shuttleCount <= 1) {
                        //存在其他任务且可用小车数量小于等于1,跳过这辆车
                        continue;
                    }
@@ -325,6 +326,14 @@
            }
            if (point.getZ().equals(lev)) {
                if (shuttleProtocol.getChargState() == 1) {
                    continue;//充电中
                }
                if (shuttleProtocol.getSuspendState() == 1) {
                    continue;//管制中
                }
                levCount++;//目标楼层有车,数量增加
            }
        }