|
@@ -162,7 +162,7 @@ func GetHomeNewestList(userId, companyId, startSize, pageSize int, condition str
|
|
|
}
|
|
|
|
|
|
// GetMicroRoadShowPageList 获取微路演列表添加活动视频 更新与8.1版本
|
|
|
-func GetMicroRoadShowPageListV8(pageSize, currentIndex, audioId, videoId, activityVideoId int, keywords string) (respList []*models.MicroRoadShowPageList, total int, err error) {
|
|
|
+func GetMicroRoadShowPageListV8(pageSize, currentIndex, audioId, videoId, activityVideoId, filter int, keywords string) (respList []*models.MicroRoadShowPageList, total int, err error) {
|
|
|
var e error
|
|
|
// 根据每页数据量获取音视频配比
|
|
|
startSize := utils.StartIndex(currentIndex, pageSize)
|
|
@@ -174,8 +174,8 @@ func GetMicroRoadShowPageListV8(pageSize, currentIndex, audioId, videoId, activi
|
|
|
//音频的查询
|
|
|
var audioCond string
|
|
|
var audioPars []interface{}
|
|
|
- // 如果筛选条件为指定视频ID则不做音频查询
|
|
|
- if videoId > 0 || activityVideoId > 0 {
|
|
|
+ // 如果筛选条件为指定视频ID或只看视频则不做音频查询
|
|
|
+ if videoId > 0 || activityVideoId > 0 || filter == 1{
|
|
|
audioCond = ""
|
|
|
} else {
|
|
|
// 活动已发布且已结束
|
|
@@ -198,7 +198,7 @@ func GetMicroRoadShowPageListV8(pageSize, currentIndex, audioId, videoId, activi
|
|
|
var videoCondAct string
|
|
|
var videoPars []interface{}
|
|
|
var videoParsAct []interface{}
|
|
|
- if audioId > 0 {
|
|
|
+ if audioId > 0 || filter == 2{
|
|
|
videoCond = ""
|
|
|
} else {
|
|
|
if keywords != "" {
|