fix(配件扣款): 自有快递优先扣款并按代发配置识别 #1769

Open
limeng wants to merge 1 commits from fix/limeng-accessory-own-courier-deductions into main
Collaborator

新河北仓、曹县仓配件运费扣除明细原先按厂家关键字与仓库名免扣,导致已列入自有快递的同名记录被免扣。现在优先按对账分组的完整快递名称识别自有快递,正常执行供应商及运费扣款规则;非自有快递按代发厂家配置关键字识别,取消仓库名称关键字限制。

快递名称1优先,为空才使用名称2。外采快递保留现有豁免;缺资料、非山东河北供应商、无效运费不强制扣款。每次请求只读一次分组和厂家配置,同名判断缓存。

修改匹配器、查询仓库、页面规则说明和测试;无数据库迁移、无配置覆盖或原始财务数据写入。

验证:27项相关测试、331条断言通过;覆盖自有优先、工厂属性冲突、名称2回退、完整名称区别、汇总/筛选/导出。42,625票、79个快递、37个厂家配置模拟验证:首页/翻页/筛选/导出总耗时0.97秒,188条SQL累计10.4ms,PHP峰值52MiB、进程峰值80.8MiB。生产不压测。

新河北仓、曹县仓配件运费扣除明细原先按厂家关键字与仓库名免扣,导致已列入自有快递的同名记录被免扣。现在优先按对账分组的完整快递名称识别自有快递,正常执行供应商及运费扣款规则;非自有快递按代发厂家配置关键字识别,取消仓库名称关键字限制。 快递名称1优先,为空才使用名称2。外采快递保留现有豁免;缺资料、非山东河北供应商、无效运费不强制扣款。每次请求只读一次分组和厂家配置,同名判断缓存。 修改匹配器、查询仓库、页面规则说明和测试;无数据库迁移、无配置覆盖或原始财务数据写入。 验证:27项相关测试、331条断言通过;覆盖自有优先、工厂属性冲突、名称2回退、完整名称区别、汇总/筛选/导出。42,625票、79个快递、37个厂家配置模拟验证:首页/翻页/筛选/导出总耗时0.97秒,188条SQL累计10.4ms,PHP峰值52MiB、进程峰值80.8MiB。生产不压测。
limeng added 1 commit 2026-12-06 10:12:33 +08:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
The changes on this branch are already on the target branch. This will be an empty commit.
You are not authorized to merge this pull request.

Checkout

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