Commit 4d2a06cc authored by 郭凡凡's avatar 郭凡凡

总部-服务库-服务列表-服务树bug修复

parent d09d3ef1
...@@ -157,8 +157,14 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen ...@@ -157,8 +157,14 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen
@Override @Override
public List<OcpGroupBaseDto> apiBaseTreeOther(String apiGroupCompanyCode, String apiGroupPcode, Integer apiGroupPromotionType, String apiCode) { public List<OcpGroupBaseDto> apiBaseTreeOther(String apiGroupCompanyCode, String apiGroupPcode, Integer apiGroupPromotionType, String apiCode) {
List<OcpGroupBaseDto> ocpApiGroups = ocpApiGroupMapper.apiTree(apiGroupCompanyCode, apiGroupPcode, apiGroupPromotionType); List<OcpGroupBaseDto> ocpApiGroups = ocpApiGroupMapper.apiTree(apiGroupCompanyCode, apiGroupPcode, apiGroupPromotionType);
if (ocpApiGroups.size() != 0) { ArrayList<OcpGroupBaseDto> list = new ArrayList<>();
return ocpApiGroups; for (OcpGroupBaseDto ocpApiGroup : ocpApiGroups) {
if (StringUtils.isNotBlank(ocpApiGroup.getApiCode())&&StringUtils.isNotBlank(ocpApiGroup.getApiName())){
list.add(ocpApiGroup);
}
}
if (list.size() != 0) {
return list;
} else { } else {
if (StringUtils.isNotEmpty(apiCode)) { if (StringUtils.isNotEmpty(apiCode)) {
return Collections.EMPTY_LIST; return Collections.EMPTY_LIST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment