xingzai 1 vuosi sitten
vanhempi
commit
1202fbdbf4
1 muutettua tiedostoa jossa 10 lisäystä ja 11 poistoa
  1. 10 11
      services/cygx_research_summary.go

+ 10 - 11
services/cygx_research_summary.go

@@ -406,12 +406,12 @@ func CygxResearchSummary(cont context.Context) (err error) {
 		var pars []interface{}
 		condition += ` AND publish_date < ?  AND publish_date >= ? `
 		pars = append(pars, friday, lastfriday)
-		ssgsdyjyList := make([]*data_manage.CygxArticle, 0)
+		sjdpList := make([]*data_manage.CygxArticle, 0)
 
-		//医药
+		//科技
 		{
-			//98:N问N
-			newCondition := condition + ` AND category_id_two IN(98) `
+			//10078:AI问
+			newCondition := condition + ` AND category_id_two IN(10078)  `
 			list, e := data_manage.GetReportArticleList(newCondition, pars)
 			if e != nil {
 				err = e
@@ -419,15 +419,14 @@ func CygxResearchSummary(cont context.Context) (err error) {
 				return
 			}
 			for _, article := range list {
-				ssgsdyjyList = append(ssgsdyjyList, article)
+				sjdpList = append(sjdpList, article)
 			}
 		}
 
-
-		//科技
+		//医药
 		{
-			//10078:AI问
-			newCondition := condition + ` AND category_id_two IN(10078)  `
+			//98:N问N
+			newCondition := condition + ` AND category_id_two IN(98) `
 			list, e := data_manage.GetReportArticleList(newCondition, pars)
 			if e != nil {
 				err = e
@@ -435,12 +434,12 @@ func CygxResearchSummary(cont context.Context) (err error) {
 				return
 			}
 			for _, article := range list {
-				ssgsdyjyList = append(ssgsdyjyList, article)
+				sjdpList = append(sjdpList, article)
 			}
 		}
 
 		var logItems []*data_manage.CygxResearchSummaryLog
-		for _, article := range ssgsdyjyList {
+		for _, article := range sjdpList {
 			head := "<div class=\"title-content\">\n 【" + article.Title + "】    "
 			sliceSubjects := strings.Split(article.Stock, "/")
 			var company string