feat(fulfillment): 增加 Clean Cutover,历史任务隔离到人工入口

- 新增 flow_version,存量任务回填 1,Cutover 后新任务写 2
- 迁移设置 clean_flow_started_at,按订单支付/创建时间判定
- 自动选号只处理 clean 任务
- 工作台新增历史任务 Tab,历史列表不受订单起算时间限制
- 历史任务不参与自动重试和预售台账同步
- 补充流程边界测试和计划文档
This commit is contained in:
yml
2026-11-24 23:11:13 +08:00
parent 7dec3c4c48
commit aafac6e536
15 changed files with 294 additions and 7 deletions
@@ -80,6 +80,7 @@ def list_tasks(
status: str = Query("", max_length=32),
queue_bucket: str = Query("", max_length=32),
sale_mode: str = Query("", max_length=16),
flow_version: int | None = Query(None, ge=1, le=2),
keyword: str = Query("", max_length=200),
page: int = Query(1, ge=1),
page_size: int = Query(20, ge=1, le=100),
@@ -92,6 +93,7 @@ def list_tasks(
status=status,
queue_bucket=queue_bucket,
sale_mode=sale_mode,
flow_version=flow_version,
keyword=keyword,
page=page,
page_size=page_size,