admin: dashboard add bmpa success quick link

This commit is contained in:
萝卜
2026-03-18 05:04:23 +08:00
parent 8fcf880a92
commit 80118b9f04
2 changed files with 8 additions and 0 deletions

View File

@@ -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')