|
@@ -133,7 +133,6 @@ func (this *ActivityCoAntroller) ActivityList() {
|
|
|
if isShowJurisdiction == 1 && chartPermissionIds == "" && userType == 4 {
|
|
|
activityTypeIds = "1,3"
|
|
|
}
|
|
|
- // TODO:【新】标签,【宏观】行业
|
|
|
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
@@ -888,6 +887,15 @@ func (this *ActivityCoAntroller) Detail() {
|
|
|
item.IndustryName = activityInfo.Label
|
|
|
industrialList = append(industrialList, item)
|
|
|
} else {
|
|
|
+ // 查研观向7.4-行业新标签
|
|
|
+ actIds := []int{activityId}
|
|
|
+ _, industryNewMap, e := services.GetActivityNewLabelMap(actIds)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取活动产业新标签失败, Err: " + e.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
var industrialManagementId string
|
|
|
for k, v := range industrialList {
|
|
|
if v.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
@@ -916,6 +924,7 @@ func (this *ActivityCoAntroller) Detail() {
|
|
|
if mapIndustrial[v.IndustrialManagementId] > 0 {
|
|
|
industrialList[k].IsJump = true
|
|
|
}
|
|
|
+ industrialList[k].IndustryNewLabel = industryNewMap[v.IndustrialManagementId]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -925,19 +934,8 @@ func (this *ActivityCoAntroller) Detail() {
|
|
|
activityInfo.YidongActivityUrl += "?source=11&fromHz=true&tgc=" + ydTgc
|
|
|
}
|
|
|
//处理按钮是否展示问题
|
|
|
- actDetail := services.ActivityButtonShow(activityInfo)
|
|
|
+ resp.Detail = services.ActivityButtonShow(activityInfo)
|
|
|
|
|
|
- // 查研观向7.4-行业新标签
|
|
|
- actIds := []int{actDetail.ActivityId}
|
|
|
- newLabelMap, e := services.GetActivityNewLabelMap(actIds)
|
|
|
- if e != nil {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取活动产业新标签失败, Err: " + e.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- actDetail.IndustryNewLabel = newLabelMap[actDetail.ActivityId]
|
|
|
-
|
|
|
- resp.Detail = actDetail
|
|
|
}
|
|
|
resp.HasPermission = hasPermission
|
|
|
br.Ret = 200
|
|
@@ -2719,9 +2717,7 @@ func (this *ActivityCoAntroller) ActivityListNew() {
|
|
|
}
|
|
|
|
|
|
// 查研观向7.4-始终查询宏观的活动
|
|
|
- if chartPermissionIds == "" {
|
|
|
- chartPermissionIds = "1"
|
|
|
- } else {
|
|
|
+ if chartPermissionIds != "" {
|
|
|
chartPermissionIds += ",1"
|
|
|
}
|
|
|
|
|
@@ -3307,9 +3303,7 @@ func (this *ActivityCoAntroller) LabelTypeListV5() {
|
|
|
}
|
|
|
|
|
|
// 查研观向7.4-始终查询宏观的活动
|
|
|
- if chartPermissionIds == "" {
|
|
|
- chartPermissionIds = "1"
|
|
|
- } else {
|
|
|
+ if chartPermissionIds != "" {
|
|
|
chartPermissionIds += ",1"
|
|
|
}
|
|
|
|
|
@@ -3475,7 +3469,7 @@ func (this *ActivityCoAntroller) LabelTypeListV5() {
|
|
|
sort.Sort(sort.Reverse(sort.IntSlice(intArr)))
|
|
|
|
|
|
// 活动【新】标签Map
|
|
|
- newLabelMap, e := services.GetActivityNewLabelMap(activityIds)
|
|
|
+ newLabelMap, _, e := services.GetActivityNewLabelMap(activityIds)
|
|
|
if e != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "获取活动【新】标签Map失败, Err: " + e.Error()
|
|
@@ -4315,9 +4309,7 @@ func (this *ActivityCoAntroller) LabelTypeListV6Pc() {
|
|
|
}
|
|
|
|
|
|
// 查研观向7.4-始终查询宏观的活动
|
|
|
- if chartPermissionIds == "" {
|
|
|
- chartPermissionIds = "1"
|
|
|
- } else {
|
|
|
+ if chartPermissionIds != "" {
|
|
|
chartPermissionIds += ",1"
|
|
|
}
|
|
|
|