Browse Source

no message

xingzai 6 months ago
parent
commit
c61c128a64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/report.go

+ 2 - 2
models/report.go

@@ -217,7 +217,7 @@ func UpdateReportPublishTime(reportId int, videoNameDate string) (err error) {
 		return
 	}
 	//修改音频标题
-	sql2 := ` UPDATE report SET video_name=CONCAT(SUBSTRING_INDEX(video_name,"(",1),"` + videoNameDate + `") WHERE id = ? and (video_name !="" and video_name is not null)`
+	sql2 := ` UPDATE report SET video_name=CONCAT(SUBSTRING_INDEX(video_name,"(",1),"` + videoNameDate + `") WHERE id = ? and (video_name !='' and video_name is not null)`
 	err = global.DmSQL["rddp"].Exec(sql2, reportId).Error
 	return
 }
@@ -240,7 +240,7 @@ func UpdateReportChapterPublishTime(reportId int, videoNameDate string) (err err
 	}
 
 	//修改音频标题
-	sql2 := ` UPDATE report_chapter SET video_name=CONCAT(SUBSTRING_INDEX(video_name,"(",1),"` + videoNameDate + `") WHERE report_id = ? and (video_name !="" and video_name is not null)`
+	sql2 := ` UPDATE report_chapter SET video_name=CONCAT(SUBSTRING_INDEX(video_name,"(",1),"` + videoNameDate + `") WHERE report_id = ? and (video_name !='' and video_name is not null)`
 	err = global.DmSQL["rddp"].Exec(sql2, reportId).Error
 	return
 }