|
@@ -58,7 +58,7 @@ func GetListByReportIdTypeIds(reportId int, typeIds []int, classifyNameFirst str
|
|
|
|
|
|
// GetContentById 根据ID获取章节详情
|
|
// GetContentById 根据ID获取章节详情
|
|
func GetContentById(id int, typeIds []int) (info *ReportChapter, err error) {
|
|
func GetContentById(id int, typeIds []int) (info *ReportChapter, err error) {
|
|
- err = global.MYSQL["rddp"].Model(ReportChapter{}).Select("report_chapter_id, report_id, is_edit, classify_name_first, classify_id_first, content, trend, type_id, type_name, abstract, title, author, stage, publish_time, content, content_sub, video_url, video_name, video_play_seconds, video_size").
|
|
|
|
|
|
+ err = global.MYSQL["rddp"].Model(ReportChapter{}).Select("report_chapter_id, report_id, is_edit, classify_name_first, classify_id_first, content, trend, type_id, type_name, abstract, title, abstract, author, stage, publish_time, content, content_sub, video_url, video_name, video_play_seconds, video_size").
|
|
Where("report_chapter_id = ? and type_id in (?) AND publish_state = 2 ", id, typeIds).
|
|
Where("report_chapter_id = ? and type_id in (?) AND publish_state = 2 ", id, typeIds).
|
|
First(&info).Error
|
|
First(&info).Error
|
|
if err == utils.ErrNoRow {
|
|
if err == utils.ErrNoRow {
|