停止V4入站双写旧任务

This commit is contained in:
andy
2026-07-20 17:18:28 +07:00
parent d45ff5b4ed
commit 626e87abdb
16 changed files with 438 additions and 69 deletions

View File

@@ -120,12 +120,14 @@ SuperAgent 不应知道或依赖内部 SourceMessage Inbox ID也不需要为
- V4 普通业务包使用 `route_code=null``source_message``order_contexts[]``message_events[]`
- `source_message.source_message_id` 是外部来源消息 ID对应 SourceMessage Inbox 的 `external_message_id`,不是本系统内部数据库 ID。
- 普通业务按 `source_message + order_ref` 创建 V4 订单任务并在订单任务下创建来源消息只读卡、Basic Information 卡和业务事件卡。
- 普通业务按 `source_message + order_ref` 创建 V4 订单任务并在订单任务下创建来源消息只读卡、Basic Information 卡和业务事件卡V4 后新业务主线不再创建旧 `workflow_reservation_task`
- Basic Information 必须先确认业务卡逐卡确认或复核解阻确认后永久锁定V4 第一版不提供前端草稿。
- `route_code=S10/S99` 使用 V4 来源通知模型,不创建隐藏技术订单,不进入订单详情时间线,不阻塞普通订单;前端只展示和 ack。
- Account / Market / Source、Room Type、Rate Code 以本系统数据库目录稳定代码为准SuperAgent 不应输出显示文案作为业务判断依据。
当前后端仍兼容 M002 V3 CP1-CP6
开发阶段不维护 V2/V3 旧任务兼容,测试数据可重建;该策略仅限开发 / 测试阶段,不代表生产迁移方案。生产数据迁移策略不在当前 checkpoint 处理,后续上线前另开迁移方案。
当前后端仍兼容 M002 V3 CP1-CP6 历史入口代码路径,但不作为开发阶段新业务验收重点:
- 已建立 40 条 P0.1 路由枚举 / 稳定配置;`route_code` 保持历史稳定,不按总数连续重编号,`R41/R42` 仍可能出现在响应和历史 transition 中。
- 已支持结构化 `S10/S99` 历史入站兼容;当前 V4 新入站使用来源通知模型。
@@ -811,6 +813,8 @@ S000/S999 不在 body 里传 `hotel_id`,后端使用平台酒店表唯一 `ACT
### 8.7 成功响应
V4 普通业务包成功响应示例。注意V4 新业务主线只写 V4 订单任务和任务卡,响应中的 `task_id``task_status``execution_order` 不再代表旧 `workflow_reservation_task`,因此返回 `null`;前端和后端内部处理应通过 V4 查询接口读取 `order_task_id` / `card_id`
```json
{
"request_id": "req-003",
@@ -827,19 +831,21 @@ S000/S999 不在 body 里传 `hotel_id`,后端使用平台酒店表唯一 `ACT
"system_process_category": "BUSINESS_TASK",
"adapter_error_code": null,
"order_id": "1900000000000000300",
"task_id": "1900000000000000400",
"task_id": null,
"system_task_type": "NEW_BOOKING",
"task_card_type": "NEW_BOOKING",
"task_status": "PENDING_CONFIRM",
"order_status": "TEMPORARY",
"execution_order": 1
"task_status": null,
"order_status": "ACTIVE",
"execution_order": null
}
],
"warnings": []
}
```
S000/S999 成功响应示例:
历史 V2/V3 兼容入口仍可能返回旧 `task_id``execution_order`;该路径仅作历史参考,不作为开发阶段 V4 新业务验收重点。
旧文本 S000/S999 成功响应示例:
```json
{