提交 cd63d8e8 编写于 作者: zoo457790531's avatar zoo457790531

【dst模型导入】改成用save 和saveBatch

上级 b316a7ab
......@@ -240,19 +240,19 @@ public class MetaModelExService extends MetaModelServiceImpl {
assembleModel.getEntityModels().forEach(item->{
metaEntities.add(item.getEntity());
});
metaEntityService.saveOrUpdateBatch(metaEntities);
metaEntityService.saveBatch(metaEntities);
}
if (assembleModel.getMetaModel() != null) {
metaModelService.saveOrUpdate(assembleModel.getMetaModel());
metaModelService.save(assembleModel.getMetaModel());
}
if (assembleModel.getDaBuilds() != null) {
idaBuildService.saveOrUpdateBatch(assembleModel.getDaBuilds());
idaBuildService.saveBatch(assembleModel.getDaBuilds());
}
if (assembleModel.getMetrics() != null) {
idaMetricService.saveOrUpdateBatch(assembleModel.getMetrics());
idaMetricService.saveBatch(assembleModel.getMetrics());
}
if (assembleModel.getRuleItems() != null) {
ruleItemService.saveOrUpdateBatch(assembleModel.getRuleItems());
ruleItemService.saveBatch(assembleModel.getRuleItems());
}
}
return true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册