|
@@ -43,6 +43,7 @@ public class MapServiceImpl implements IMapService {
|
|
|
@Override
|
|
|
public Map<String, Object> getMap(String entityId) {
|
|
|
Map<String, Object> returnValue = new HashMap<>(8);
|
|
|
+
|
|
|
returnValue.put("entID",entityId);
|
|
|
HashSet<String> ids = new HashSet<>();
|
|
|
ids.add(entityId);
|
|
@@ -84,6 +85,27 @@ public class MapServiceImpl implements IMapService {
|
|
|
return returnValue;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> getAllMap() {
|
|
|
+ Map<String, Object> returnValue = new HashMap<>(8);
|
|
|
+ returnValue.put("entID", null);
|
|
|
+ returnValue.put("entName", null);
|
|
|
+ // 2. 根据实体id获取《实体关系》
|
|
|
+ List<EntityRelation> entityRelationList = entityRelationService.getAllRelationByEntityId();
|
|
|
+ returnValue.put("relListVO", entityRelationList);
|
|
|
+
|
|
|
+ // 3. 根据实体关系得实体id 获取所有《实体》
|
|
|
+ List<Entity> entityList = entityService.getAllEntityByEntityIds();
|
|
|
+ returnValue.put("entListVO", entityList);
|
|
|
+// // 4.2 根据实体类id 获取《实体类关系》
|
|
|
+// entityClassRelationList = entityClassRelationService.getClazzRelByClassId(classId);
|
|
|
+// returnValue.put("relClsListVO", entityClassRelationList);
|
|
|
+// // 5. 根据实体类关系得实体类id 获取所有《实体类》
|
|
|
+// List<EntityClass> entityClassList = getEntClsListVO(returnValue, classId, entityClassRelationList);
|
|
|
+// returnValue.put("entClsListVO", entityClassList);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
private List<EntityClass> getEntClsListVO(Map<String, Object> returnValue, String classId, List<EntityClassRelation> entityClassRelationList) {
|
|
|
Set<String> entityClassIdSet;
|
|
|
if (CollectionUtils.isNotEmpty(entityClassRelationList)) {
|