aa
This commit is contained in:
@@ -165,12 +165,12 @@ func GetManageStatisticsImg(ctx *jxcontext.Context, cityCodes []int, fromTime, t
|
|||||||
fromTimeT = utils.Str2Time(fromTime)
|
fromTimeT = utils.Str2Time(fromTime)
|
||||||
toTimeT = utils.Str2Time(toTime)
|
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++ {
|
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)
|
getManageStatistics = append(getManageStatistics, getManageStatisticsResult)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fmt.Println(utils.Format4Output(getManageStatistics, false))
|
||||||
return getManageStatistics, err
|
return getManageStatistics, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user