重构用的提案,现在不敢跑
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 49s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 49s
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
## REMOVED Requirements
|
||||
|
||||
### Requirement: 资产充值关联支付配置
|
||||
**Reason**: `tb_asset_recharge_record` 表删除,支付配置关联迁移至 `tb_payment.payment_config_id`。
|
||||
**Migration**: 查询支付配置时从 `tb_payment` 读取,`PaymentStore.GetByPaymentNo()` 返回含 `payment_config_id` 的完整记录。
|
||||
|
||||
### Requirement: 资产充值表结构变更
|
||||
**Reason**: `tb_asset_recharge_record` 表重命名为 `tb_asset_recharge_record_archive` 并停止写入,相关表结构变更不再需要维护。
|
||||
**Migration**: 新的充值数据结构参见 `recharge-order` spec(`tb_recharge_order`)和 `payment-record` spec(`tb_payment`)。
|
||||
|
||||
### Requirement: 资产充值回调按配置验签
|
||||
**Reason**: 充值回调路由改为通过 `tb_payment` 查找配置,验签逻辑迁移至 `payment-record` spec 的支付路由统一需求。
|
||||
**Migration**: 回调处理查 `tb_payment.payment_config_id` 加载对应配置验签,与原逻辑等价。
|
||||
|
||||
### Requirement: 资产充值记录扩展字段(操作人与代际)
|
||||
**Reason**: 这些字段(operator_type、generation)迁移至 `tb_recharge_order` 表,继续有效。
|
||||
**Migration**: `tb_recharge_order.operator_type` 和 `tb_recharge_order.generation` 字段语义不变,字段值枚举不变。
|
||||
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: 旧表在验证完成后删除
|
||||
系统 SHALL 在所有新功能验证通过后,作为最后一步执行 `DROP TABLE tb_asset_recharge_record`。迁移期间旧表保留但不写入,仅用于人工对照核查。
|
||||
|
||||
#### Scenario: 旧表无新写入
|
||||
- **WHEN** 新代码部署完成后
|
||||
- **THEN** `tb_asset_recharge_record` 的 updated_at 最新记录时间早于部署时间,确认无新写入
|
||||
|
||||
#### Scenario: DROP 旧表
|
||||
- **WHEN** 所有验证任务通过(tasks.md 第 11 组全部完成)
|
||||
- **THEN** 执行迁移文件 DROP TABLE,旧表彻底删除
|
||||
Reference in New Issue
Block a user