|
@@ -1704,13 +1704,13 @@ type ReportShartUrlResp struct {
|
|
|
UrlToken string `description:"分享链接token"`
|
|
|
}
|
|
|
|
|
|
-
|
|
|
func GetAllPublishReportId() (items []int, err error) {
|
|
|
o := global.DbMap[utils.DbNameReport]
|
|
|
sql := `SELECT a.id FROM report as a WHERE 1=1 AND state in (2,6) `
|
|
|
err = o.Raw(sql).Find(&items).Error
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
func InsertOrUpdateReportFreeLayoutContentPage(reportInfo *Report, ormList []*report.ReportFreeLayout) (err error) {
|
|
|
tx := global.DbMap[utils.DbNameReport].Begin()
|
|
|
|
|
@@ -1755,5 +1755,4 @@ func UpdateChapterFreeLayoutContentPage(reportInfo *Report, chapterInfo *ReportC
|
|
|
}
|
|
|
}
|
|
|
return report.BatchInsertOrUpdatePages(tx, ormList, true, reportInfo.Id, chapterInfo.ReportChapterId)
|
|
|
-
|
|
|
}
|