use API to create param

This commit is contained in:
赵禹光 2019-08-22 10:54:05 +08:00
parent d3fd616626
commit 5b3690b823

View File

@ -153,8 +153,7 @@ public class CatalogController {
String serviceName = WebUtils.optional(request, "serviceNameParam", StringUtils.EMPTY);
String groupName = WebUtils.optional(request, "groupNameParam", StringUtils.EMPTY);
String param = StringUtils.isBlank(serviceName) && StringUtils.isBlank(groupName) ?
StringUtils.EMPTY :
groupName + Constants.SERVICE_INFO_SPLITER + serviceName;
StringUtils.EMPTY : NamingUtils.getGroupedName(serviceName, groupName);
List<Service> serviceList = new ArrayList<>(8);
serviceManager.getPagedService(namespaceId, pageNo, pageSize, param, StringUtils.EMPTY, serviceList, false);