| | |
| | | } |
| | | |
| | | for (ForkLiftStaProtocol forkLiftStaProtocol : forkLiftThread.getForkLiftStaProtocols()) { |
| | | list.add(forkLiftStaProtocol.getStaNo()); |
| | | list.add(forkLiftStaProtocol.getSiteId()); |
| | | } |
| | | |
| | | return list; |
| | |
| | | } |
| | | |
| | | //获取提升机站点 |
| | | public static ForkLiftStaProtocol getLiftStaByStaNo(Integer staNo) { |
| | | public static ForkLiftStaProtocol getLiftStaByStaNo(Integer siteId) { |
| | | DeviceConfigService deviceConfigService = SpringUtils.getBean(DeviceConfigService.class); |
| | | List<DeviceConfig> forkliftList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>() |
| | | .eq("device_type", String.valueOf(SlaveType.ForkLift))); |
| | |
| | | } |
| | | |
| | | for (ForkLiftStaProtocol forkLiftStaProtocol : forkLiftThread.getForkLiftStaProtocols()) { |
| | | if (forkLiftStaProtocol.getStaNo().equals(staNo)) { |
| | | if (forkLiftStaProtocol.getSiteId().equals(siteId)) { |
| | | return forkLiftStaProtocol; |
| | | } |
| | | } |