| | |
| | | ; |
| | | IPage<Notice> noticeIPage = noticeMapper.selectPage(page, queryWrapper); |
| | | List<NoticeCardDTO> noticeCardDTOs = new ArrayList<>(); |
| | | if (CollectionUtils.isEmpty(noticeIPage.getRecords())){ |
| | | if (com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(noticeIPage.getRecords())){ |
| | | noticeCardDTOs = noticeIPage.getRecords().stream().map(s -> { |
| | | NoticeCardDTO noticeCardDTO = new NoticeCardDTO(); |
| | | BeanUtils.copyProperties(s, noticeCardDTO); |
| | | return noticeCardDTO; |
| | | |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | PageData<NoticeCardDTO> pageData = new PageData<>(); |