Pārlūkot izejas kodu

增加公告类型

tags/24080901
WendyYang pirms 1 gada
vecāks
revīzija
9e0a960413
2 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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



Notiek ielāde…
Atcelt
Saglabāt