From 1a6d1959c434582e8606c3b03f08feece80bd36f 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 15:58:05 +0800 Subject: [PATCH] aa --- business/jxstore/cms/order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 600ef5308..fbb870d9a 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -165,12 +165,12 @@ func GetManageStatisticsImg(ctx *jxcontext.Context, cityCodes []int, fromTime, t fromTimeT = utils.Str2Time(fromTime) toTimeT = utils.Str2Time(toTime) ) - fmt.Println("111111111111111111111", utils.Float64TwoInt(toTimeT.Sub(fromTimeT).Hours()/24), toTimeT.Sub(fromTimeT).Hours()/24) for i := 1; i < utils.Float64TwoInt(toTimeT.Sub(fromTimeT).Hours()/24); i++ { - if getManageStatisticsResult, err := dao.GetManageStatistics(db, cityCodes, fromTimeT.AddDate(0, 0, i), jobIDs); err == nil { + if getManageStatisticsResult, err := dao.GetManageStatistics(db, cityCodes, fromTimeT.AddDate(0, 0, i-1), jobIDs); err == nil { getManageStatistics = append(getManageStatistics, getManageStatisticsResult) } } + fmt.Println(utils.Format4Output(getManageStatistics, false)) return getManageStatistics, err }