From 44ba81f6aab41b5939c6a5e13c776971604467b8 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 26 三月 2025 16:52:44 +0800
Subject: [PATCH] ASDE

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/HttpCollector.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/HttpCollector.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/HttpCollector.java
index 94e86af..4ed6805 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/HttpCollector.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/HttpCollector.java
@@ -7,6 +7,8 @@
  */
 
 import com.iailab.framework.common.constant.CommonConstant;
+import com.iailab.module.data.channel.http.collector.asdb.HttpCollectorForAsdb;
+import com.iailab.module.data.channel.http.collector.asdb.HttpCollectorForAsde;
 import com.iailab.module.data.channel.http.collector.ihdb.HttpCollectorForIhd;
 import com.iailab.module.data.channel.http.entity.HttpApiEntity;
 import com.iailab.module.data.channel.http.service.HttpApiService;
@@ -29,6 +31,12 @@
     @Autowired
     private HttpCollectorForIhd httpCollectorForIhd;
 
+    @Autowired
+    private HttpCollectorForAsdb httpCollectorForAsdb;
+
+    @Autowired
+    private HttpCollectorForAsde httpCollectorForAsde;
+
     public Object getTagValue(String apiId, String tag) {
         HttpApiEntity httpApi = httpApiService.getFromCatch(apiId);
         if (httpApi == null) {
@@ -39,6 +47,10 @@
         Map<String, Object> valueMap = new HashMap<String, Object>();
         if (SourceApiEnum.iHyperDB.getCode().equals(httpApi.getCode())) {
             valueMap = httpCollectorForIhd.getLastValues(apiId, tagNames);
+        } else if (SourceApiEnum.ASDB.getCode().equals(httpApi.getCode())) {
+            valueMap = httpCollectorForAsdb.getTagValues(apiId, tagNames);
+        } else if (SourceApiEnum.ASDE.getCode().equals(httpApi.getCode())) {
+            valueMap = httpCollectorForAsde.getTagValues(apiId, tagNames);
         }
         if (valueMap.get(tag) == null) {
             return CommonConstant.BAD_VALUE;

--
Gitblit v1.9.3