|
|
@ -98,10 +98,7 @@ public class DcSwitchServiceImpl extends ServiceImpl<DcSwitchMapper, DcSwitch> i |
|
|
|
if (StringUtils.isNotEmpty(dcSwitch.getDeviceList())) { |
|
|
|
// 说明是设备交换机
|
|
|
|
List<DcDevice> deviceList = getDeviceList(dcSwitch.getDeviceList()); |
|
|
|
if (deviceList.size() > 0) { |
|
|
|
Map<String, List<DcDevice>> collect = deviceList.stream().collect(Collectors.groupingBy(DcDevice::getDeviceType)); |
|
|
|
dcSwitch.setDcDeviceList(collect); |
|
|
|
} |
|
|
|
dcSwitch.setDcDeviceList(deviceList); |
|
|
|
} |
|
|
|
}catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|