|
@@ -186,7 +186,7 @@ func GetReportListByCondition(condition string, pars []interface{}) (list []*Rep
|
|
|
// GetListByClassifyIdSecond 按照二级类型分页查询
|
|
|
func GetListByClassifyIdSecond(classifyIdSecond int, offset , limit int) (reportList []*Report, err error) {
|
|
|
err = global.MYSQL["rddp"].Model(Report{}).
|
|
|
- Select("id, classify_id_first, classify_name_first, classify_id_second, classify_name_second, title, stage, publish_time, author, video_url, abstract").
|
|
|
+ Select("id, classify_id_first, classify_name_first, classify_id_second, classify_name_second, title, stage, publish_time, author, video_name, video_url, video_play_seconds, abstract").
|
|
|
Where("classify_id_second = ? and state = 2 ", classifyIdSecond).
|
|
|
Order("publish_time desc, id desc").
|
|
|
Offset(offset).
|