| | |
| | | } |
| | | |
| | | for (LiftStaProtocol liftStaProtocol : liftThread.getLiftStaProtocols()) { |
| | | list.add(liftStaProtocol.getStaNo()); |
| | | list.add(liftStaProtocol.getSiteId()); |
| | | } |
| | | |
| | | return list; |
| | |
| | | } |
| | | |
| | | //获取提升机站点 |
| | | public static LiftStaProtocol getLiftStaByStaNo(Integer staNo) { |
| | | public static LiftStaProtocol getLiftStaByStaNo(Integer siteId) { |
| | | DeviceConfigService deviceConfigService = SpringUtils.getBean(DeviceConfigService.class); |
| | | List<DeviceConfig> liftList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>() |
| | | .eq("device_type", String.valueOf(SlaveType.Lift))); |
| | |
| | | } |
| | | |
| | | for (LiftStaProtocol liftStaProtocol : liftThread.getLiftStaProtocols()) { |
| | | if (liftStaProtocol.getStaNo().equals(staNo)) { |
| | | if (liftStaProtocol.getSiteId().equals(siteId)) { |
| | | return liftStaProtocol; |
| | | } |
| | | } |
| | |
| | | if (liftThread == null) { |
| | | return null; |
| | | } |
| | | |
| | | for (LiftStaProtocol liftStaProtocol : liftThread.getLiftStaProtocols()) { |
| | | if (liftStaProtocol.getLev().equals(lev)) { |
| | | return liftStaProtocol; |