没有过滤条件直接返回原始Service列表

This commit is contained in:
赵禹光 2019-08-01 09:33:49 +08:00
parent 22b0ed7cc0
commit cc27d67ef9

View File

@ -603,6 +603,9 @@ public class ServiceManager implements RecordListener<Service> {
}
public List<Service> searchServices(String namespaceId, String regex, boolean hasIpCount) {
if(StringUtils.isBlank(regex) && !hasIpCount){
return new ArrayList<>(chooseServiceMap(namespaceId).values());
}
List<Service> result = new ArrayList<>();
for (Map.Entry<String, Service> entry : chooseServiceMap(namespaceId).entrySet()) {
Service service = entry.getValue();