| | |
| | | if (liftProtocol.getLev() == command.getTargetLev()) { |
| | | command.setComplete(true); |
| | | } |
| | | } else if (command.getMode() == LiftCommandModeType.RESET.id) { |
| | | //复位 |
| | | command.setComplete(true); |
| | | } else if (command.getMode() == LiftCommandModeType.LOCK.id) { |
| | | //复位 |
| | | command.setComplete(true); |
| | | } else if (command.getMode() == LiftCommandModeType.UNLOCK.id) { |
| | | //复位 |
| | | command.setComplete(true); |
| | | } |
| | | |
| | | // 更新redis数据 |
| | |
| | | |
| | | //对主线程抛出等待确认状态waiting |
| | | liftThread.setProtocolStatus(LiftProtocolStatusType.WAITING); |
| | | liftThread.commandFinished(taskNo);//调用完成后续指令(部分提升机有后续指令,实际情况看是否有真正实现方法) |
| | | redisUtil.del(DeviceRedisConstant.LIFT_WORK_FLAG + taskNo); |
| | | return false;//禁止再下发命令 |
| | | } |