|
@@ -311,6 +311,7 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
|
|
|
var yanxuanSpecialIds []int
|
|
|
var askserieVideoIds []string
|
|
|
var reportselectionIds []int
|
|
|
+ var ficcreporrtIds []string
|
|
|
|
|
|
for _, v := range list {
|
|
|
if v.Source == "article" {
|
|
@@ -346,6 +347,8 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
|
|
|
askserieVideoIds = append(askserieVideoIds, strconv.Itoa(v.SourceId))
|
|
|
} else if v.Source == "reportselection" {
|
|
|
reportselectionIds = append(reportselectionIds, v.SourceId)
|
|
|
+ } else if v.Source == utils.CYGX_OBJ_FICC_REPORT {
|
|
|
+ ficcreporrtIds = append(ficcreporrtIds, strconv.Itoa(v.SourceId))
|
|
|
}
|
|
|
}
|
|
|
detail, e := models.GetConfigByCode("city_img_url")
|
|
@@ -803,49 +806,35 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if len(ficcreporrtIds) > 0 {
|
|
|
+ pars = make([]interface{}, 0)
|
|
|
+ condition = ` AND a.report_id IN (` + utils.GetOrmInReplace(len(ficcreporrtIds)) + `)`
|
|
|
+ pars = append(pars, ficcreporrtIds)
|
|
|
+ articleList, e := models.GetHomeListPublic(condition, pars, 0, len(ficcreporrtIds))
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetHomeListPublic, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ articleList, e = HandleArticleCategoryImg(articleList, user)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("HandleArticleCategoryImg, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for _, v := range articleList {
|
|
|
+ v.Body = ""
|
|
|
+ mapItems[fmt.Sprint("ficcreport", v.ReportId)].FiccReport = v
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
for _, vList := range list {
|
|
|
for _, v := range mapItems {
|
|
|
|
|
|
- if v.Article == nil && v.Newchart == nil && v.Roadshow == nil && v.Activity == nil && v.Activityvideo == nil && v.Activityvoice == nil && v.Activityspecial == nil && v.Researchsummary == nil && v.Minutessummary == nil && v.Meetingreviewchapt == nil && v.ProductInterior == nil && v.IndustrialResource == nil && v.YanxuanSpecial == nil && v.AskserieVideo == nil && v.ReportSelection == nil {
|
|
|
+ if v.Article == nil && v.Newchart == nil && v.Roadshow == nil && v.Activity == nil && v.Activityvideo == nil && v.Activityvoice == nil && v.Activityspecial == nil && v.Researchsummary == nil && v.Minutessummary == nil && v.Meetingreviewchapt == nil && v.ProductInterior == nil && v.IndustrialResource == nil && v.YanxuanSpecial == nil && v.AskserieVideo == nil && v.ReportSelection == nil && v.FiccReport == nil {
|
|
|
continue
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
if v.SourceId == vList.SourceId && v.Source == vList.Source {
|
|
|
items = append(items, v)
|
|
|
}
|