diff --git a/internal/dao/bundleMetrics.go b/internal/dao/bundleMetrics.go index 343861b..cc55ad4 100644 --- a/internal/dao/bundleMetrics.go +++ b/internal/dao/bundleMetrics.go @@ -1284,7 +1284,7 @@ func MetricsArtistAccountExport(req *bundle.MetricsArtistAccountExportReq) (*bun subQuery := app.ModuleClients.BundleDB.Table("cast_media_account"). Select("artist_uuid,any_value(artist_name) as artist_name,any_value(created_at) as created_at"). Group("artist_uuid"). - Where("deleted_at = 0") + Where("deleted_at = 0 and expired = 1") //如果选择了月份 if len(req.Month) > 0 { // 构建多个月份的时间范围条件(使用 OR 连接)