| | |
| | | import com.zy.core.cache.MessageQueue; |
| | | import com.zy.core.cache.OutputQueue; |
| | | import com.zy.core.cache.SlaveConnection; |
| | | import com.zy.core.enums.LiftProtocolStatusType; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.LiftSlave; |
| | | import com.zy.core.model.Task; |
| | |
| | | // 获取提升机信息 |
| | | LiftThread liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, basLift.getLiftNo()); |
| | | if (liftThread == null) { |
| | | vo.setProtocolStatus(LiftProtocolStatusType.OFFLINE.id);//离线 |
| | | continue; |
| | | } |
| | | LiftProtocol liftProtocol = liftThread.getLiftProtocol(); |
| | |
| | | continue; |
| | | } |
| | | vo.setTaskNo(liftProtocol.getTaskNo()); // 任务号 |
| | | vo.setProtocolStatus(liftProtocol.getProtocolStatusType().desc); |
| | | vo.setProtocolStatus(liftProtocol.getProtocolStatusType().id); |
| | | vo.setLiftLock(liftProtocol.getLiftLock()); |
| | | vo.setPositionArrivalFeedback(liftProtocol.getPositionArrivalFeedback()); |
| | | vo.setReady(liftProtocol.getReady()); |