diff --git a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ReportServiceImpl.java b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ReportServiceImpl.java index c8791ef..5b15e56 100644 --- a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ReportServiceImpl.java +++ b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ReportServiceImpl.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.mcwl.common.constant.DictConstants; import com.mcwl.common.core.domain.R; import com.mcwl.common.utils.SecurityUtils; +import com.mcwl.common.utils.StringUtils; import com.mcwl.resource.domain.ModelProduct; import com.mcwl.resource.domain.Report; import com.mcwl.resource.domain.WorkFlow; @@ -67,7 +68,9 @@ public class ReportServiceImpl implements ReportService { } Page reportPage = reportMapper.selectPage(page, reportLambdaQueryWrapper); - + if (StringUtils.isEmpty(reportPage.getRecords())){ + return R.ok(reportPage); + } for (Report record : reportPage.getRecords()) { record.setNickName(sysUserMapper.selectUserById(record.getUserId()).getNickName()); //翻译举报类型