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