多笔立减

This commit is contained in:
ziming 2025-08-20 09:21:36 +08:00
parent 1c52f0adc6
commit b421a943a7
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func (p *OrderRepoImpl) DB(ctx context.Context) *gorm.DB {
func (p *OrderRepoImpl) SpecifyFindInBatches(ctx context.Context, req *bo.FindInBatchesBo, fun func(ctx context.Context, rows []*bo.OrderBo) error) error { func (p *OrderRepoImpl) SpecifyFindInBatches(ctx context.Context, req *bo.FindInBatchesBo, fun func(ctx context.Context, rows []*bo.OrderBo) error) error {
tx := p.DB(ctx).Where("activity_id = ''") tx := p.DB(ctx)
if req.ProductNo != "" { if req.ProductNo != "" {
tx = tx.Where("product_no = ?", req.ProductNo) tx = tx.Where("product_no = ?", req.ProductNo)