Przeglądaj źródła

增加公告类型

tags/24080901
WendyYang 1 rok temu
rodzic
commit
9e0a960413
2 zmienionych plików z 5 dodań i 3 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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);
}



Ładowanie…
Anuluj
Zapisz