多笔立减
This commit is contained in:
parent
b421a943a7
commit
99085ec821
|
|
@ -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)
|
tx := p.DB(ctx).Where("activity_id = ''")
|
||||||
|
|
||||||
if req.ProductNo != "" {
|
if req.ProductNo != "" {
|
||||||
tx = tx.Where("product_no = ?", req.ProductNo)
|
tx = tx.Where("product_no = ?", req.ProductNo)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue