Browse Source

no message

xingzai 5 months ago
parent
commit
adef08f54c
2 changed files with 5 additions and 14 deletions
  1. 1 0
      controllers/user.go
  2. 4 14
      services/ficc_report.go

+ 1 - 0
controllers/user.go

@@ -1062,6 +1062,7 @@ func (this *UserController) ApplyTryOut() {
 	} else if tryType == utils.CYGX_OBJ_FICC_REPORT_XCX {
 		// FICC研报小程序弹窗
 		title = "周期股语音播报"
+		detailId = 1
 		source = utils.CYGX_OBJ_FICC_REPORT_XCX
 	}
 

+ 4 - 14
services/ficc_report.go

@@ -464,8 +464,9 @@ func GetFiccRreportToCygxArticle() (err error) {
 	}
 	mapFiccReport := make(map[int]int)
 	for _, v := range listaFiccReport {
-		mapFiccReport[v.IsReport] = v.ArticleId
+		mapFiccReport[v.ReportId] = v.ArticleId
 	}
+
 	//量不大,先这么写吧
 	for _, v := range reportList {
 		time.Sleep(1 * time.Millisecond) // 延时一秒
@@ -480,23 +481,12 @@ func GetFiccRreportToCygxArticle() (err error) {
 		item.IsReport = 1
 		item.IsClass = 1
 
-		if (v.ClassifyNameFirst == "宏观报告" && v.ClassifyNameSecond == "大类资产周报") || (v.ClassifyNameFirst == "晨会纪要" && v.ClassifyNameSecond == "晨会纪要") || (v.ClassifyNameFirst == "调研纪要" && v.ClassifyNameSecond == "调研纪要") {
+		if (v.ClassifyNameFirst == "宏观报告" && v.ClassifyNameSecond == "大类资产周报") || (v.ClassifyNameFirst == "晨会纪要" && v.ClassifyNameSecond == "晨会纪要") || (v.ClassifyNameFirst == "调研纪要" && v.ClassifyNameSecond == "黑色调研") {
 			item.SubCategoryName = v.ClassifyNameSecond
 			item.MatchTypeName = v.ClassifyNameSecond
-		} else if v.ClassifyNameFirst == "调研纪要" && v.ClassifyNameSecond == "调研纪要" {
-			item.SubCategoryName = "调研纪要"
-			item.MatchTypeName = "调研纪要"
-			if utils.RunMode == "release" {
-				item.CategoryId = 10090
-				item.CategoryIdTwo = 10090
-			} else {
-				item.CategoryId = 10090
-				item.CategoryIdTwo = 10090
-			}
 		} else {
 			continue
 		}
-
 		detailCategory, detailCategoryErr := models.GetCygxReportMappingCelueDetailByZhoQiCategoryName(item.SubCategoryName)
 		if detailCategoryErr != nil {
 			continue
@@ -542,8 +532,8 @@ func GetFiccRreportToCygxArticle() (err error) {
 		UpdateFICCReportResourceData(v.Id)
 
 		AddCygxReportMappingCategoryGroupByArticleId(articleIdMax)
-		fmt.Println(v)
 	}
+	fmt.Println("end")
 	return
 }