| | |
| | | continue; |
| | | } |
| | | |
| | | BasShuttle basShuttle = basShuttleService.getOne(new LambdaQueryWrapper<BasShuttle>() |
| | | .eq(BasShuttle::getShuttleNo, device.getDeviceNo()) |
| | | .eq(BasShuttle::getHostId, device.getHostId())); |
| | | if (basShuttle == null) { |
| | | continue;//小车基础数据不存在 |
| | | } |
| | | |
| | | if (!Cools.isEmpty(basShuttle.getDisableLev())) { |
| | | List<Integer> disableLev = JSON.parseArray(basShuttle.getDisableLev(), Integer.class); |
| | | //检查小车是否禁用该楼层 |
| | | if (disableLev.contains(Utils.getLev(locNo))) { |
| | | continue;//小车禁用该楼层跳过该车 |
| | | } |
| | | } |
| | | |
| | | //检测是否存在充电任务 |
| | | Task taskCharge = taskService.selectChargeWorking(Integer.valueOf(device.getDeviceNo())); |
| | | if (taskCharge != null) { |