|
|
@@ -121,20 +121,12 @@ public class NoticeManage { |
|
|
|
noticeService.updateById(notice); |
|
|
|
} |
|
|
|
|
|
|
|
public PageVo<NoticeListItemVO> list(Integer limit, Integer type) { |
|
|
|
NoticeListReq req = new NoticeListReq(); |
|
|
|
req.setPageSize(limit); |
|
|
|
req.setEnabled(true); |
|
|
|
req.setType(type); |
|
|
|
return listByManagerByPermission(req); |
|
|
|
} |
|
|
|
|
|
|
|
public PageVo<NoticeListItemVO> dashboardList(Integer limit, Integer type) { |
|
|
|
NoticeListReq req = new NoticeListReq(); |
|
|
|
req.setPageSize(limit); |
|
|
|
req.setEnabled(true); |
|
|
|
req.setType(type); |
|
|
|
return listByManager(req); |
|
|
|
return listByManagerByPermission(req); |
|
|
|
} |
|
|
|
|
|
|
|
public PageVo<NoticeListItemVO> listByManager(NoticeListReq req) { |
|
|
|