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

bugfix

上级 9a82a7dd
...@@ -223,21 +223,25 @@ public class SystemModel extends BaseModel { ...@@ -223,21 +223,25 @@ public class SystemModel extends BaseModel {
public synchronized Map<String, SubServiceApiModel> getSubServiceApiMap() { public synchronized Map<String, SubServiceApiModel> getSubServiceApiMap() {
if (subServiceApiMap == null) { if (subServiceApiMap == null) {
subServiceApiMap = new LinkedHashMap<>(); subServiceApiMap = new LinkedHashMap<>();
getSystem().getAllPSSubSysServiceAPIs().forEach(subSysServiceAPI -> { if(getSystem().getAllPSSubSysServiceAPIs()!=null)
SubServiceApiModel subapi=new SubServiceApiModel(subSysServiceAPI).setSystem(this); {
subServiceApiMap.put(subSysServiceAPI.getCodeName(), subapi); getSystem().getAllPSSubSysServiceAPIs().forEach(subSysServiceAPI -> {
SubServiceApiModel subapi=new SubServiceApiModel(subSysServiceAPI).setSystem(this);
String module=subapi.getModule(); subServiceApiMap.put(subSysServiceAPI.getCodeName(), subapi);
if(!StringUtils.isEmpty(module))
{ String module=subapi.getModule();
if(subServiceApiModules==null) if(!StringUtils.isEmpty(module))
subServiceApiModules=new LinkedHashMap<>(); {
if(!subServiceApiModules.containsKey(module)) if(subServiceApiModules==null)
subServiceApiModules.put(module,new ArrayList<>()); subServiceApiModules=new LinkedHashMap<>();
subServiceApiModules.get(module).add(subapi); if(!subServiceApiModules.containsKey(module))
} subServiceApiModules.put(module,new ArrayList<>());
subServiceApiModules.get(module).add(subapi);
}
});
}
});
} }
return subServiceApiMap; return subServiceApiMap;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册