提交 612c3518 编写于 作者: tangyaolong's avatar tangyaolong

优化代码

上级 e1bbfeca
......@@ -23,9 +23,5 @@ public class AssembleModel {
private List<DstDataSource> dataSources;
private List<DstSystem> systems;
private LinkedHashSet<MetaDataSet> metaDataSets;
private LinkedHashSet<MetaRelationship> references;
private LinkedHashSet<MetaRelationship> nesteds;
private LinkedHashSet<MetaField> metaFields;
}
......@@ -247,11 +247,10 @@ public class MetaModelExService extends MetaModelServiceImpl {
@Transactional
public AssembleModel getModel(MetaModel et) {
String modelId = et.getId();
LinkedHashSet masterDsName = new LinkedHashSet();
AssembleModel models = new AssembleModel();
List<DAMetric> metrics = new ArrayList<>();
LinkedHashSet masterDsName = new LinkedHashSet();
Map<String, DstSystem> systemMap = new HashMap();
List<Map<String, DstSystem>> systems = new ArrayList<>();
LinkedHashSet<String> entities = new LinkedHashSet<>();
// 查询模型
MetaModel metaModel = metaModelService.get(et.getId());
......@@ -299,9 +298,8 @@ public class MetaModelExService extends MetaModelServiceImpl {
for (EntityModel entityModel : entityModels) {
masterDsName.add(entityModel.getDsName());
if (!ObjectUtils.isEmpty(entityModel.getEntity().getSystem())) {
if (!ObjectUtils.isEmpty(entityModel.getEntity())) {
systemMap.put(entityModel.getEntity().getSystem().getPssystemid(), entityModel.getEntity().getSystem());
systems.add(systemMap);
}
}
// 查询数据源
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册