From 4c2f7f7326b2a18cbb27e6d963c3a4caeead5245 Mon Sep 17 00:00:00 2001 From: lmk <1095689763@qq.com> Date: Tue, 16 Jun 2026 19:17:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(qa):=20ISSUE-004=20=E2=80=94=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20vet=20=E8=AD=A6=E5=91=8A=EF=BC=9Aappend=20with=20no?= =?UTF-8?q?=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit extract.go:164 的 append(whereArgs) 在 Go vet 中报错, 改为直接赋值 whereArgs(函数内不修改该切片,无需拷贝)。 --- common/report/extract/extract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/report/extract/extract.go b/common/report/extract/extract.go index 2d3e9df..aad19de 100644 --- a/common/report/extract/extract.go +++ b/common/report/extract/extract.go @@ -161,7 +161,7 @@ func (e *DailyExtractor) executeExtract(ctx context.Context, ec *model.ExtractCo for { // 添加分页 pagedSQL := fmt.Sprintf("%s LIMIT %d OFFSET %d", extractSQL, batchSize, offset) - args := append(whereArgs) + args := whereArgs rows, queryErr := gfdb.DB(ctx).GetAll(ctx, pagedSQL, args...) if queryErr != nil {