| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | if (point.getZ().equals(lev)) { |
| | | if (shuttleProtocol.getChargState() == 1) { |
| | | continue;//充电中 |
| | | } |
| | | |
| | | if (shuttleProtocol.getSuspendState() == 1) { |
| | | continue;//管制中 |
| | | } |
| | | |
| | | levCount++;//目标楼层有车,数量增加 |
| | | } |
| | | } |