修正用户优惠卷列表查询

This commit is contained in:
wucongxing8150 2024-07-22 14:54:11 +08:00
parent cc3097f5aa
commit 84f6c96b61

View File

@ -69,7 +69,7 @@ class UserCoupon extends Model
{
return self::with(['Coupon'])
->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);
}