|
|
|
|
@ -229,7 +229,8 @@ public class DeviceLineServiceImpl implements DeviceLineService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<LineAnalysisTreeDTO.LineNode> deviceParameterAnalysis(String keyword, Integer showDevices, Integer filterNoDeviceLine) {
|
|
|
|
|
public List<LineAnalysisTreeDTO.LineNode> deviceParameterAnalysis(String keyword, Integer deviceType,
|
|
|
|
|
Integer showDevices, Integer filterNoDeviceLine) {
|
|
|
|
|
if (showDevices == null || (showDevices != 1 && showDevices != 2)) {
|
|
|
|
|
showDevices = 1;
|
|
|
|
|
}
|
|
|
|
|
@ -259,7 +260,9 @@ public class DeviceLineServiceImpl implements DeviceLineService {
|
|
|
|
|
Map<Long, DeviceDO> deviceMap = new HashMap<>();
|
|
|
|
|
Map<Long, List<DeviceContactModelDO>> paramsByDeviceId = new HashMap<>();
|
|
|
|
|
if (!deviceIds.isEmpty()) {
|
|
|
|
|
deviceMap = deviceMapper.selectBatchIds(deviceIds).stream()
|
|
|
|
|
deviceMap = deviceMapper.selectList(new LambdaQueryWrapper<DeviceDO>()
|
|
|
|
|
.in(DeviceDO::getId, deviceIds)
|
|
|
|
|
.eq(deviceType != null, DeviceDO::getDeviceType, deviceType)).stream()
|
|
|
|
|
.collect(Collectors.toMap(DeviceDO::getId, Function.identity(), (a, b) -> a));
|
|
|
|
|
|
|
|
|
|
List<DeviceContactModelDO> parameters = deviceContactModelMapper.selectList(
|
|
|
|
|
|