普通商品资料增加完整价格变更记录 #181

Merged
limeng merged 1 commits from feature/limeng-normal-product-price-history into main 2026-09-14 12:33:50 +08:00
Collaborator

做了什么

  • 普通商品资料按当前页批量加载同一商品编码的完整定价/变价历史
  • 主表继续显示最近一次变价,并新增价格变更明细弹层
  • 明细展示变价前后价格、差价、生效区间和记录时间,支持单商品 CSV 导出
  • 大批量普通商品导出仍只读取最近一次变价,避免历史数据放大内存

修改文件

  • modules/EcommerceFinance/Repositories/ProductCatalogMirrorRepository.php
  • resources/views/business/pages/product-inventory/normal-products.blade.php
  • tests/Feature/Business/ProductCatalogPageTest.php
  • tests/Unit/EcommerceFinance/ProductCatalogMirrorRepositoryTest.php

验证

  • Docker 容器内以 www-data 执行相关测试:25 passed,197 assertions
  • Repository PHP 语法检查通过
  • git diff --check 通过
  • 桌面与 390x844 移动视口已检查,测试 SKU 显示 9 条历史并成功导出 UTF-8 CSV

影响范围

  • 涉及价格数据的展示与单商品导出
  • 不修改金额计算口径、权限、数据库结构或配置
  • 无数据库迁移
## 做了什么 - 普通商品资料按当前页批量加载同一商品编码的完整定价/变价历史 - 主表继续显示最近一次变价,并新增价格变更明细弹层 - 明细展示变价前后价格、差价、生效区间和记录时间,支持单商品 CSV 导出 - 大批量普通商品导出仍只读取最近一次变价,避免历史数据放大内存 ## 修改文件 - `modules/EcommerceFinance/Repositories/ProductCatalogMirrorRepository.php` - `resources/views/business/pages/product-inventory/normal-products.blade.php` - `tests/Feature/Business/ProductCatalogPageTest.php` - `tests/Unit/EcommerceFinance/ProductCatalogMirrorRepositoryTest.php` ## 验证 - Docker 容器内以 `www-data` 执行相关测试:25 passed,197 assertions - Repository PHP 语法检查通过 - `git diff --check` 通过 - 桌面与 390x844 移动视口已检查,测试 SKU 显示 9 条历史并成功导出 UTF-8 CSV ## 影响范围 - 涉及价格数据的展示与单商品导出 - 不修改金额计算口径、权限、数据库结构或配置 - 无数据库迁移
limeng added 1 commit 2026-09-14 12:32:44 +08:00
limeng merged commit 59f5f5b4f0 into main 2026-09-14 12:33:50 +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#181
No description provided.