|
|
|
@ -267,9 +267,9 @@ class CouponRebateService implements CouponRebateServiceInterface |
|
|
|
->leftjoin('ims_system_coupon_user_use as u', 'u.user_receive_id', '=', 'r.id') |
|
|
|
->where([ |
|
|
|
['u.order_main_id', '=', $order_id], |
|
|
|
// ['r.send_user_id', '>', 0],
|
|
|
|
// ['r.rebate_type', '=', 1],
|
|
|
|
// ['r.receive_type', '=', 4],
|
|
|
|
['r.send_user_id', '>', 0], |
|
|
|
['r.rebate_type', '=', 1], |
|
|
|
['r.receive_type', '=', 4], |
|
|
|
]) |
|
|
|
->whereIn('r.system_coupon_user_id',$coupon_ids) |
|
|
|
->select('r.user_id', 'r.send_user_id') |
|
|
|
|