| | |
| | | |
| | | return null; |
| | | } |
| | | |
| | | public static GatewayDevice getCacheByDeviceSIp(String ip) { |
| | | Collection<GatewayDevice> list = allCacheDevice(); |
| | | if (null == list || list.isEmpty()) return null; |
| | |
| | | public static Collection<GatewayDevice> listDeviceWeight() { |
| | | return cacheMapDeviceWeight.values(); |
| | | } |
| | | |
| | | public static GatewayDevice getCacheByDepotSysId(String depotSysId) { |
| | | |
| | | if (null == depotSysId) return null; |
| | | Collection<GatewayDevice> list = allCacheDevice(); |
| | | if (null == list || list.isEmpty()) return null; |
| | | |
| | | for (GatewayDevice device : list) { |
| | | if (null == device.getDepotIdSys()) continue; |
| | | if (depotSysId.equals(device.getDepotIdSys())) return device; |
| | | } |
| | | return null; |
| | | } |
| | | } |