路佳明 1 месяц назад
Родитель
Сommit
9a4e6d5762
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/observe/service/ot_app_score.go

+ 1 - 1
app/observe/service/ot_app_score.go

@@ -68,7 +68,7 @@ func (e *AppScore) GetServicesDetails(ctx context.Context, list *[]dto.ServiceAp
 	err := e.PgOrm.Table(tbl).
 		Select("service_name, sum(request_count) as total, sum(span_status_error_count) as error_num, avg(apdex) as apdex").
 		Where("timestamp>=? and timestamp<?", start, end).
-		Where("app_name", params.AppAlias).Group("service_name, timestamp").
+		Where("app_name", params.AppAlias).Group("service_name").
 		Find(list).Error
 	if err != nil {
 		return err