From 6e3f0f64f71a861374e6c905bebadebe4ae9f2e9 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Fri, 1 Dec 2023 15:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/publishedGi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/publishedGi.go b/service/publishedGi.go index d54960b..8b52784 100644 --- a/service/publishedGi.go +++ b/service/publishedGi.go @@ -23,7 +23,7 @@ func PageQueryPublished(req *dto.PagePublishedReqDto) *dto.PageDto { ). LeftJoin(pv, p.DataID.EqCol(pv.ID)). LeftJoin(u, pv.UserID.EqCol(u.ID)). - Order(pv.PublishAt.Desc()) + Order(p.Status.Desc(), pv.PublishAt.Desc()) if req.Name != "" { where = where.Where(p.Code.Like(fmt.Sprintf("%%%s%%", req.Name))) }