Explorar o código

fix:继承报告时,需要继承自由布局的内容

Roc hai 4 días
pai
achega
6d9debc297
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      models/report_v2.go

+ 2 - 2
models/report_v2.go

@@ -93,8 +93,8 @@ func AddReportAndChapter(reportItem *Report, reportFreeLayoutList []*report.Repo
 			}
 
 			// 新增报告章节分页内容
-			if len(addReportChapter.ReportFreeLayoutList) > 0 {
-				reportChapterFreeLayoutList := addReportChapter.ReportFreeLayoutList
+			if len(addReportChapter.ReportChapterFreeLayoutList) > 0 {
+				reportChapterFreeLayoutList := addReportChapter.ReportChapterFreeLayoutList
 				for _, reportChapterFreeLayout := range reportChapterFreeLayoutList {
 					reportChapterFreeLayout.ReportId = int(reportId)
 					reportChapterFreeLayout.ReportChapterId = chapterItem.ReportChapterId