|
@@ -2345,14 +2345,37 @@ func (this *ReportController) SearchResource() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ var IndustrialManagementIdStr string
|
|
|
for k, v := range listYx {
|
|
|
listYx[k].Source = 2
|
|
|
- for _, v2 := range listSubjcet {
|
|
|
- if v2.IndustrialManagementId == v.IndustrialManagementId {
|
|
|
- listYx[k].IndustrialSubjectList = append(listYx[k].IndustrialSubjectList, v2)
|
|
|
+ IndustrialManagementIdStr += "," + strconv.Itoa(v.IndustrialManagementId)
|
|
|
+ //for _, v2 := range listSubjcet {
|
|
|
+ // if v2.IndustrialManagementId == v.IndustrialManagementId {
|
|
|
+ // listYx[k].IndustrialSubjectList = append(listYx[k].IndustrialSubjectList, v2)
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+
|
|
|
+ }
|
|
|
+ IndustrialManagementIdStr = strings.TrimLeft(IndustrialManagementIdStr, ",")
|
|
|
+ if IndustrialManagementIdStr != "" {
|
|
|
+ //合并产业关联的标的
|
|
|
+ condition = ` AND mg.article_id IN (SELECT mg.article_id FROM cygx_industrial_article_group_management as mg
|
|
|
+ INNER JOIN cygx_article as a ON a.article_id = mg.article_id AND article_type != 'lyjh' WHERE mg.industrial_management_id IN (` + IndustrialManagementIdStr + `) AND mg.article_id >= ` + strconv.Itoa(utils.SummaryArticleId) + ` )`
|
|
|
+ listSubjcet, err = models.GetThemeHeatSubjectList(condition)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取标的信息失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for k, v := range listYx {
|
|
|
+ for _, v2 := range listSubjcet {
|
|
|
+ if v2.IndustrialManagementId == v.IndustrialManagementId {
|
|
|
+ listYx[k].IndustrialSubjectList = append(listYx[k].IndustrialSubjectList, v2)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if keyWord != "" {
|
|
|
keyWordItem := new(models.CygxUserSearchKeyWord)
|
|
|
keyWordItem.UserId = user.UserId
|