From 4f38e65339669f138a3c42d2bb31bd2aac9ca9b1 Mon Sep 17 00:00:00 2001 From: yuemian <--list> Date: Fri, 6 Sep 2024 16:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AC=E4=BB=B6=E6=95=B0=E6=8D=AE=E9=87=87?= =?UTF-8?q?=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bocloud/cop/booter/controller/AlistarController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bocloud.cop.booter/src/main/java/com/bocloud/cop/booter/controller/AlistarController.java b/bocloud.cop.booter/src/main/java/com/bocloud/cop/booter/controller/AlistarController.java index a9d929d..79f9edb 100644 --- a/bocloud.cop.booter/src/main/java/com/bocloud/cop/booter/controller/AlistarController.java +++ b/bocloud.cop.booter/src/main/java/com/bocloud/cop/booter/controller/AlistarController.java @@ -79,6 +79,8 @@ public class AlistarController { List instances = this.getAlistarResourceInstance(); if ("SERVER".equalsIgnoreCase(category)) { instances = instances.stream().filter(inst -> "服务器".equals(inst.getCategory())).collect(Collectors.toList()); + } else if ("HARDWARE".equalsIgnoreCase(category)) { + instances = instances.stream().filter(inst -> "硬件".equals(inst.getCategory())).collect(Collectors.toList()); } else if ("NET".equalsIgnoreCase(category)) { instances = instances.stream() .filter(inst -> "网络设备".equals(inst.getCategory()))