xingzai 1 سال پیش
والد
کامیت
08e9b344b6
2فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 4 1
      services/article.go
  2. 4 3
      services/es_comprehensive.go

+ 4 - 1
services/article.go

@@ -682,7 +682,10 @@ func GetArticleListByApi(cont context.Context) (err error) {
 //	//	for _, v := range allList {
 //	//		HandleArticleListByApi(v.ArticleId)
 //	//	}
-//	HandleArticleListByApi(8785)
+//
+//	for i := 8648; i < 9004; i++ {
+//		HandleArticleListByApi(i)
+//	}
 //
 //}
 

+ 4 - 3
services/es_comprehensive.go

@@ -46,9 +46,9 @@ type ElasticComprehensiveDetail struct {
 }
 
 //func init() {
-// AddComprehensiveIndustrialSource("Hz", 0)
-//AddComprehensiveArticle(0)
-// AddComprehensiveMeetingreviewchapt()
+//	AddComprehensiveIndustrialSource("Hz", 0)
+//	// AddComprehensiveArticle(0)
+//	// AddComprehensiveMeetingreviewchapt()
 //}
 
 // 添加文章:报告、纪要
@@ -223,6 +223,7 @@ func AddComprehensiveIndustrialSource(sourceType string, articleId int) {
 				item.PublishDate = maplistMeetingTime[v.IndustrialManagementId].Format(utils.FormatDateTime)
 			}
 		}
+		fmt.Println(item)
 		EsAddOrEditComprehensiveData(item)
 	}
 }