| | |
| | | import org.springblade.modules.desk.vo.NoticeVO; |
| | | import org.springblade.modules.desk.wrapper.NoticeWrapper; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | |
| | | private final INoticeService noticeService; |
| | | |
| | | private final IDeptService iDeptService; |
| | | private final IUserService userService; |
| | | |
| | | /** |
| | | * 详情 |
| | |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入notice") |
| | | public R<IPage<NoticeVO>> page(@ApiIgnore NoticeVO notice, Query query) { |
| | | //通过deptId获取组织机构信息 |
| | | Dept dept = iDeptService.getById(notice.getDeptId()); |
| | | // if (dept.getDeptCategory() == 1) { |
| | | // notice.setCategory(1); |
| | | // } else { |
| | | // notice.setCategory(2); |
| | | // } |
| | | IPage<NoticeVO> pages = noticeService.selectNoticePage(Condition.getPage(query), notice); |
| | | return R.data(pages); |
| | | } |