修正用户优惠卷列表查询
This commit is contained in:
parent
cc3097f5aa
commit
84f6c96b61
@ -69,7 +69,7 @@ class UserCoupon extends Model
|
|||||||
{
|
{
|
||||||
return self::with(['Coupon'])
|
return self::with(['Coupon'])
|
||||||
->whereHas('Coupon' , function($query){
|
->whereHas('Coupon' , function($query){
|
||||||
$query->where("coupon_client",1)->where("coupon_status",1);
|
$query->where("coupon_client",1)->whereNotIn("coupon_status",[2,4]);
|
||||||
})
|
})
|
||||||
->where($params)->get($fields);
|
->where($params)->get($fields);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user