|
@@ -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, "获取服务统计数据失败")
|
|
|
}
|