Browse Source

fix : 创建空间500

lvxianyun 3 years ago
parent
commit
6f4db90cf3

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

@@ -87,7 +87,8 @@ public class AdmSpaceController {
             vos = service.doInsertExt(AdmContextUtil.toDmpContext(), AdmSpace.class, vos);
             AdmResponse admResponse = AdmResponse.success(vos);
             ObjectNode admResponseObj = JsonNodeUtils.toObjectNode(admResponse, null,null);
-            ArrayNode arrayNode = admResponseObj.putArray("entityList");
+            ArrayNode arrayNode = JsonNodeUtils.toArrayNode(vos,null,null);
+            admResponseObj.putArray("entityList").add(arrayNode);
             return admResponseObj;
         }else{
             return JsonNodeUtils.toObjectNode(AdmResponse.failure(msg), null,null);