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

+ 4 - 0
services/index_data/jiayue_platform.go

@@ -84,6 +84,10 @@ func GetIndexAndDataFromJiaYue(indexCode, startDate, endDate string, sourceArr [
 		indexCond = ` SOURCE_CODE = :1`
 		indexPars = append(indexPars, indexCode)
 	}
+	if len(sourceArr) > 0 {
+		indexCond += ` AND SOURCE_TYPE IN (:1)`
+		indexPars = append(indexPars, sourceArr)
+	}
 
 	indexes, e := jiayue.GetDictIndex(indexCond, indexPars)
 	if e != nil {