| | |
| | | int currentLev = Utils.getLev(currentLocNo); |
| | | //判断当前楼层是否有任务,如果有则不分配这辆车 |
| | | List<WrkMast> wrkMasts1 = wrkMastService.selectWrkByLev(currentLev); |
| | | int shuttleCount = this.getShuttleEnableUseCountByLev(currentLev);//获取穿梭车楼层车辆数量 |
| | | if (!wrkMasts1.isEmpty() && shuttleCount <= 1) { |
| | | int currentLevTaskCount = wrkMasts1.size(); |
| | | for (WrkMast wrkMast : wrkMasts1) { |
| | | if (wrkMast.getIoType() == WrkIoType.SHUTTLE_CHARGE.id) { |
| | | currentLevTaskCount--; |
| | | } |
| | | } |
| | | int shuttleCount = this.getShuttleCountByLev(currentLev);//获取穿梭车楼层车辆数量 |
| | | if (currentLevTaskCount > 0 && shuttleCount <= 1) { |
| | | //存在其他任务且可用小车数量小于等于1,跳过这辆车 |
| | | continue; |
| | | } |