Bladeren bron

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

pujielan 1 maand geleden
bovenliggende
commit
00b818eb4a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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, "获取服务统计数据失败")
 	}