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

bugfix

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