| | |
| | | private NavigateUtils navigateUtils; |
| | | |
| | | /** |
| | | * 根据目标位置搜索空闲提升机 |
| | | * 根据目标位置搜索提升机 |
| | | * transfer: 是否可换层 |
| | | */ |
| | | public LiftThread searchLift(String locNo, Long hostId, Boolean transfer) { |
| | |
| | | |
| | | LiftProtocol liftProtocol = liftThread.getStatus(); |
| | | if (liftProtocol == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (!liftThread.isIdle()) { |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取进提升机待机位位置 |
| | | */ |
| | | public String getInLiftStandByLocNo(LiftThread liftThread, Integer lev) { |
| | | Device device = liftThread.getDevice(); |
| | | ShuttleStandby standby = shuttleStandbyService.getOne(new LambdaQueryWrapper<ShuttleStandby>() |
| | | .eq(ShuttleStandby::getDeviceId, device.getId()) |
| | | .eq(ShuttleStandby::getDeviceLev, lev) |
| | | .eq(ShuttleStandby::getStatus, 1)); |
| | | if (standby == null) { |
| | | return null; |
| | | } |
| | | |
| | | return standby.getMemo(); |
| | | } |
| | | |
| | | /** |
| | | * 获取换层需要锁定的路径 |
| | | */ |
| | | public List<String> getLockPathByLocNo(LiftThread liftThread, Integer lev) { |