|
@@ -17,7 +17,7 @@ func GetIndexFromJiaYue(indexCode, source, startDate, endDate string) (data *res
|
|
|
return
|
|
|
}
|
|
|
}()
|
|
|
- var sourceArray []string
|
|
|
+ var sourceArray []interface{}
|
|
|
if source == "wind" {
|
|
|
sourceArray = append(sourceArray, "wind", "wind_stop", "wind_p", "wind_tmp")
|
|
|
} else if source == "manual" {
|
|
@@ -27,7 +27,7 @@ func GetIndexFromJiaYue(indexCode, source, startDate, endDate string) (data *res
|
|
|
}
|
|
|
var indexPars []interface{}
|
|
|
indexCond := ` SOURCE_TYPE IN (` + utils.GetOracleInReplace(len(sourceArray)) + `)`
|
|
|
- indexPars = append(indexPars, sourceArray)
|
|
|
+ indexPars = append(indexPars, sourceArray...)
|
|
|
|
|
|
if source == "wind" {
|
|
|
indexCond += " AND SOURCE_CODE = :1 "
|