From aae7aa077bd64749c4d49730713cd73c49e19210 Mon Sep 17 00:00:00 2001 From: "jiaji.H" Date: Wed, 14 Jan 2026 09:16:34 +0800 Subject: [PATCH] =?UTF-8?q?Updata=EF=BC=9A=E6=9B=B4=E6=96=B0sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/bundleMetrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 连接)