Browse Source

test 3分钟

hsun 1 năm trước cách đây
mục cha
commit
6869a3d9aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)