|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package com.huoran.iasf.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
@ -74,7 +75,7 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R newlyPublishedArticles(PageContentReqVO reqVO) { |
|
|
|
|
if (reqVO.getRole().equals("admin")||reqVO.isIsadmin()){ |
|
|
|
|
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()); |
|
|
|
|