Browse Source

fix bug:/shaft/shaft-vertical-space接口返回的ai键不正确的问题

lijie 3 years ago
parent
commit
a23d86c20e

+ 1 - 1
src/main/java/com/persagy/proxy/object/controller/AdmSpaceController.java

@@ -388,7 +388,7 @@ public class AdmSpaceController {
         list.add("infos");
         list.add("properties");
         request.setProjection(list);
-        AdmResponse response = service.doQuerySpaces( AdmContextUtil.toDmpContext(), request);
+        AdmResponse response = service.doQuerySpaces(AdmContextUtil.toDmpContext(), request);
         ObjectNode objectNode = JsonNodeUtils.toObjectNode(response, null, null);
         if(StrUtil.isNotEmpty(request.getZoneType())){
             objectNode.put("zoneType", request.getZoneType());

+ 2 - 0
src/main/java/com/persagy/proxy/object/model/AdmSpace.java

@@ -1,5 +1,6 @@
 package com.persagy.proxy.object.model;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.node.ArrayNode;
 import com.persagy.proxy.adm.annotations.CascadeColumn;
 import com.persagy.proxy.adm.model.AdmBaseEntity;
@@ -96,6 +97,7 @@ public class AdmSpace extends AdmBaseEntity<AdmSpace> {
     /** BIM模型中坐标 */
     private String bimLocation;
     /** 二维码图片 */
+    @JsonProperty("ai")
     private Boolean isAi = false;
     /** 垂直交通关系空间id */
     private Set<String> spaceIdList;