From 9e0a96041330885f8adffeeb9447fe80b861c98d Mon Sep 17 00:00:00 2001 From: WendyYang Date: Wed, 22 Feb 2023 16:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=91=8A=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/sys/controller/NoticeController.java | 5 +++-- .../src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java index 6f8a722..92e42b4 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java @@ -61,8 +61,9 @@ public class NoticeController { @GetMapping("/dashboard/list") @ApiOperation("工作台公告列表") - public PageVo dashboardList(@RequestParam(required = false, defaultValue = "3") Integer limit) { - return noticeManage.dashboardList(limit); + public PageVo dashboardList(@RequestParam(required = false, defaultValue = "3") Integer limit, + @RequestParam(required = false) Integer type) { + return noticeManage.dashboardList(limit, type); } @GetMapping("/manage/list") diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java index ad11871..128610b 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java @@ -73,10 +73,11 @@ public class NoticeManage { } - public PageVo dashboardList(Integer limit) { + public PageVo dashboardList(Integer limit, Integer type) { NoticeListReq req = new NoticeListReq(); req.setPageSize(limit); req.setEnabled(true); + req.setType(type); return listByManager(req); }