| | |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * 获取小车空闲状态 |
| | | */ |
| | | public Boolean getIdle() { |
| | | if (this.deviceStatus == null) { |
| | | return false; |
| | | } |
| | | |
| | | ShuttleDeviceStatusService shuttleDeviceStatusService = SpringUtils.getBean(ShuttleDeviceStatusService.class); |
| | | ShuttleDeviceStatus status = shuttleDeviceStatusService.getOne(new LambdaQueryWrapper<ShuttleDeviceStatus>() |
| | | .eq(ShuttleDeviceStatus::getHostId, this.device.getHostId()) |
| | | .eq(ShuttleDeviceStatus::getDevicePlc, this.device.getDevicePlc()) |
| | | .eq(ShuttleDeviceStatus::getStatus, 1) |
| | | .eq(ShuttleDeviceStatus::getDeviceStatus, this.deviceStatus)); |
| | | if (status != null) { |
| | | if (status.getFlag() != null && status.getFlag().equals(String.valueOf(ShuttleDeviceStatusType.IDLE))) { |
| | | return true;//空闲中 |
| | | } |
| | | } |
| | | return false;//默认不空闲 |
| | | } |
| | | |
| | | public Integer getTaskNo() { |
| | | RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | | if (null != redisUtil) { |