|
|
@@ -325,7 +325,7 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { |
|
|
|
log.Info("len(allUserIds)=" + fmt.Sprint(len(allUserIds))) |
|
|
|
for i := 0; i < len(allUserIds); i += 100 { |
|
|
|
if end >= len(allUserIds) { |
|
|
|
end = len(allUserIds) - 1 |
|
|
|
end = len(allUserIds) |
|
|
|
} |
|
|
|
log.Info("i=" + fmt.Sprint(i) + " end=" + fmt.Sprint(end)) |
|
|
|
if i == end { |
|
|
@@ -337,6 +337,8 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { |
|
|
|
userMap[tmp.ID] = tmp |
|
|
|
log.Info("userMap key=" + fmt.Sprint(tmp.ID)) |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
|
} |
|
|
|
end = end + 100 |
|
|
|
} |
|
|
|