feat : coupon

This commit is contained in:
2025-03-21 15:14:43 +08:00
parent a0dd51fc68
commit 11a36ece80
14 changed files with 644 additions and 16 deletions

View File

@@ -62,7 +62,7 @@ class RefundOrder extends Model
->where('order_id', $orderId)
->where('order_type', $type)
->whereIn('refund_status',[
RefundCode::WAIT_REFUND,
RefundCode::WAIT_BY_PAY_TOOL,
RefundCode::REFUND_SUCCESS
])->sum('refund_money') ?? 0;
}