| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取通知公告分页列表") |
| | | @PreAuthorize("@ss.hasPermission('bpm:oa-notice:query')") |
| | | public CommonResult<PageResult<OaNoticeRespVO>> getNoticePage(@Valid OaNoticePageReqVO pageReqVO) { |
| | | PageResult<OaNoticeDO> pageResult = oaNoticeService.getNoticePage(getLoginUserId(), pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, OaNoticeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取通知公告详情") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:oa-notice:query')") |
| | | public CommonResult<OaNoticeRespVO> getNotice(@RequestParam("id") Long id) { |
| | | OaNoticeDO notice = oaNoticeService.getNotice(id, getLoginUserId()); |
| | | return success(BeanUtils.toBean(notice, OaNoticeRespVO.class)); |