platform orders: add bmpa failed summary card

This commit is contained in:
萝卜
2026-03-13 13:15:29 +00:00
parent f760d920f3
commit 5f3057b9ee
3 changed files with 80 additions and 0 deletions

View File

@@ -281,6 +281,9 @@ class PlatformOrderController extends Controller
'failed_sync_orders' => (clone $baseQuery)
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation_error.message') IS NOT NULL")
->count(),
'bmpa_failed_orders' => (clone $baseQuery)
->whereRaw("JSON_EXTRACT(meta, '$.batch_mark_paid_and_activate_error.message') IS NOT NULL")
->count(),
'unsynced_orders' => (clone $baseQuery)
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation.subscription_id') IS NULL")
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation_error.message') IS NULL")