|
@@ -2905,6 +2905,12 @@ func (this *ReportController) SearchReportAndResource() {
|
|
|
|
|
|
condition = ` AND a.publish_status = 1 AND a.article_type_id IN (` + articleTypeIds + `) AND (m.industry_name LIKE '%` + keyWord + `%' OR m.subject_names LIKE '%` + keyWord + `%' ) `
|
|
condition = ` AND a.publish_status = 1 AND a.article_type_id IN (` + articleTypeIds + `) AND (m.industry_name LIKE '%` + keyWord + `%' OR m.subject_names LIKE '%` + keyWord + `%' ) `
|
|
|
|
|
|
|
|
+ hotMapindustrial, e := services.IndustrialManagementHotMapGropuPermission()
|
|
|
|
+ if e != nil {
|
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
|
+ br.ErrMsg = "获取hot标签失败,IndustrialManagementHotMapGropuPermission ,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
listYxResource, err := models.GetSearchResourceList(user.UserId, condition, 0, pageSize)
|
|
listYxResource, err := models.GetSearchResourceList(user.UserId, condition, 0, pageSize)
|
|
if err != nil {
|
|
if err != nil {
|
|
br.Msg = "获取信息失败"
|
|
br.Msg = "获取信息失败"
|
|
@@ -2962,6 +2968,7 @@ func (this *ReportController) SearchReportAndResource() {
|
|
if fllowMap[v.IndustrialManagementId] > 0 {
|
|
if fllowMap[v.IndustrialManagementId] > 0 {
|
|
listHzResource[k].IsFollw = true
|
|
listHzResource[k].IsFollw = true
|
|
}
|
|
}
|
|
|
|
+ v.IsHot = hotMapindustrial[v.IndustrialManagementId]
|
|
industrialIdSlice := make([]int, 0)
|
|
industrialIdSlice := make([]int, 0)
|
|
articleIdArr := make([]int, 0)
|
|
articleIdArr := make([]int, 0)
|
|
industrialIdSlice = append(industrialIdSlice, v.IndustrialManagementId)
|
|
industrialIdSlice = append(industrialIdSlice, v.IndustrialManagementId)
|
|
@@ -3137,6 +3144,7 @@ func (this *ReportController) SearchReportAndResource() {
|
|
if fllowMap[v.IndustrialManagementId] > 0 {
|
|
if fllowMap[v.IndustrialManagementId] > 0 {
|
|
listYxResource[k].IsFollw = true
|
|
listYxResource[k].IsFollw = true
|
|
}
|
|
}
|
|
|
|
+ v.IsHot = hotMapindustrial[v.IndustrialManagementId]
|
|
industrialIdArr = append(industrialIdArr, v.IndustrialManagementId)
|
|
industrialIdArr = append(industrialIdArr, v.IndustrialManagementId)
|
|
}
|
|
}
|
|
|
|
|