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(