pro order use notify
This commit is contained in:
parent
6feb2d479b
commit
0bd9444026
|
|
@ -46,7 +46,7 @@ func (p *OrderRepoImpl) FinSucByStockIdInBatches(ctx context.Context, req *do.We
|
||||||
|
|
||||||
var results = make([]*model.Order, 0)
|
var results = make([]*model.Order, 0)
|
||||||
|
|
||||||
result := tx.FindInBatches(&results, 50, func(tx *gorm.DB, batch int) error {
|
result := tx.FindInBatches(&results, 100, func(tx *gorm.DB, batch int) error {
|
||||||
|
|
||||||
return fun(ctx, p.ToBos(results))
|
return fun(ctx, p.ToBos(results))
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue