|
@@ -369,14 +369,14 @@ func GetMicroRoadShowPageListV12(pageSize, currentIndex, sourceId, tableType int
|
|
|
// @Param SearchType string int true "搜索类型: 1-路演回放; 2-问答系列; 3-调研反馈 多个用 , 隔开"
|
|
|
videoMico += ` AND a.chart_permission_id = 0 ` // 产业视频不在搜索范围内
|
|
|
if strings.Contains(searchType, "1") && !strings.Contains(searchType, "3") {
|
|
|
- audioAct += ` AND b.activity_type_id IN (2,7) AND b.is_yidong_conduct = 1 `
|
|
|
- videoAct += ` AND b.activity_type_id IN (2,7) AND b.is_yidong_conduct = 1 `
|
|
|
+ audioAct += ` AND a.file_type = 1 `
|
|
|
+ videoAct += ` AND a.file_type = 1 `
|
|
|
}
|
|
|
|
|
|
if !strings.Contains(searchType, "1") && strings.Contains(searchType, "3") {
|
|
|
|
|
|
- audioAct += ` AND ( b.is_yidong_conduct = 0 OR b.activity_type_id NOT IN (2,7) ) `
|
|
|
- videoAct += ` AND ( b.is_yidong_conduct = 0 OR b.activity_type_id NOT IN (2,7) ) `
|
|
|
+ audioAct += ` AND a.file_type = 2 `
|
|
|
+ videoAct += ` AND a.file_type = 2 `
|
|
|
}
|
|
|
|
|
|
if !strings.Contains(searchType, "2") {
|
|
@@ -420,6 +420,12 @@ func GetMicroRoadShowPageListV12(pageSize, currentIndex, sourceId, tableType int
|
|
|
err = errors.New("获取微路演音视频列表失败, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+ for _, v := range videoList {
|
|
|
+ v.LabelType = v.Type
|
|
|
+ if v.Type == 1 || v.Type == 2 {
|
|
|
+ v.LabelType = v.ActivityFileType
|
|
|
+ }
|
|
|
+ }
|
|
|
respList = videoList
|
|
|
return
|
|
|
}
|
|
@@ -844,3 +850,31 @@ func AddAllCygxVoiceAndVideoHistory(user *models.WxUserItem, sourceId, sourceTyp
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+// 获取满足路演回放的活动类型
|
|
|
+func GetActivityLYHFMapByActivityIds(activityIds []int) (mapResp map[int]bool) {
|
|
|
+ var err error
|
|
|
+ defer func() {
|
|
|
+ if err != nil {
|
|
|
+ go utils.SendAlarmMsg("获取满足路演回放的活动类型 GetActivityLYHFMapByActivityIds,失败,活动ID:"+fmt.Sprint(activityIds)+err.Error(), 2)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ var condition string
|
|
|
+ var pars []interface{}
|
|
|
+ lenArr := len(activityIds)
|
|
|
+ if lenArr == 0 {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ condition = ` AND activity_id IN (` + utils.GetOrmInReplace(lenArr) + `) `
|
|
|
+ pars = append(pars, activityIds)
|
|
|
+ list, e := models.GetActivityListByCondition(condition, pars)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetIndustrialManagementNewList, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ mapResp = make(map[int]bool, 0)
|
|
|
+ for _, v := range list {
|
|
|
+ mapResp[v.ActivityId] = true
|
|
|
+ }
|
|
|
+ return
|
|
|
+}
|