浏览代码

报表复制问题

Raod 1 年之前
父节点
当前提交
6092d41dec

+ 2 - 1
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java

@@ -152,6 +152,7 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi
         dashboard.setReportCode(reportCode);
         if (null == reportDashboard) {
             //新增
+            dashboard.setId(null);
             this.insert(dashboard);
         } else {
             //更新
@@ -181,7 +182,7 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi
             reportDashboardWidget.setEnableFlag(1);
             reportDashboardWidget.setDeleteFlag(0);
             reportDashboardWidget.setSort((long) (i + 1));
-
+            reportDashboardWidget.setId(null);
             //兼容底层,不采用批量插入
             reportDashboardWidgetService.insert(reportDashboardWidget);