xyxie 1 年之前
父节点
当前提交
c9dece9361
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/index_data/jiayue_platform.go

+ 2 - 2
services/index_data/jiayue_platform.go

@@ -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 "