lzh
8c664a479d
refactor(ops): 状态转换成功不再镜像写 bus_log
问题:每次 transition() 成功 commit 后,OrderTransitionAuditListener 都会
向 bus_log 写一条"状态转换成功: X -> Y"的镜像记录。该信息已由各条线
EventListener(CleanOrderEventListener 的 ORDER_DISPATCHED 等)和
ops_order_event 表完整覆盖,bus_log 里这条镜像形成噪声且与业务日志重复,
线上一次工单流转能产出 4-5 条同义日志,运维抓异常时被淹没。
改动:onAfterCommit 在 event.isSuccess()=true 时直接 return;
失败 / 派发被拒(DISPATCH_REJECTED)/ 回滚三类异常路径继续写,
保留运维真正关心的"为什么失败"审计闭环。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 18:03:51 +08:00
..
2026-04-20 15:21:33 +08:00
2025-12-31 16:49:44 +08:00
2026-04-13 23:18:30 +08:00
2026-04-22 18:03:51 +08:00
2026-04-20 15:21:33 +08:00
2026-03-27 16:37:30 +08:00
2025-12-31 16:49:44 +08:00
2025-12-31 16:49:44 +08:00