|
|
|
@ -65,9 +65,10 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
|
public R articlePaginationList(PageContentReqVO reqVO) { |
|
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
|
|
|
|
|
|
/*if (reqVO.getModifiedTimeSort() == null && reqVO.getPublicationTimeSort() == null) { |
|
|
|
|
//没传任何排序参数时候 默认以发布时间排序
|
|
|
|
|
if (reqVO.getModifiedTimeSort() == null && reqVO.getPublicationTimeSort() == null && reqVO.getOrdinalSort() == null) { |
|
|
|
|
reqVO.setPublicationTimeSort(0); |
|
|
|
|
}*/ |
|
|
|
|
} |
|
|
|
|
/*if (reqVO.getIsDisable()!=null){ |
|
|
|
|
if (reqVO.getIsDisable() == 1) { |
|
|
|
|
//是否禁用(0默认,0启用 1禁用)
|
|
|
|
@ -80,9 +81,9 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R newlyPublishedArticles(PageContentReqVO reqVO) { |
|
|
|
|
if(reqVO.getRole()==null){ |
|
|
|
|
if (reqVO.getRole() == null) { |
|
|
|
|
|
|
|
|
|
}else if (reqVO.getRole()!=null||reqVO.getRole().equals("admin") || ObjectUtil.isNotNull(reqVO.isIsadmin()) || reqVO.isIsadmin()){ |
|
|
|
|
} else if (reqVO.getRole() != null || reqVO.getRole().equals("admin") || ObjectUtil.isNotNull(reqVO.isIsadmin()) || reqVO.isIsadmin()) { |
|
|
|
|
throw new IllegalArgumentException("参数名不能包含admin"); |
|
|
|
|
} |
|
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
|