Browse Source

拓扑图查询设备实例bug修复

linhuili 3 years ago
parent
commit
09c38f37b4

+ 1 - 1
src/main/java/com/persagy/proxy/dictionary/controller/AdmLabslController.java

@@ -153,7 +153,7 @@ public class AdmLabslController {
         }
         if(specialQueryFlag){
             //查询未明确建筑,未明确楼层
-            Long count = queryResponse.getCount();
+            Long count = CollectionUtil.isEmpty(queryResponse.getContent()) ? 0 : Long.valueOf(queryResponse.getContent().size());
             Integer pageSize = request.getPageSize();
             if(count < pageSize){
                 long specailPageSize = pageSize - count;