GaoYiYuan_0626
318cb39a1f
基金转换 T-7:convert_service 八步编排(关键路径 · 幂等前置 + 三阶段)
- 新增 app/service/convert/convert_service.py:八步编排(①-④ 校验不落库 / ⑤ 占位 /
⑥ apply_convert / ⑦ 阶段 1.5 引擎不阻断 / ⑧ 回写 + 审计),幂等判定前置到校验之前
以修复同键重试误报 InsufficientShares
- 新增 tests/test_convert_service.py(17 用例)
- 新增 scripts/dev/verify_convert_service.py(真 MySQL 验证 35/35)
- 改 app/repository/convert_repository.py:complete_convert 由纯 UPDATE 改三步法
upsert(无占位直跑也能落完成行,R-a 口径)
- 改 app/repository/core_ro.py:新增 has_convert_trades / list_convert_trades /
list_convert_lot_details 三个只读方法
- 改 app/config/settings.py:新增 6 个 convert 配置项
- 修 tests/test_convert_calc.py:TestPurity 排除编排层 convert_service.py
基线 639 → 656 passed / 3 skipped,零回归
2026-09-10 17:12:01 +08:00
..
2026-09-10 14:45:55 +08:00
2026-09-10 14:45:55 +08:00
2026-09-07 19:53:39 +08:00
2026-09-07 02:34:57 +08:00
2026-09-06 23:37:03 +08:00
2026-09-07 01:59:15 +08:00
2026-09-09 18:10:03 +08:00
2026-09-07 18:28:18 +08:00
2026-09-07 03:03:12 +08:00
2026-09-07 11:55:24 +08:00
2026-09-08 14:23:33 +08:00
2026-09-10 14:45:55 +08:00
2026-09-08 14:07:38 +08:00
2026-09-10 14:45:55 +08:00
2026-09-10 17:12:01 +08:00
2026-09-10 16:26:42 +08:00
2026-09-10 15:53:31 +08:00
2026-09-10 17:12:01 +08:00
2026-09-06 23:37:03 +08:00
2026-09-10 14:45:55 +08:00
2026-09-07 01:02:12 +08:00
2026-09-06 15:09:14 +08:00
2026-09-07 11:46:24 +08:00
2026-09-07 19:28:04 +08:00
2026-09-07 11:16:15 +08:00
2026-09-07 11:16:15 +08:00
2026-09-07 17:49:39 +08:00
2026-09-07 12:05:36 +08:00
2026-09-10 15:53:31 +08:00
2026-09-08 14:23:33 +08:00
2026-09-07 11:49:43 +08:00
2026-09-07 18:28:18 +08:00
2026-09-06 23:37:03 +08:00
2026-09-07 12:01:45 +08:00
2026-09-07 19:28:04 +08:00
2026-09-07 17:39:04 +08:00
2026-09-06 23:37:03 +08:00
2026-09-07 17:34:32 +08:00
2026-09-07 19:05:02 +08:00
2026-09-07 17:34:32 +08:00
2026-09-10 15:42:55 +08:00
2026-09-07 17:42:55 +08:00
2026-09-06 15:09:14 +08:00
2026-09-07 17:34:32 +08:00