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')
|
||||
|
||||
Reference in New Issue
Block a user