Browse Source

用户反馈

master
huangjiajun 4 days ago
parent
commit
38d5885e80
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/implement/user_feedback_implement.go

+ 2
- 2
src/implement/user_feedback_implement.go View File

@@ -35,7 +35,7 @@ func (u UserFeedbackDb) FindUserFeedback(page, limit, uid string) (*[]model.User
sess.And("uid=?", uid) sess.And("uid=?", uid)
} }
start := (zhios_order_relate_utils.StrToInt(page) - 1) * zhios_order_relate_utils.StrToInt(limit) 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 { if err != nil {
return nil, zhios_order_relate_logx.Error(err) 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+"%") sess.And("content like ?", "%"+cid+"%")
} }
start := (zhios_order_relate_utils.StrToInt(page) - 1) * zhios_order_relate_utils.StrToInt(limit) 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 { if err != nil {
return nil, count, zhios_order_relate_logx.Error(err) return nil, count, zhios_order_relate_logx.Error(err)
} }


Loading…
Cancel
Save