多笔立减
This commit is contained in:
parent
ca021f71a9
commit
0a94a58afa
|
|
@ -71,7 +71,9 @@ func (p *OrderRepoImpl) SpecifyFindInBatches(ctx context.Context, req *bo.FindIn
|
|||
|
||||
func (p *OrderRepoImpl) FinSucByStockIdInBatches(ctx context.Context, req *do.WechatQuery, fun func(ctx context.Context, rows []*bo.OrderBo) error) error {
|
||||
|
||||
tx := p.DB(ctx).Where("status = ?", vo.OrderStatusSuccess.GetValue()).Where("activity_id = ''")
|
||||
tx := p.DB(ctx).
|
||||
Where("status = ?", vo.OrderStatusSuccess.GetValue()).
|
||||
Where("activity_id = ''")
|
||||
|
||||
if req.ProductNo != "" {
|
||||
tx = tx.Where("product_no = ?", req.ProductNo)
|
||||
|
|
|
|||
Loading…
Reference in New Issue