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