|
@@ -1716,13 +1716,6 @@ func (this *ActivityCoAntroller) ActivityListNew() {
|
|
|
isExternalLabel, _ := this.GetInt("IsExternalLabel") //
|
|
|
isResearchPoints, _ := this.GetInt("IsResearchPoints") //
|
|
|
|
|
|
- if isExternalLabel == 1 {
|
|
|
-
|
|
|
- }
|
|
|
- if isResearchPoints == 1 {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
if label == "undefined" {
|
|
|
label = ""
|
|
|
}
|
|
@@ -1853,12 +1846,18 @@ func (this *ActivityCoAntroller) ActivityListNew() {
|
|
|
}
|
|
|
conditioninit += ` AND art.activity_id IN ( ` + videoOrVoiceActivityIds + `) `
|
|
|
}
|
|
|
- //是否为外部资源
|
|
|
- if isExternalLabel == 1 {
|
|
|
- conditioninit += ` AND art.is_external_label = 1 `
|
|
|
- }
|
|
|
- if isResearchPoints == 1 {
|
|
|
- conditioninit += ` AND art.is_research_points = 1 `
|
|
|
+ //外部资源,研选扣点的并集搜索
|
|
|
+ if isExternalLabel == 1 && isResearchPoints == 1 {
|
|
|
+ conditioninit += ` AND ( art.is_external_label = 1 OR art.is_research_points = 1 )`
|
|
|
+ } else {
|
|
|
+ //是否为外部资源
|
|
|
+ if isExternalLabel == 1 {
|
|
|
+ conditioninit += ` AND art.is_external_label = 1 `
|
|
|
+ }
|
|
|
+ // 是否为研选扣点
|
|
|
+ if isResearchPoints == 1 {
|
|
|
+ conditioninit += ` AND art.is_research_points = 1 `
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//活动可见限制
|