Fix an old query compatible bug. (#4714)

This commit is contained in:
吴晟 Wu Sheng 2020-04-26 10:58:36 +08:00 committed by GitHub
parent e8be63465c
commit f4864597c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ public class AggregationQuery implements GraphQLQueryResolver {
condition.setScope(Scope.ServiceInstance);
final IDManager.ServiceID.ServiceIDDefinition serviceIDDefinition = IDManager.ServiceID.analysisId(serviceId);
condition.setParentService(serviceIDDefinition.getName());
condition.setNormal(true);
condition.setOrder(order);
condition.setTopN(topN);
List<TopNEntity> list = new ArrayList<>();
@ -110,6 +111,7 @@ public class AggregationQuery implements GraphQLQueryResolver {
condition.setScope(Scope.Endpoint);
final IDManager.ServiceID.ServiceIDDefinition serviceIDDefinition = IDManager.ServiceID.analysisId(serviceId);
condition.setParentService(serviceIDDefinition.getName());
condition.setNormal(true);
condition.setOrder(order);
condition.setTopN(topN);
List<TopNEntity> list = new ArrayList<>();