|  |  |  | 
|---|
|  |  |  | return command; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取提升机复位命令 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static NyLiftCommand getLiftResetCommand(Integer liftNo) { | 
|---|
|  |  |  | NyLiftCommand command = new NyLiftCommand(); | 
|---|
|  |  |  | command.setLiftNo(liftNo.shortValue()); | 
|---|
|  |  |  | command.setTaskNo((short) 0); | 
|---|
|  |  |  | command.setTaskModel((short) 0); | 
|---|
|  |  |  | command.setSourceSta((short) 0); | 
|---|
|  |  |  | command.setTargetSta((short) 0); | 
|---|
|  |  |  | return command; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //获取提升机站点 | 
|---|
|  |  |  | public static LiftStaProtocol getLiftStaByStaNo(Integer staNo) { | 
|---|
|  |  |  | SlaveProperties slaveProperties = SpringUtils.getBean(SlaveProperties.class); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (LiftStaProtocol liftStaProtocol : liftThread.getLiftStaProtocols()) { | 
|---|
|  |  |  | if (liftStaProtocol.getStaNo() == staNo) { | 
|---|
|  |  |  | if (liftStaProtocol.getStaNo().equals(staNo)) { | 
|---|
|  |  |  | return liftStaProtocol; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (LiftStaProtocol liftStaProtocol : liftThread.getLiftStaProtocols()) { | 
|---|
|  |  |  | if (liftStaProtocol.getStaNo() == staNo) { | 
|---|
|  |  |  | if (liftStaProtocol.getStaNo().equals(staNo)) { | 
|---|
|  |  |  | return liftStaProtocol; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (LiftStaProtocol liftStaProtocol : liftThread.getLiftStaProtocols()) { | 
|---|
|  |  |  | if (liftStaProtocol.getLev() == lev) { | 
|---|
|  |  |  | if (liftStaProtocol.getLev().equals(lev)) { | 
|---|
|  |  |  | return liftStaProtocol; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|