|
@@ -32,17 +32,18 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
|
|
|
mapItems[fmt.Sprint(v.Source, v.SourceId)] = item
|
|
|
}
|
|
|
|
|
|
- var articleIds []int
|
|
|
- var newchartIds []int
|
|
|
- var roadshowIds []string
|
|
|
- var activityIds []int
|
|
|
- var activityvideoIds []string
|
|
|
- var activityvoiceIds []string
|
|
|
- var activityspecialIds []int
|
|
|
- var researchsummaryIds []int
|
|
|
- var minutessummaryIds []int
|
|
|
- var meetingreviewchaptIds []int
|
|
|
- //Source string `description:"资源类型 报告 :article 、图表 :newchart、微路演 :roadshow、活动 :activity、活动视频:activityvideo、活动音频:activityvoice、专项调研活动:activityspecial 、 本周研究汇总: researchsummary 、 上周纪要汇总 :minutessummary 、晨会精华 :meetingreviewchapt "`
|
|
|
+ var articleIds []int //报告
|
|
|
+ var newchartIds []int //图表
|
|
|
+ var roadshowIds []string //微路演
|
|
|
+ var activityIds []int //活动
|
|
|
+ var activityvideoIds []string // 活动视频
|
|
|
+ var activityvoiceIds []string //活动音频
|
|
|
+ var activityspecialIds []int //专项调研活动
|
|
|
+ var researchsummaryIds []int //本周研究汇总
|
|
|
+ var minutessummaryIds []int //上周纪要汇总
|
|
|
+ var meetingreviewchaptIds []int //晨会精华
|
|
|
+ var productinteriorIds []int //产品内测
|
|
|
+ //Source string `description:"资源类型 报告 :article 、图表 :newchart、微路演 :roadshow、活动 :activity、活动视频:activityvideo、活动音频:activityvoice、专项调研活动:activityspecial 、 本周研究汇总: researchsummary 、 上周纪要汇总 :minutessummary 、晨会精华 :meetingreviewchapt 、 产品内测:productinterior
|
|
|
for _, v := range list {
|
|
|
if v.Source == "article" {
|
|
|
articleIds = append(articleIds, v.SourceId)
|
|
@@ -64,6 +65,8 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
|
|
|
minutessummaryIds = append(minutessummaryIds, v.SourceId)
|
|
|
} else if v.Source == "meetingreviewchapt" {
|
|
|
meetingreviewchaptIds = append(meetingreviewchaptIds, v.SourceId)
|
|
|
+ } else if v.Source == "productinterior" {
|
|
|
+ productinteriorIds = append(productinteriorIds, v.SourceId)
|
|
|
}
|
|
|
}
|
|
|
detail, e := models.GetConfigByCode("city_img_url")
|
|
@@ -171,6 +174,23 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //处理产品内测
|
|
|
+ if len(productinteriorIds) > 0 {
|
|
|
+ pars = make([]interface{}, 0)
|
|
|
+ condition = ` AND art.status = 1 AND art.product_interior_id IN (` + utils.GetOrmInReplace(len(productinteriorIds)) + `)`
|
|
|
+ pars = append(pars, productinteriorIds)
|
|
|
+ listProductInterior, e := models.GetCygxProductInteriorList(condition, pars, 0, len(productinteriorIds))
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxProductInteriorList, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for _, v := range listProductInterior {
|
|
|
+ v.Body, _ = GetReportContentTextSub(v.Body)
|
|
|
+ v.PublishTime = utils.TimeRemoveHms2(v.PublishTime)
|
|
|
+ mapItems[fmt.Sprint("productinterior", v.ProductInteriorId)].ProductInterior = v
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//处理活动
|
|
|
if len(activityIds) > 0 {
|
|
|
for _, vss := range activityIds {
|