query order
This commit is contained in:
parent
5d1ff1bdde
commit
6fdd1f3fd6
|
|
@ -86,10 +86,10 @@ func (this *VoucherBiz) timeSliceQuery(ctx context.Context, startTime, endTime t
|
||||||
|
|
||||||
log.Warnf("订单定时通知,开始处理,按每两个小时分片处理,范围:%s到%s", startTime.Format(time.DateTime), endTime.Format(time.DateTime))
|
log.Warnf("订单定时通知,开始处理,按每两个小时分片处理,范围:%s到%s", startTime.Format(time.DateTime), endTime.Format(time.DateTime))
|
||||||
|
|
||||||
duration := 3 * time.Hour
|
duration := 4 * time.Hour
|
||||||
|
|
||||||
eg := new(errgroup.Group)
|
eg := new(errgroup.Group)
|
||||||
eg.SetLimit(10)
|
eg.SetLimit(8)
|
||||||
|
|
||||||
for start := startTime; start.Before(endTime); start = start.Add(duration) {
|
for start := startTime; start.Before(endTime); start = start.Add(duration) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue