Browse Source

Merge branch 'feature/jiayue' into debug

hsun 1 year ago
parent
commit
528e66e00a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/index_data/jiayue_platform.go

+ 1 - 1
services/index_data/jiayue_platform.go

@@ -194,7 +194,7 @@ func GetNewIndexAndDataFromJiaYue() (indexList []*response.IndexResp, err error)
 	//indexPars = append(indexPars, timeBefore.Format(utils.FormatDateTime))
 
 	// TODO:测试
-	indexCond += ` CREATE_TIME <= :1 `
+	indexCond += ` CREATE_TIME <= TO_DATE(:1, 'YYYY-MM-DD HH24:MI:SS') `
 	indexPars = append(indexPars, time.Date(2023, 6, 8, 0, 0, 0, 0, time.Local).Format(utils.FormatDateTime))
 	sourceArr := []string{"bloomberg", "bloomberg_tmp"}
 	if len(sourceArr) > 0 {