Browse Source

优惠券列表

master
Lemon 5 years ago
parent
commit
29a46d8ae9
  1. 3
      app/Service/v3/Implementations/CouponRecService.php

3
app/Service/v3/Implementations/CouponRecService.php

@ -114,7 +114,8 @@ class CouponRecService implements CouponRecServiceInterface
case 'unused':
$builder = $builder->where([
['lanzu_coupon.usable_end_time' ,'>', time()],
['lanzu_coupon_receive.number_remain' ,'>', 0]
['lanzu_coupon_receive.number_remain' ,'>', 0],
['lanzu_coupon.status','=',1]
])
->whereIn('lanzu_coupon_receive.status',[0,1]);
break;

Loading…
Cancel
Save