提交 aff10b75 编写于 作者: sq3536's avatar sq3536

THIRD-PARTY

上级 2712e6c0
...@@ -86,17 +86,23 @@ public class SysPSSystemAspect ...@@ -86,17 +86,23 @@ public class SysPSSystemAspect
return; return;
Map<String,SysApp> oldApps = new HashMap<>(); Map<String,SysApp> oldApps = new HashMap<>();
List<SysApp> newList=new ArrayList<>();
SysPSSystem old = sysPSSystemService.getById(system.getPssystemid()); SysPSSystem old = sysPSSystemService.getById(system.getPssystemid());
if(old!=null&&old.getApps()!=null) if(old!=null&&old.getApps()!=null)
old.getApps().forEach(app->oldApps.put(app.getId(),app)); old.getApps().forEach(app->oldApps.put(app.getId(),app));
List<SysApp> newList=new ArrayList<>();
system.getSysstructure().getSysApps(true).forEach(appNode -> { system.getSysstructure().getSysApps(true).forEach(appNode -> {
if(oldApps.containsKey(appNode.getId())) if(oldApps.containsKey(appNode.getId()))
newList.add(oldApps.get(appNode.getId())); newList.add(oldApps.get(appNode.getId()));
else else
newList.add(appNode); newList.add(appNode);
}); });
if(old!=null&&old.getApps()!=null)
old.getApps().forEach(app->{
if("THIRD-PARTY".equalsIgnoreCase(app.getGroup()))
newList.add(app);
});
system.setApps(newList); system.setApps(newList);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册