소스 검색

接口调整

hxd 2 달 전
부모
커밋
76a78c794b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      portal-service-infrastructure/src/main/java/com/hfln/portal/infrastructure/gateway/impl/WebGatewayImpl.java

+ 5 - 0
portal-service-infrastructure/src/main/java/com/hfln/portal/infrastructure/gateway/impl/WebGatewayImpl.java

@@ -175,6 +175,11 @@ public class WebGatewayImpl implements WebGateway {
                 .filter(Objects::nonNull)
                 .collect(Collectors.toSet());
 
+        //校验tenantId是否为空
+        if (CollectionUtils.isEmpty(tenantIds)) {
+            return CopyUtils.copyPage(devInfoPage, deviceDTOList);
+        }
+
         // 批量查询租户信息
         List<TblTenant> tenantList = tblTenantService.listByIds(tenantIds);
         Map<Long, String> tenantIdNameMap = tenantList.stream()