瀏覽代碼

fix bug:/object/zone/create接口返回的entityList为二维数组的问题

lijie 3 年之前
父節點
當前提交
3c32461a4e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/persagy/proxy/object/controller/AdmSpaceController.java

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

@@ -88,7 +88,7 @@ public class AdmSpaceController {
             AdmResponse admResponse = AdmResponse.success(vos);
             ObjectNode admResponseObj = JsonNodeUtils.toObjectNode(admResponse, null,null);
             ArrayNode arrayNode = JsonNodeUtils.toArrayNode(vos,null,null);
-            admResponseObj.putArray("entityList").add(arrayNode);
+            admResponseObj.putPOJO("entityList",arrayNode);
             return admResponseObj;
         }else{
             return JsonNodeUtils.toObjectNode(AdmResponse.failure(msg), null,null);