|
@@ -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
|
|
|
}
|