修复业务镜像增量同步与营销账单导出 #56

Merged
WuYongJie merged 1 commits from hotfix/WuYongJie-business-mirror-incremental-export into main 2026-08-14 20:15:35 +08:00
Owner

变更

  • SQL Server 增量水位时间改用 ISO 8601 毫秒格式,解决 FreeTDS 日期转换失败
  • 月余额改为一次窗口计算,避免完整导出按月份反复扫描大表
  • 保留首次余额、期末余额和按月筛选口径

风险与回滚

  • 不写上游数据库,不删除镜像数据
  • 生产部署前已备份系统数据库和业务镜像库
  • 回滚应用镜像即可恢复旧代码

验证

  • PHP 语法检查通过
  • 11 tests / 88 assertions 通过
  • 真实上游只读时间参数验证通过
  • 生产镜像只读性能:淘宝约 288ms、拼多多约 2.7s
## 变更 - SQL Server 增量水位时间改用 ISO 8601 毫秒格式,解决 FreeTDS 日期转换失败 - 月余额改为一次窗口计算,避免完整导出按月份反复扫描大表 - 保留首次余额、期末余额和按月筛选口径 ## 风险与回滚 - 不写上游数据库,不删除镜像数据 - 生产部署前已备份系统数据库和业务镜像库 - 回滚应用镜像即可恢复旧代码 ## 验证 - PHP 语法检查通过 - 11 tests / 88 assertions 通过 - 真实上游只读时间参数验证通过 - 生产镜像只读性能:淘宝约 288ms、拼多多约 2.7s
WuYongJie added 1 commit 2026-08-14 20:12:16 +08:00
WuYongJie changed title from WIP: 修复业务镜像增量同步与营销账单导出 to 修复业务镜像增量同步与营销账单导出 2026-08-14 20:15:32 +08:00
WuYongJie merged commit 3885802877 into main 2026-08-14 20:15:35 +08:00
WuYongJie deleted branch hotfix/WuYongJie-business-mirror-incremental-export 2026-08-14 20:15:36 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#56
No description provided.