From b453910f82e15421d1f79262cf46420d5db30afe Mon Sep 17 00:00:00 2001 From: xing Date: Mon, 6 Feb 2023 19:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/pkg/dao/posts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/dao/posts.go b/internal/pkg/dao/posts.go index ca037eb..4f89f24 100644 --- a/internal/pkg/dao/posts.go +++ b/internal/pkg/dao/posts.go @@ -178,7 +178,7 @@ func MonthPost(args ...any) (r []uint64, err error) { return model.Column[models.Posts, uint64](ctx, func(v models.Posts) (uint64, bool) { return v.Id, true }, model.Conditions( + model.Fields("ID"), model.Where(where), - model.Order(model.SqlBuilder{{"Id", "asc"}}), )) }