Explorar el Código

增加公告类型

tags/24080901
WendyYang hace 1 año
padre
commit
9e0a960413
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  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 Ver fichero

@@ -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 Ver fichero

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



Cargando…
Cancelar
Guardar