zhangqiankun 3 роки тому
батько
коміт
3d07a526a9

+ 1 - 11
src/main/java/com/persagy/proxy/object/service/impl/AdmSpaceServiceImpl.java

@@ -86,17 +86,7 @@ public class AdmSpaceServiceImpl extends AbstractAdmBaseServiceImpl<AdmSpace> im
             voList = processHeight(spaceMapByFlId, floors);
         }
         //插入空间
-        List<AdmSpace> vosR = null;
-        if(CollUtil.isNotEmpty(voList)) {
-        	ArrayNode vos = AdmEntityTransferUtil.toDmpMultiEntity(voList);
-            // 调用中台新增
-            DmpResult<JSONArray> response = rwdClient.createObject(context, JSONArray.parseArray(vos.toString()));
-            if(!DmpResult.SUCCESS.equals(response.getResult())) {
-                throw new RuntimeException("调用中台查询接口出错:" + response.getMessage());
-            }
-            
-            vosR = AdmEntityTransferUtil.toAdmMultiEntityExtra(response.getData(), null, clazz);
-        }
+        List<AdmSpace> vosR = doInsert(context, clazz, voList);
         //添加绑定关系
         processRelations(vosR);
         //处理关系标记