Ver a proveniência

用户反馈

master
huangjiajun há 4 dias
ascendente
cometimento
38d5885e80
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      src/implement/user_feedback_implement.go

+ 2
- 2
src/implement/user_feedback_implement.go Ver ficheiro

@@ -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)
}


Carregando…
Cancelar
Guardar