Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng committed Mar 13, 2024
1 parent 76b5aec commit 1aa3f43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private Task<PaginatedListBase<EndpointListDto>> GetEndpointAsync(BaseApmRequest
var (where, parameters) = AppendWhere(query);
var countSql = $"select count(1) from(select count(1) from {Constants.TraceTableFull} where {where} {groupBy})";
PaginatedListBase<EndpointListDto> result = new() { Total = Convert.ToInt64(Scalar(countSql, parameters)) };
var orderBy = GetOrderBy(query, new());
var orderBy = GetOrderBy(query, endpointOrders);
var sql = $@"select * from( select {selectField} from {Constants.TraceTableFull} where {where} {groupBy} {orderBy} @limit)";
SetData(sql, parameters, result, query, parseFn);
return Task.FromResult(result);
Expand Down

0 comments on commit 1aa3f43

Please sign in to comment.