|
@@ -46,9 +46,9 @@ type ElasticComprehensiveDetail struct {
|
|
}
|
|
}
|
|
|
|
|
|
//func init() {
|
|
//func init() {
|
|
-// // AddComprehensiveIndustrialSource("Hz", 0)
|
|
|
|
-// AddComprehensiveArticle(0)
|
|
|
|
-// // AddComprehensiveMeetingreviewchapt()
|
|
|
|
|
|
+// AddComprehensiveIndustrialSource("Hz", 0)
|
|
|
|
+//AddComprehensiveArticle(0)
|
|
|
|
+// AddComprehensiveMeetingreviewchapt()
|
|
//}
|
|
//}
|
|
|
|
|
|
// 添加文章:报告、纪要
|
|
// 添加文章:报告、纪要
|
|
@@ -120,8 +120,10 @@ func AddComprehensiveArticle(articleId int) {
|
|
item.Title = v.Title
|
|
item.Title = v.Title
|
|
item.PublishDate = v.PublishDate
|
|
item.PublishDate = v.PublishDate
|
|
item.BodyText = bodyText
|
|
item.BodyText = bodyText
|
|
- item.SubjectNames = strings.Join(mapActivitySubject[v.ArticleId], ",") + "," + v.FieldName
|
|
|
|
- item.IndustryName = strings.Join(mapActivityIndustrialManagement[v.ArticleId], ",")
|
|
|
|
|
|
+ if v.IsSummary == 0 {
|
|
|
|
+ item.SubjectNames = strings.Join(mapActivitySubject[v.ArticleId], ",") + "," + v.FieldName
|
|
|
|
+ item.IndustryName = strings.Join(mapActivityIndustrialManagement[v.ArticleId], ",")
|
|
|
|
+ }
|
|
item.Annotation, _ = GetReportContentTextSubNew(v.Annotation)
|
|
item.Annotation, _ = GetReportContentTextSubNew(v.Annotation)
|
|
item.Abstract, _ = GetReportContentTextSubNew(v.Abstract)
|
|
item.Abstract, _ = GetReportContentTextSubNew(v.Abstract)
|
|
EsAddOrEditComprehensiveData(item)
|
|
EsAddOrEditComprehensiveData(item)
|