hxd 2 kuukautta sitten
vanhempi
commit
76a78c794b

+ 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()