From a8643acd241003ac3a8fe10327c238b9b1730d97 Mon Sep 17 00:00:00 2001
From: fuwenkai <834260992@qq.com>
Date: Wed, 16 Oct 2024 15:34:39 +0800
Subject: [PATCH] [INLONG-11361][Manager] Support querying heartbeat
information based on IP address
---
.../resources/mappers/ComponentHeartbeatEntityMapper.xml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml b/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml
index c5f0ebf08c7..133947a4e43 100644
--- a/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml
+++ b/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml
@@ -66,7 +66,12 @@
select
from component_heartbeat
- where component = #{request.component, jdbcType=VARCHAR}
+
+ component = #{request.component, jdbcType=VARCHAR}
+
+ and instance = #{request.instance,jdbcType=VARCHAR}
+
+
order by modify_time desc