|
@@ -653,13 +653,18 @@ func (this *ReportController) List() {
|
|
|
|
|
|
//处理晨会精华关联的标的,以及要跳转的文章ID
|
|
//处理晨会精华关联的标的,以及要跳转的文章ID
|
|
var meetingreviewchaptIds []int
|
|
var meetingreviewchaptIds []int
|
|
- mapchaptIdAndArticleId := make(map[int]int) // 晨会精华ID与跳转文章ID的映射关系
|
|
|
|
- mapchaptIdListSubject := make(map[int][]*models.CygxIndustrialSubject) // 晨会精华ID与标的列表的映射关系
|
|
|
|
|
|
+ var articleIds []int
|
|
|
|
+ mapchaptIdAndArticleId := make(map[int]int) // 晨会精华ID与跳转文章ID的映射关系
|
|
|
|
+ mapchaptIdListSubject := make(map[int][]*models.CygxIndustrialSubject) // 晨会精华ID与标的列表的映射关系
|
|
|
|
+ mapArticleIdListSubject := make(map[int][]*models.CygxIndustrialSubject) // 报告ID与标的列表的映射关系
|
|
for _, v := range list {
|
|
for _, v := range list {
|
|
if v.Resource == 3 {
|
|
if v.Resource == 3 {
|
|
meetingreviewchaptIds = append(meetingreviewchaptIds, v.Id)
|
|
meetingreviewchaptIds = append(meetingreviewchaptIds, v.Id)
|
|
v.Content = services.AnnotationHtml(v.Content)
|
|
v.Content = services.AnnotationHtml(v.Content)
|
|
}
|
|
}
|
|
|
|
+ if v.Resource == 1 {
|
|
|
|
+ articleIds = append(articleIds, v.Id)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if len(meetingreviewchaptIds) > 0 {
|
|
if len(meetingreviewchaptIds) > 0 {
|
|
listMeet, err := services.GetCygxMorningMeetingReviewChapterListByIds(meetingreviewchaptIds)
|
|
listMeet, err := services.GetCygxMorningMeetingReviewChapterListByIds(meetingreviewchaptIds)
|
|
@@ -672,6 +677,10 @@ func (this *ReportController) List() {
|
|
mapchaptIdListSubject[v.Id] = v.ListSubject
|
|
mapchaptIdListSubject[v.Id] = v.ListSubject
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if len(articleIds) > 0 {
|
|
|
|
+ mapArticleIdListSubject = services.GetArticleGroupSubjectMapByIndustrialManagementId(articleIds, industrialManagementId)
|
|
|
|
+ }
|
|
|
|
+
|
|
//对应分类的所图片
|
|
//对应分类的所图片
|
|
detailCategoryUrl, err := models.GetConfigByCode("category_map_img_url")
|
|
detailCategoryUrl, err := models.GetConfigByCode("category_map_img_url")
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -745,6 +754,9 @@ func (this *ReportController) List() {
|
|
v.LinkArticleId = mapchaptIdAndArticleId[v.Id]
|
|
v.LinkArticleId = mapchaptIdAndArticleId[v.Id]
|
|
v.ListSubject = mapchaptIdListSubject[v.Id]
|
|
v.ListSubject = mapchaptIdListSubject[v.Id]
|
|
}
|
|
}
|
|
|
|
+ if v.Resource == 1 {
|
|
|
|
+ v.ListSubject = mapArticleIdListSubject[v.Id]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
resp := new(models.TimeLineReportListResp)
|
|
resp := new(models.TimeLineReportListResp)
|