Browse Source

Merge branch 'feature/jiayue' into debug

hsun 1 year ago
parent
commit
0fbc2bb6f6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      services/index_data/jiayue_platform.go

+ 1 - 2
services/index_data/jiayue_platform.go

@@ -326,12 +326,11 @@ func GetJiaYueImportData(sourceArr []string) (items []JiaYueImportIndexResp, err
 	}()
 
 	// 获取指标
-	indexCond := ``
+	indexCond := ` SOURCE_TYPE IN (:1)`
 	indexPars := make([]interface{}, 0)
 	if len(sourceArr) == 0 {
 		sourceArr = []string{"webisite", "website", "website_gf", "platts", "reuter", "reuter_vessel_q", "路透", "bloomberg", "bloomberg_tmp", "wind", "wind_p", "wind_stop", "wind_tmp"}
 	}
-	indexCond += ` AND SOURCE_TYPE IN (:1)`
 	indexPars = append(indexPars, sourceArr)
 	indexes, e := jiayue.GetDictIndex(indexCond, indexPars, "SOURCE_TYPE ASC, ID ASC")
 	if e != nil {