|
|
@ -82,7 +82,7 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
public R newlyPublishedArticles(PageContentReqVO reqVO) { |
|
|
|
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"); |
|
|
|
throw new IllegalArgumentException("参数名不能包含admin"); |
|
|
|
} |
|
|
|
} |
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|