fix(发货核算): 保持数字单号查询使用文本索引 #1640

Open
limeng wants to merge 1 commits from fix/limeng-courier-patch21-numeric-index into main
Collaborator

补丁21执行中发现纯数字单号和交易号被PHP数组键转为整数,数据库按数值比较导致单号索引失效。查询前显式转回字符串,保持原核算规则与范围。

验证:运费服务11项测试、92断言通过,新增数字单号/交易号绑定类型回归;生产只读EXPLAIN确认使用express_no索引,指定单号返回2行耗时0.0005秒。无迁移。此前核算已受控停止,保留运行前备份;发布后重新完成原授权范围。

补丁21执行中发现纯数字单号和交易号被PHP数组键转为整数,数据库按数值比较导致单号索引失效。查询前显式转回字符串,保持原核算规则与范围。 验证:运费服务11项测试、92断言通过,新增数字单号/交易号绑定类型回归;生产只读EXPLAIN确认使用express_no索引,指定单号返回2行耗时0.0005秒。无迁移。此前核算已受控停止,保留运行前备份;发布后重新完成原授权范围。
limeng added 1 commit 2026-12-02 11:38:13 +08:00
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/limeng-courier-patch21-numeric-index:fix/limeng-courier-patch21-numeric-index
git checkout fix/limeng-courier-patch21-numeric-index
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#1640
No description provided.