|
@@ -144,6 +144,10 @@ public class WebGatewayImpl implements WebGateway {
|
|
// 换为目标DTO
|
|
// 换为目标DTO
|
|
List<DeviceDTO> deviceDTOList = CopyUtils.copyList(devInfoPage.getRecords(), DeviceDTO.class);
|
|
List<DeviceDTO> deviceDTOList = CopyUtils.copyList(devInfoPage.getRecords(), DeviceDTO.class);
|
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(deviceDTOList)) {
|
|
|
|
+ return CopyUtils.copyPage(devInfoPage, deviceDTOList);
|
|
|
|
+ }
|
|
|
|
+
|
|
//收集所有tenantId
|
|
//收集所有tenantId
|
|
Set<Long> tenantIds = deviceDTOList.stream()
|
|
Set<Long> tenantIds = deviceDTOList.stream()
|
|
.map(DeviceDTO::getTenantId)
|
|
.map(DeviceDTO::getTenantId)
|