|
@@ -97,7 +97,7 @@ func AddReportAndChapter(reportInfo *models.Report, inheritReportId int, grantAd
|
|
|
reportInfo.HeadImg = ``
|
|
|
reportInfo.EndImg = ``
|
|
|
reportInfo.EndResourceId = inheritReport.EndResourceId
|
|
|
- reportInfo.FreeLayoutConfig= inheritReport.FreeLayoutConfig
|
|
|
+ reportInfo.FreeLayoutConfig = inheritReport.FreeLayoutConfig
|
|
|
if inheritReport.HeadResourceId > 0 {
|
|
|
reportInfo.HeadImg = inheritReport.HeadImg
|
|
|
}
|
|
@@ -228,7 +228,7 @@ func EditReport(reportInfo *models.Report, req models.EditReq, sysUser *system.A
|
|
|
reportInfo.State = state
|
|
|
|
|
|
//updateCols := []string{"ClassifyIdFirst", "ClassifyNameFirst", "ClassifyIdSecond", "ClassifyNameSecond", "ClassifyIdThird", "ClassifyNameThird", "Title", "Abstract", "Author", "Frequency", "Stage", "CreateTime", "IsPublicPublish", "LastModifyAdminId", "LastModifyAdminName", "ModifyTime"}
|
|
|
- updateCols := []string{"Title", "Abstract", "Author", "Frequency", "CreateTime", "IsPublicPublish", "LastModifyAdminId", "LastModifyAdminName", "ModifyTime", "State"}
|
|
|
+ updateCols := []string{"Title", "Abstract", "Author", "Frequency", "CreateTime", "IsPublicPublish", "LastModifyAdminId", "LastModifyAdminName", "ModifyTime", "State", "MiniShow"}
|
|
|
|
|
|
if req.HeadResourceId > 0 {
|
|
|
reportInfo.HeadResourceId = req.HeadResourceId
|
|
@@ -238,6 +238,7 @@ func EditReport(reportInfo *models.Report, req models.EditReq, sysUser *system.A
|
|
|
reportInfo.EndResourceId = req.EndResourceId
|
|
|
updateCols = append(updateCols, "EndResourceId")
|
|
|
}
|
|
|
+ reportInfo.MiniShow = req.MiniShow
|
|
|
|
|
|
// 需要添加的报告授权数据
|
|
|
addReportAdminList := make([]*report.ReportGrant, 0)
|