|
@@ -210,7 +210,7 @@ func GetNewIndexAndDataFromJiaYue() (indexList []*response.IndexResp, err error)
|
|
|
indexCond := ` 1=1`
|
|
|
indexPars := make([]interface{}, 0)
|
|
|
// TODO:查询半小时前至现在新增指标(具体时间待确定)
|
|
|
- timeBefore := time.Now().Local().Add(3 * time.Minute).Format(utils.FormatDateTime)
|
|
|
+ timeBefore := time.Now().Local().Add(-3 * time.Minute).Format(utils.FormatDateTime)
|
|
|
indexCond += ` AND CREATE_TIME >= TO_DATE (:1, 'yyyy-mm-dd hh24:mi:ss') `
|
|
|
indexPars = append(indexPars, timeBefore)
|
|
|
|