提交 644790f1 编写于 作者: tangyaolong's avatar tangyaolong

把list去重

上级 cd63d8e8
......@@ -236,7 +236,7 @@ public class MetaModelExService extends MetaModelServiceImpl {
for (AssembleModel assembleModel : assembleModels) {
// 前置铺垫实体模型,防止外键冲突
if (assembleModel.getEntityModels() != null) {
List<MetaEntity> metaEntities = new ArrayList<>();
LinkedHashSet<MetaEntity> metaEntities = new LinkedHashSet<>();
assembleModel.getEntityModels().forEach(item->{
metaEntities.add(item.getEntity());
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册