Browse Source

增加公告类型

master
WendyYang 1 year ago
parent
commit
9e0a960413
2 changed files with 5 additions and 3 deletions
  1. +3
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java
  2. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java

+ 3
- 2
pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java View File

@@ -61,8 +61,9 @@ public class NoticeController {

@GetMapping("/dashboard/list")
@ApiOperation("工作台公告列表")
public PageVo<NoticeListItemVO> dashboardList(@RequestParam(required = false, defaultValue = "3") Integer limit) {
return noticeManage.dashboardList(limit);
public PageVo<NoticeListItemVO> dashboardList(@RequestParam(required = false, defaultValue = "3") Integer limit,
@RequestParam(required = false) Integer type) {
return noticeManage.dashboardList(limit, type);
}

@GetMapping("/manage/list")


+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java View File

@@ -73,10 +73,11 @@ public class NoticeManage {
}


public PageVo<NoticeListItemVO> dashboardList(Integer limit) {
public PageVo<NoticeListItemVO> dashboardList(Integer limit, Integer type) {
NoticeListReq req = new NoticeListReq();
req.setPageSize(limit);
req.setEnabled(true);
req.setType(type);
return listByManager(req);
}



Loading…
Cancel
Save