公告列表去除分页参数
This commit is contained in:
@@ -24,7 +24,6 @@ public class AppAnnouncementController {
|
|||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
public Result get(@RequestParam(defaultValue = "0") Integer type) {
|
public Result get(@RequestParam(defaultValue = "0") Integer type) {
|
||||||
PageHelper.startPage(1,1);
|
|
||||||
List<Announcement> list = announcementService.list(new LambdaQueryWrapper<Announcement>()
|
List<Announcement> list = announcementService.list(new LambdaQueryWrapper<Announcement>()
|
||||||
.eq(Announcement::getType, type)
|
.eq(Announcement::getType, type)
|
||||||
.eq(Announcement::getState, 1)
|
.eq(Announcement::getState, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user