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

分页查询

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