Przeglądaj źródła

Merge branch 'feature/eta2.5.9_api_stat' into debug

xyxie 2 dni temu
rodzic
commit
4a5d7ec78f
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      services/edb_info_stat.go

+ 3 - 3
services/edb_info_stat.go

@@ -290,9 +290,9 @@ func SetEdbSourceStat(needStat bool) (err error) {
 		}
 	}()
 	//查询钢联的所有指标信息
-	nowTime := time.Now().AddDate(0, 0, -1)
-	today := time.Now().AddDate(0, 0, -1).Format(utils.FormatDate)
-	nextDay := time.Now().Format(utils.FormatDate)
+	nowTime := time.Now()
+	today := time.Now().Format(utils.FormatDate)
+	nextDay := time.Now().AddDate(0, 0, 1).Format(utils.FormatDate)
 
 	statCond := "  and  create_time >= ? and create_time < ?"
 	var statPars []interface{}