Raod 4 anos atrás
pai
commit
aa3c906a18

+ 3 - 1
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<ReportDashboardWidget> list = reportDashboardWidgetService.list(