瀏覽代碼

用户反馈

master
huangjiajun 4 天之前
父節點
當前提交
38d5885e80
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/implement/user_feedback_implement.go

+ 2
- 2
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)
}


Loading…
取消
儲存