diff --git a/internal/data/repoimpl/product.go b/internal/data/repoimpl/product.go index 01cbc00..d3b377f 100644 --- a/internal/data/repoimpl/product.go +++ b/internal/data/repoimpl/product.go @@ -42,7 +42,6 @@ func (r *ProductRepoImpl) FindWarningBudget(ctx context.Context, fun func(ctx co Where("end_time > ?", nowTime). Where("warning_budget > 0"). Where("warning_person IS NOT NULL"). - Group("batch_no"). FindInBatches(&results, 5, func(tx *gorm.DB, batch int) error { return fun(ctx, r.ToBos(results)) })