chore(governance): block batch BMPA when refund_status=has

This commit is contained in:
萝卜
2026-03-16 23:33:10 +08:00
parent 7f1d234393
commit 485a8a639d
4 changed files with 84 additions and 0 deletions

View File

@@ -101,6 +101,10 @@ class PlatformOrderToolsGuard
return '当前筛选包含「订阅同步治理」相关条件(同步状态/同步失败/失败原因等。BMPA 动作仅用于推进待处理未支付订单,请先清空同步治理筛选后再执行。';
}
if ((string) ($filters['refund_status'] ?? '') === 'has') {
return '当前集合为「有退款」:为避免带退款订单被批量推进,请先完成退款治理(核对退款回执/修正状态)后再执行 BMPA。';
}
if (((string) ($filters['reconcile_mismatch'] ?? '') === '1') || ((string) ($filters['refund_inconsistent'] ?? '') === '1')) {
return '当前集合包含「对账不一致/退款不一致」治理集合:建议先完成回执/退款治理后再批量推进。';
}