修复业务镜像日期格式 #59

Merged
WuYongJie merged 1 commits from hotfix/WuYongJie-business-mirror-iso-dates into main 2026-08-15 03:16:17 +08:00
Owner

做了什么

  • SQL Server date 列在查询阶段统一转换为 YYYY-MM-DD
  • datetime / datetime2 / smalldatetime 统一转换为 ISO 8601
  • 防止 FreeTDS 按英文区域返回日期文本后导致 MariaDB 写入失败

修改文件

  • modules/EcommerceFinance/Services/BusinessMirrorSynchronizer.php
  • tests/Unit/EcommerceFinance/BusinessMirrorSynchronizerTest.php

验证

  • PHP lint:通过
  • BusinessMirrorSynchronizerTest:7 passed,38 assertions
  • git diff --check:通过

风险与回滚

不修改上游数据、金额或权限。仅改变通用镜像读取日期的文本格式;回滚该合并提交即可恢复。生产部署与继续全量同步已有负责人授权。

## 做了什么 - SQL Server `date` 列在查询阶段统一转换为 `YYYY-MM-DD` - `datetime` / `datetime2` / `smalldatetime` 统一转换为 ISO 8601 - 防止 FreeTDS 按英文区域返回日期文本后导致 MariaDB 写入失败 ## 修改文件 - modules/EcommerceFinance/Services/BusinessMirrorSynchronizer.php - tests/Unit/EcommerceFinance/BusinessMirrorSynchronizerTest.php ## 验证 - PHP lint:通过 - BusinessMirrorSynchronizerTest:7 passed,38 assertions - git diff --check:通过 ## 风险与回滚 不修改上游数据、金额或权限。仅改变通用镜像读取日期的文本格式;回滚该合并提交即可恢复。生产部署与继续全量同步已有负责人授权。
WuYongJie added 1 commit 2026-08-15 03:15:42 +08:00
WuYongJie changed title from WIP: 修复业务镜像日期格式并完成剩余表同步 to 修复业务镜像日期格式 2026-08-15 03:16:00 +08:00
WuYongJie merged commit 955ddb5e26 into main 2026-08-15 03:16:17 +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#59
No description provided.