| | |
| | | if (null == shuttleProtocol) { |
| | | return false; |
| | | } |
| | | if (!shuttleProtocol.getIdle()) {//设备不空闲 |
| | | return false; |
| | | } |
| | | if (!shuttleProtocol.getPakMk()) { |
| | | if (!shuttleThread.isIdle()) {//设备不空闲 |
| | | return false; |
| | | } |
| | | if (motionService.count(new LambdaQueryWrapper<Motion>() |
| | |
| | | |
| | | LiftThread liftThread = null; |
| | | LiftProtocol liftProtocol = null; |
| | | |
| | | //判断小车状态 |
| | | if (shuttleProtocol.getIdle() |
| | | && shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.IDLE) |
| | | && shuttleProtocol.getTaskNo() != 0 |
| | | ) { |
| | | return false; |
| | | } |
| | | |
| | | switch (Objects.requireNonNull(MotionCtgType.get(motion.getMotionCtgEl()))){ |
| | | case SHUTTLE_MOVE: |
| | |
| | | return true; |
| | | } |
| | | |
| | | if (!shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.WAITING) |
| | | && !shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.CHARGING_WAITING) |
| | | ) { |
| | | return false; |
| | | } |
| | | // if (!shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.WAITING) |
| | | // && !shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.CHARGING_WAITING) |
| | | // ) { |
| | | // return false; |
| | | // } |
| | | |
| | | //判断设备是否空闲 |
| | | if (!shuttleThread.isIdle()) { |