From 44af6d3b606c73eba639d5835d6bb700b94e0342 Mon Sep 17 00:00:00 2001 From: Diyu0904 <1819728964@qq.com> Date: Tue, 8 Apr 2025 17:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BE=E6=8A=A5=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mcwl/resource/service/impl/ReportServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); //翻译举报类型