|
@@ -84,7 +84,7 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
|
* @return 文章信息集合
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<CommunityArticleVo> selectCommunityArticleList(CommunityArticle communityArticle, int pageNum, int pageSize) {
|
|
|
+ public List<CommunityArticleVo> selectCommunityArticleList(CommunityArticle communityArticle, int pageNum, int pageSize, int searchType) {
|
|
|
//找出板块下的分类
|
|
|
Long classId = communityArticle.getClassId();
|
|
|
Long id = communityArticle.getId();
|
|
@@ -121,7 +121,7 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
|
|
|
|
//根据分类查找文章
|
|
|
int offset = (pageNum - 1) * pageSize;
|
|
|
- communityArticleVos = communityArticleMapper.selectCommunityArticleList(communityArticle, circleIds, offset, pageSize);
|
|
|
+ communityArticleVos = communityArticleMapper.selectCommunityArticleList(communityArticle, circleIds, offset, pageSize, searchType);
|
|
|
for (CommunityArticleVo articleVo : communityArticleVos) {
|
|
|
List<Map<String, Object>> imageList = articleVo.getImageList();
|
|
|
List<CommunityArticleImages> videoList = new ArrayList<>();
|