xingzai 1 рік тому
батько
коміт
5a58280e5c
1 змінених файлів з 12 додано та 11 видалено
  1. 12 11
      services/es_comprehensive.go

+ 12 - 11
services/es_comprehensive.go

@@ -1368,37 +1368,38 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
 			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 {
 				continue
 			}
-			if v.Article != nil {
+			if v.Article != nil && v.SourceId == vList.SourceId {
 				v.Article.Title = vList.Title
 			}
-			if v.Newchart != nil {
+			if v.Newchart != nil && v.SourceId == vList.SourceId {
 				v.Newchart.Title = vList.Title
 			}
-			if v.Roadshow != nil {
+			if v.Roadshow != nil && v.SourceId == vList.SourceId {
 				v.Roadshow.Title = vList.Title
 			}
-			if v.Activity != nil {
+			if v.Activity != nil && v.SourceId == vList.SourceId {
 				v.Activity.ActivityName = vList.Title
 			}
-			if v.Activityvideo != nil {
+			if v.Activityvideo != nil && v.SourceId == vList.SourceId {
 				v.Activityvideo.Title = vList.Title
 			}
-			if v.Activityvoice != nil {
+			if v.Activityvoice != nil && v.SourceId == vList.SourceId {
 				v.Activityvoice.Title = vList.Title
 			}
-			if v.Activityspecial != nil {
+
+			if v.Activityspecial != nil && v.SourceId == vList.SourceId {
 				v.Activityspecial.ResearchTheme = vList.Title
 			}
-			if v.Researchsummary != nil {
+			if v.Researchsummary != nil && v.SourceId == vList.SourceId {
 				v.Researchsummary.Title = vList.Title
 			}
-			if v.Minutessummary != nil {
+			if v.Minutessummary != nil && v.SourceId == vList.SourceId {
 				v.Minutessummary.Title = vList.Title
 			}
-			if v.ProductInterior != nil {
+			if v.ProductInterior != nil && v.SourceId == vList.SourceId {
 				v.ProductInterior.Title = vList.Title
 			}
-			if v.IndustrialResource != nil {
+			if v.IndustrialResource != nil && v.SourceId == vList.SourceId {
 				v.Source = "industrialsource"
 			}
 			if v.SourceId == vList.SourceId {