From cf54417ab1867d9aadba4ea7b23d407900543fba Mon Sep 17 00:00:00 2001 From: yokowu <18836617@qq.com> Date: Thu, 3 Jul 2025 17:44:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(record):=20=E4=BF=AE=E5=A4=8D=E5=B7=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E6=B2=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/billing/repo/billing.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/internal/billing/repo/billing.go b/backend/internal/billing/repo/billing.go index 4bf15bd..058786d 100644 --- a/backend/internal/billing/repo/billing.go +++ b/backend/internal/billing/repo/billing.go @@ -12,6 +12,7 @@ import ( "github.com/chaitin/MonkeyCode/backend/db/user" "github.com/chaitin/MonkeyCode/backend/domain" "github.com/chaitin/MonkeyCode/backend/pkg/cvt" + "github.com/chaitin/MonkeyCode/backend/pkg/entx" ) type BillingRepo struct { @@ -54,6 +55,7 @@ func (b *BillingRepo) CompletionInfo(ctx context.Context, id string) (*domain.Co // ListChatRecord implements domain.BillingRepo. func (b *BillingRepo) ListChatRecord(ctx context.Context, req domain.ListRecordReq) (*domain.ListChatRecordResp, error) { + ctx = entx.SkipSoftDelete(ctx) q := b.db.Task.Query(). WithUser(). WithModel(). @@ -100,6 +102,7 @@ func filterTask(q *db.TaskQuery, req domain.ListRecordReq) { // ListCompletionRecord implements domain.BillingRepo. func (b *BillingRepo) ListCompletionRecord(ctx context.Context, req domain.ListRecordReq) (*domain.ListCompletionRecordResp, error) { + ctx = entx.SkipSoftDelete(ctx) q := b.db.Task.Query(). WithUser(). WithModel().