From 67692ff79fc221a68834c602836dda5ec3f29395 Mon Sep 17 00:00:00 2001 From: irving Date: Tue, 28 Oct 2025 23:39:50 -0400 Subject: [PATCH] clean up --- order-lifecycle-refactor.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 order-lifecycle-refactor.md diff --git a/order-lifecycle-refactor.md b/order-lifecycle-refactor.md deleted file mode 100644 index 781841c..0000000 --- a/order-lifecycle-refactor.md +++ /dev/null @@ -1,14 +0,0 @@ -## Done -- Refactored order creation to run exclusively through `OrderLifecycleServiceImpl.initiateOrder`, replacing the old `createOrderInfo` entry point across controllers and services. -- Replaced nullable operator strings in completion workflow with the enum-based `OrderCompletionContext.Actor` (linked to `OrderConstant.OrderActor`) and updated all call sites/tests. -- Introduced `OrderCreationContext` (renamed from `OrderCreationRequest`) with explicit `creatorActor`/`creatorId`, eliminating heuristic creator inference. -- Added lifecycle logging: new entity/mapper for `play_order_log_info`, migration V12 to extend the table, and log writes for CREATE/COMPLETE/REFUND operations including operator metadata. -- Integrated `orderLifecycleService` logging into reward/commodity/random order endpoints and gift service; tests adjusted to cover new API. -- Placeholder utility methods (`resolveCompletionActor` etc.) plural. -- Restored `handleOrderCompletion` with atomic consumption increments and ensured reward订单的首次完成也会落消费&日志,仅首次执行。 -- Order log `operation_type` 细分至 `CREATE_*`/`COMPLETE_*`/`REFUND_*`,可区分手动、系统、强制触发等场景。 -- V12 migration 已确认顺序;如需回滚,可直接删除新增字段并恢复 `oper_type` 列名(同一脚本可倒序执行)。 -- 针对并发与幂等关键路径补充了单测(完成/退款多次触发、自动补发通知等)。 - -## Todo -- None for now。