91 料号按启用状态和最新条码映射 #671

Merged
chenxi merged 1 commits from fix/chenxi-product-cost-material-latest-enabled into main 2026-10-27 10:43:46 +08:00
Collaborator

改动

  • 91 料号去尾缀后关联 SupplyChainProductArchive
  • 仅保留 productStatus = 销售 的条码或基础 SKU
  • 多个有效候选按条码档案 createdAt 取最新;最高时间并列时继续待核验
  • 更新商品成本规则文档和单元测试

真实数据验证

  • 91.C45438.01-N09 → MKHDNZ0409260601235
  • 91.C45492.01-N1411 → GBGJ-CYJ005701N1411V01
  • 全量扫描当前商品成本 91 料号:12 个基础料号,9 个唯一匹配,3 个无销售候选

测试

  • ProductMaterialBarcodeMappingRepositoryTest:2 passed
  • StoreReceiptProductCostLineTest:48 passed / 180 assertions

风险

  • 修改商品成本派生编码和金额,将在合并发布后重跑已有月份
  • 不改上游数据库,不删除历史成本数据
## 改动 - 91 料号去尾缀后关联 `SupplyChainProductArchive` - 仅保留 `productStatus = 销售` 的条码或基础 SKU - 多个有效候选按条码档案 `createdAt` 取最新;最高时间并列时继续待核验 - 更新商品成本规则文档和单元测试 ## 真实数据验证 - `91.C45438.01-N09` → `MKHDNZ0409260601235` - `91.C45492.01-N1411` → `GBGJ-CYJ005701N1411V01` - 全量扫描当前商品成本 91 料号:12 个基础料号,9 个唯一匹配,3 个无销售候选 ## 测试 - ProductMaterialBarcodeMappingRepositoryTest:2 passed - StoreReceiptProductCostLineTest:48 passed / 180 assertions ## 风险 - 修改商品成本派生编码和金额,将在合并发布后重跑已有月份 - 不改上游数据库,不删除历史成本数据
chenxi added 1 commit 2026-10-27 10:43:39 +08:00
chenxi merged commit 16ff4dcfaa into main 2026-10-27 10:43:46 +08:00
chenxi deleted branch fix/chenxi-product-cost-material-latest-enabled 2026-10-27 10:43:47 +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#671
No description provided.