|
|
@ -53,6 +53,17 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO); |
|
|
|
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO); |
|
|
|
return R.success(pageList); |
|
|
|
return R.success(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public R newlyPublishedArticles(PageContentReqVO reqVO) { |
|
|
|
|
|
|
|
QueryWrapper<SysContent> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
|
|
|
queryWrapper.eq("site_id", reqVO.getSiteId()); |
|
|
|
|
|
|
|
queryWrapper.eq("is_release", 1); |
|
|
|
|
|
|
|
queryWrapper.eq("deleted", 1).orderByDesc("create_time"); |
|
|
|
|
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
|
|
|
|
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO); |
|
|
|
|
|
|
|
return R.success(pageList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|