Browse Source

该楼层平面图没有关联的元空间信息,/ispace/query接口未返回该楼层的元空间信息

lvxianyun 3 years ago
parent
commit
1b224baba2

+ 2 - 2
src/main/java/com/persagy/proxy/object/controller/AdmISpaceController.java

@@ -118,16 +118,16 @@ public class AdmISpaceController {
         }
         AdmResponse response = floorService.query(admQueryCriteriaFl);
         AdmResponse admResponse = new AdmResponse();
-        //admResponse.setMessage(param.getString("floorId"));
         if(CollUtil.isNotEmpty(response.getContent())){
             AdmFloor admFloor = (AdmFloor) response.getContent().get(0);
             if(admFloor!= null && StrUtil.isNotEmpty(admFloor.getBimIdPre())){
                 AdmQueryCriteria request = JsonHelper.toSingleEntity(param, AdmQueryCriteria.class);
                 request.setName(AdmISpace.OBJ_TYPE);
                 request.setFilters(" bimId startwith '"+admFloor.getBimIdPre()+"';");
-                service.doQuery(AdmContextUtil.toDmpContext(), request, AdmISpace.class);
+                admResponse = service.doQuery(AdmContextUtil.toDmpContext(), request, AdmISpace.class);
             }
         }
+        admResponse.setMessage(param.getString("floorId"));
         return admResponse;
     }