| | |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * 四向穿梭车 |
| | | */ |
| | |
| | | public Integer getTaskNo() { |
| | | RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | | if (null != redisUtil) { |
| | | Object o = redisUtil.get(DeviceRedisConstant.SHUTTLE_FLAG + this.taskNo); |
| | | Object o = redisUtil.get(DeviceRedisConstant.SHUTTLE_FLAG + this.shuttleNo); |
| | | if (!Cools.isEmpty(o)) { |
| | | this.taskNo = Integer.parseInt(String.valueOf(o)); |
| | | } |
| | |
| | | } |
| | | |
| | | //源库位(小车当前位置) |
| | | Loc currentLoc = locService.getOne(new LambdaQueryWrapper<Loc>() |
| | | LambdaQueryWrapper<Loc> wrapper = new LambdaQueryWrapper<Loc>() |
| | | .eq(Loc::getCode, this.currentCode) |
| | | .eq(Loc::getHostId, this.device.getHostId())); |
| | | .eq(Loc::getHostId, this.device.getHostId()); |
| | | Loc currentLoc = locService.getOne(wrapper); |
| | | if (currentLoc == null) { |
| | | return null; |
| | | } |