|
@@ -168,6 +168,15 @@ func GetMicroRoadshowVideoByIndustryIdCount(industryId int) (count int, err erro
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+//GetMicroRoadshowVideoByVideoIdCount 根据视频ID查询产业视频是否存在
|
|
|
+func GetMicroRoadshowVideoByVideoIdCount(industryId int) (count int, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := `SELECT COUNT(1) count
|
|
|
+ FROM cygx_micro_roadshow_video WHERE video_id = ? and publish_status = 1`
|
|
|
+ err = o.Raw(sql, industryId).QueryRow(&count)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
// GetMicroRoadshowVideoList 获取已经发布的微路演视频
|
|
|
func GetMicroRoadshowVideoList() (list []*MicroRoadshowVideo, err error) {
|
|
|
sql := `SELECT * FROM cygx_micro_roadshow_video WHERE publish_status = 1`
|