admin: dashboard add bmpa success quick link
This commit is contained in:
@@ -103,6 +103,12 @@ class DashboardController extends Controller
|
||||
'platform_orders_bmpa_failed' => PlatformOrder::query()
|
||||
->whereRaw("JSON_EXTRACT(meta, '$.batch_mark_paid_and_activate_error.message') IS NOT NULL")
|
||||
->count(),
|
||||
// BMPA 成功:用于运营抽样复核(spot-check)批量标记支付并生效的成功集合
|
||||
// 口径与平台订单列表 bmpa_success_only=1 一致:run_id 存在且 error.message 为空
|
||||
'platform_orders_bmpa_success' => PlatformOrder::query()
|
||||
->whereRaw("JSON_EXTRACT(meta, '$.batch_mark_paid_and_activate.run_id') IS NOT NULL")
|
||||
->whereRaw("JSON_EXTRACT(meta, '$.batch_mark_paid_and_activate_error.message') IS NULL")
|
||||
->count(),
|
||||
// 无回执(已支付但缺少回执证据):用于治理“已付但无回执”的风险订单
|
||||
'platform_orders_paid_no_receipt' => PlatformOrder::query()
|
||||
->where('payment_status', 'paid')
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
'sync_failed' => \App\Support\BackUrl::withBack('/admin/platform-orders?sync_status=failed', $selfWithoutBack),
|
||||
'renewal_missing_subscription' => \App\Support\BackUrl::withBack('/admin/platform-orders?renewal_missing_subscription=1', $selfWithoutBack),
|
||||
'bmpa_failed' => \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack),
|
||||
'bmpa_success' => \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_success_only=1', $selfWithoutBack),
|
||||
'paid_no_receipt' => \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&receipt_status=none', $selfWithoutBack),
|
||||
'reconcile_mismatch' => \App\Support\BackUrl::withBack('/admin/platform-orders?reconcile_mismatch=1', $selfWithoutBack),
|
||||
'refund_inconsistent' => \App\Support\BackUrl::withBack('/admin/platform-orders?refund_inconsistent=1', $selfWithoutBack),
|
||||
@@ -319,6 +320,7 @@
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['paid_pending'] !!}">待生效({{ (int) ($stats['platform_orders_paid_pending'] ?? 0) }})</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['renewal_missing_subscription'] !!}">续费缺订阅({{ (int) ($stats['platform_orders_renewal_missing_subscription'] ?? 0) }})</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['bmpa_failed'] !!}">BMPA失败({{ (int) ($stats['platform_orders_bmpa_failed'] ?? 0) }})</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['bmpa_success'] !!}">BMPA成功({{ (int) ($stats['platform_orders_bmpa_success'] ?? 0) }})</a>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user