From 86d368337175a7d7eed5e9330bd80a838ab4f396 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期四, 09 十一月 2023 17:25:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/igds-api-gateway' into igds-api-gateway
---
src/main/java/com/fzzy/gateway/api/GatewayRemoteManager.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/fzzy/gateway/api/GatewayRemoteManager.java b/src/main/java/com/fzzy/gateway/api/GatewayRemoteManager.java
index 6df640e..b90a996 100644
--- a/src/main/java/com/fzzy/gateway/api/GatewayRemoteManager.java
+++ b/src/main/java/com/fzzy/gateway/api/GatewayRemoteManager.java
@@ -17,6 +17,8 @@
public static Map<String, GatewayRemoteService> remoteMap = new HashMap<>();
+ public static Map<String, DeviceReportService> reportMap = new HashMap<>();
+
public static Map<String, GatewaySyncGranService> syncGrain = new HashMap<>();
public static Map<String, GatewaySyncIdCardService> syncIdCard = new HashMap<>();
@@ -58,6 +60,11 @@
Map<String, GatewaySyncWeightService> serviceMap6 = applicationContext.getBeansOfType(GatewaySyncWeightService.class);
for (String key : serviceMap6.keySet()) {
syncWeight.put(serviceMap6.get(key).getWeightProtocol(), serviceMap6.get(key));
+ }
+
+ Map<String, DeviceReportService> serviceMap7 = applicationContext.getBeansOfType(DeviceReportService.class);
+ for (String key : serviceMap7.keySet()) {
+ reportMap.put(serviceMap7.get(key).getProvinceProtocol(), serviceMap7.get(key));
}
}
@@ -123,4 +130,14 @@
return syncWeight.get(protocol);
}
+ /**
+ * 鏍规嵁瀹炵幇鍗忚鑾峰彇褰撳墠瀹炵幇鏂规硶
+ *
+ * @param protocol
+ * @return
+ */
+ public DeviceReportService getDeviceReportService(String protocol) {
+ return reportMap.get(protocol);
+ }
+
}
--
Gitblit v1.9.3