refactor: 通知公告的优化

通知公告的优化
This commit is contained in:
Theo
2024-09-21 21:43:20 +08:00
parent 29b23e5c04
commit 0691b93112
10 changed files with 15 additions and 12 deletions

View File

@@ -269,7 +269,7 @@ public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> impleme
* @return 通知公告分页列表
*/
@Override
public IPage<NoticeVO> getMyNoticePage(NoticeQuery queryParams) {
public IPage<NoticeStatusVO> getMyNoticePage(NoticeQuery queryParams) {
Long userId = SecurityUtils.getUserId();
queryParams.setUserId(userId);
return noticeStatusService.getMyNoticePage(new Page<>(queryParams.getPageNum(), queryParams.getPageSize()),queryParams);

View File

@@ -59,7 +59,7 @@ public class NoticeStatusServiceImpl extends ServiceImpl<NoticeStatusMapper, Not
* @return 通知公告分页列表
*/
@Override
public IPage<NoticeVO> getMyNoticePage(Page<NoticeVO> page, NoticeQuery queryParams) {
public IPage<NoticeStatusVO> getMyNoticePage(Page<NoticeVO> page, NoticeQuery queryParams) {
return this.getBaseMapper().getMyNoticePage(new Page<>(queryParams.getPageNum(), queryParams.getPageSize()),queryParams);
}