|
|
@ -57,6 +57,14 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R articlePaginationList(PageContentReqVO reqVO) { |
|
|
|
public R articlePaginationList(PageContentReqVO reqVO) { |
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (reqVO.getModifiedTimeSort() == null && reqVO.getPublicationTimeSort() == null) { |
|
|
|
|
|
|
|
reqVO.setPublicationTimeSort(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (reqVO.getTemplateStatus() == null) { |
|
|
|
|
|
|
|
//模板状态(0禁用;1启用)
|
|
|
|
|
|
|
|
reqVO.setTemplateStatus(0); |
|
|
|
|
|
|
|
} |
|
|
|
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO); |
|
|
|
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO); |
|
|
|
return R.success(pageList); |
|
|
|
return R.success(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|