From aa3c906a1885530868f0de4f6f90c65351d7cebf Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Wed, 30 Jun 2021 16:59:11 +0800 Subject: [PATCH] report --- .../dashboard/service/impl/ReportDashboardServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java index de232e15..6fef3da1 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java @@ -67,7 +67,9 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi ReportDashboardObjectDto result = new ReportDashboardObjectDto(); ReportDashboardDto reportDashboardDto = new ReportDashboardDto(); ReportDashboard reportDashboard = this.selectOne("report_code", reportCode); - GaeaAssert.notNull(reportDashboard, ResponseCode.RULE_CONTENT_NOT_EXIST, "reportDashboard"); + if (null == reportDashboard) { + return new ReportDashboardObjectDto(); + } GaeaBeanUtils.copyAndFormatter(reportDashboard, reportDashboardDto); List list = reportDashboardWidgetService.list(