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