|
@@ -189,13 +189,15 @@ func GetNewIndexAndDataFromJiaYue() (indexList []*response.IndexResp, err error)
|
|
|
indexCond := ``
|
|
|
indexPars := make([]interface{}, 0)
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 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))
|
|
|
+
|
|
|
+ endTime := time.Date(2023, 6, 8, 0, 0, 0, 0, time.Local).Format(utils.FormatDateTime)
|
|
|
+ indexCond += fmt.Sprintf(` CREATE_TIME <= TO_DATE(%s, 'YYYY-MM-DD HH24:MI:SS') `, endTime)
|
|
|
+
|
|
|
sourceArr := []string{"bloomberg", "bloomberg_tmp"}
|
|
|
if len(sourceArr) > 0 {
|
|
|
indexCond += ` AND SOURCE_TYPE IN (:1)`
|