From 0eafe25fa246f41517c8fcb1ccfd9dba07f1b1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 8 Jan 2021 18:14:28 +0800 Subject: [PATCH] aa --- business/jxstore/cms/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 5a28aba43..65892b152 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -165,7 +165,7 @@ func GetManageStatisticsImg(ctx *jxcontext.Context, cityCodes []int, fromTime, t fromTimeT = utils.Str2Time(fromTime) toTimeT = utils.Str2Time(toTime) ) - for i := 1; i < utils.Float64TwoInt(toTimeT.Sub(fromTimeT).Hours()/24); i++ { + for i := 1; i < utils.Float64TwoInt(toTimeT.Sub(fromTimeT).Hours()/24)+1; i++ { getManageStatisticsResult, _ := dao.GetManageStatistics(db, cityCodes, fromTimeT.AddDate(0, 0, i-1), jobIDs) getManageStatistics = append(getManageStatistics, getManageStatisticsResult) }