Commit fa003c1c by 段启岩

问题的回复按时间倒序输出

parent 9cb45a05
......@@ -165,7 +165,10 @@ public class QuestionReplyServiceImpl extends ServiceImpl<QuestionReplyMapper, Q
//2.得到页面信息
IPage<QuestionReply> questionReplyPage = new Page<>(pageNumber, pageSize);
return page(questionReplyPage, QuestionUtils.getWrapper("question_id", questionId));
QueryWrapper<QuestionReply> questionReplyQueryWrapper = new QueryWrapper<>();
questionReplyQueryWrapper.eq("question_id", questionId);
questionReplyQueryWrapper.orderByDesc("createTime");
return page(questionReplyPage, questionReplyQueryWrapper);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment