浏览代码

test 3分钟

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

+ 1 - 1
services/index_data/jiayue_platform.go

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