Commit 8cdfe588 authored by 万成波's avatar 万成波

分页查询

parent 0da34a14
......@@ -51,7 +51,7 @@ public class MBbsMomentController {
*/
@GetMapping("/moments")
public TableDataInfo getMoments(QueryMomentBO bo) {
PageUtils.clearPage();
PageUtils.startPage();
List<BbsMomentListVO> moments = this.momentService.getMoments(bo);
return TableDataInfo.getDataTable(moments);
}
......@@ -166,7 +166,7 @@ public class MBbsMomentController {
@GetMapping("/comments")
public TableDataInfo getMomentComments(@RequestParam Long momentId) {
String username = SecurityUtils.getUsername();
PageUtils.clearPage();
PageUtils.startPage();
List<BbsCommentDetailVO> dbComments = this.momentCommentService.getMomentComments(momentId, username);
return TableDataInfo.getDataTable(dbComments);
}
......
......@@ -80,7 +80,7 @@ public class MBbsTopicController {
*/
@GetMapping("/moments")
public TableDataInfo getTopicMoments(QueryMomentBO bo) {
PageUtils.clearPage();
PageUtils.startPage();
List<BbsMomentListVO> dbMoments = this.momentService.getMoments(bo);
return TableDataInfo.getDataTable(dbMoments);
}
......
......@@ -49,7 +49,7 @@ public class MBbsUserController {
@GetMapping("/moments")
public TableDataInfo getUserMoments(String content) {
String username = SecurityUtils.getUsername();
PageUtils.clearPage();
PageUtils.startPage();
List<BbsMomentListVO> moments = this.momentService.getUserMoments(username, content);
return TableDataInfo.getDataTable(moments);
}
......
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