Files
qipai/docs/devlogs/2026-06-18-M04-A-定价与时段预占.md
T

28 lines
988 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# M04-A 定价引擎和可用性
- 日期:2026-06-18
- 起始 commit`6be7fa7`
- 工程 commit`af7a45d`
- ENGINEERING_DELTA=YES
- 子阶段状态:DONE,已 push 且 `HEAD == origin/main`
## 工程增量
- 统一小时、工作日、节假日、通宵和包场定价。
- 支持最低消费、押金及可信服务端优惠/套餐抵扣。
- 创建订单时保存独立价格快照。
- 房间行锁串行化并发预占,事务内检查重叠。
- 待支付预占带过期时间,报价、预占和管理入口均可释放过期占位。
- 客户端最终金额、优惠和套餐字段不进入定价输入。
## 验证
- Windows 后端全量测试通过。
- WSL MySQL 8.4.9 往返迁移通过。
- 迁移语句:up 56、verify 37、down 53。
- 实测节假日/最低消费定价、历史快照不变、同房同时段并发仅一个成功、过期释放后可重新预占。
## 后续
M04-B 建立完整订单状态机、状态迁移历史和来源/原因审计。