From c79b4523e1031557b6aaa36e5abe4599827d0b58 Mon Sep 17 00:00:00 2001 From: "Mr.Wang" Date: Wed, 24 Apr 2024 10:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=A4=E6=8D=A2=E6=9C=BA?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zc/business/domain/DcSwitch.java | 2 +- .../com/zc/business/service/impl/DcSwitchServiceImpl.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/domain/DcSwitch.java b/zc-business/src/main/java/com/zc/business/domain/DcSwitch.java index 9fd63400..d8203d33 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcSwitch.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcSwitch.java @@ -117,6 +117,6 @@ public class DcSwitch { * 故障数量 */ private int numberOfFaults; - private Map> dcDeviceList; + private List dcDeviceList; } diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java index 5d77cf24..8616e648 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java @@ -98,10 +98,7 @@ public class DcSwitchServiceImpl extends ServiceImpl i if (StringUtils.isNotEmpty(dcSwitch.getDeviceList())) { // 说明是设备交换机 List deviceList = getDeviceList(dcSwitch.getDeviceList()); - if (deviceList.size() > 0) { - Map> collect = deviceList.stream().collect(Collectors.groupingBy(DcDevice::getDeviceType)); - dcSwitch.setDcDeviceList(collect); - } + dcSwitch.setDcDeviceList(deviceList); } }catch (Exception e) { e.printStackTrace();