src/main/java/com/zy/core/dispatcher/ShuttleDispatchUtils.java
@@ -168,7 +168,8 @@ //当前穿梭车库位号 String currentLocNo = shuttleProtocol.getCurrentLocNo(); int currentLev = Utils.getLev(currentLocNo); List<WrkMast> wrkMasts1 = wrkMastService.selectNoShuttleWrkByLev(currentLev);//判断当前穿梭车楼层是否有待分配车辆的任务,如果有则不分配这辆车 //判断当前楼层是否有任务,如果有则不分配这辆车 List<WrkMast> wrkMasts1 = wrkMastService.selectWrkByLev(currentLev); int shuttleCount = this.getShuttleCountByLev(currentLev);//获取穿梭车楼层车辆数量 if (!wrkMasts1.isEmpty() && shuttleCount <= 1) { //存在其他任务且可用小车数量小于等于1,跳过这辆车