aa
This commit is contained in:
@@ -166,11 +166,8 @@ func GetManageStatisticsImg(ctx *jxcontext.Context, cityCodes []int, fromTime, t
|
|||||||
toTimeT = utils.Str2Time(toTime)
|
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); i++ {
|
||||||
if getManageStatisticsResult, err := dao.GetManageStatistics(db, cityCodes, fromTimeT.AddDate(0, 0, i-1), jobIDs); err == nil {
|
getManageStatisticsResult, _ := dao.GetManageStatistics(db, cityCodes, fromTimeT.AddDate(0, 0, i-1), jobIDs)
|
||||||
getManageStatistics = append(getManageStatistics, getManageStatisticsResult)
|
getManageStatistics = append(getManageStatistics, getManageStatisticsResult)
|
||||||
} else {
|
|
||||||
fmt.Println("11111111111111111111111111", err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return getManageStatistics, err
|
return getManageStatistics, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user