Browse Source

Merge branch 'dev' of ssh://git.cestong.com.cn:8162/cecf/observe-server into dev

pujielan 1 month ago
parent
commit
00b818eb4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/observe/service/service.go

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

@@ -1505,7 +1505,7 @@ func (s *Service) List(req *dto.ServiceListReq, resp *[]dto.ServiceListResp, tot
 	err := db.Scopes(pageScopes).
 		Select(
 			"service_name, " + strings.Join(fields, ", "),
-		).Group("service_name, timestamp").Order(orderby).Scan(resp).Limit(-1).Offset(-1).Count(total).Error
+		).Group("service_name").Order(orderby).Scan(resp).Limit(-1).Offset(-1).Count(total).Error
 	if err != nil {
 		return errors.Wrap(err, "获取服务统计数据失败")
 	}