浏览代码

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

linhuili 3 年之前
父节点
当前提交
09c38f37b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/persagy/proxy/dictionary/controller/AdmLabslController.java

+ 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;