From 38d5885e80240ed2f569341883b731d2d9bf5e10 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 30 Nov 2024 10:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/implement/user_feedback_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/user_feedback_implement.go b/src/implement/user_feedback_implement.go index 455588f..bc7f781 100644 --- a/src/implement/user_feedback_implement.go +++ b/src/implement/user_feedback_implement.go @@ -35,7 +35,7 @@ func (u UserFeedbackDb) FindUserFeedback(page, limit, uid string) (*[]model.User sess.And("uid=?", uid) } start := (zhios_order_relate_utils.StrToInt(page) - 1) * zhios_order_relate_utils.StrToInt(limit) - err := sess.Limit(zhios_order_relate_utils.StrToInt(limit), start).OrderBy("sort desc,id desc").Find(&m) + err := sess.Limit(zhios_order_relate_utils.StrToInt(limit), start).OrderBy("id desc").Find(&m) if err != nil { return nil, zhios_order_relate_logx.Error(err) } @@ -54,7 +54,7 @@ func (u UserFeedbackDb) FindUserFeedbackAndTotal(page, limit, uid, cid, content sess.And("content like ?", "%"+cid+"%") } start := (zhios_order_relate_utils.StrToInt(page) - 1) * zhios_order_relate_utils.StrToInt(limit) - count, err := sess.Limit(zhios_order_relate_utils.StrToInt(limit), start).OrderBy("sort desc,id desc").FindAndCount(&m) + count, err := sess.Limit(zhios_order_relate_utils.StrToInt(limit), start).OrderBy("id desc").FindAndCount(&m) if err != nil { return nil, count, zhios_order_relate_logx.Error(err) }