FinByStockIdInBatches
This commit is contained in:
parent
7a02c6047c
commit
15de8ab277
|
|
@ -37,7 +37,7 @@ func (p *OrderRepoImpl) FinByStockIdInBatches(ctx context.Context, batchNo strin
|
|||
result := p.DB(ctx).
|
||||
Where("batch_no = ?", batchNo).
|
||||
Where("status = ?", vo.OrderStatusSuccess.GetValue()).
|
||||
FindInBatches(&results, 20, func(tx *gorm.DB, batch int) error {
|
||||
FindInBatches(&results, 50, func(tx *gorm.DB, batch int) error {
|
||||
return fun(ctx, p.ToBos(results))
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue