oms/backend/app/lib/printPlatform
liufumingren b7da68a40c feat(shop-product): 移除「按商品ID拉取」,统一走同步商品 + 自动重匹配
按商品ID单品补拉会绕开分区声明与 SelectAgentId 过滤,容易把同一账号下别的商家的
同款商品写进本店铺(线上已确认拉错过别家商品),且与订单明细匹配口径
(店铺 + 平台商品ID + 平台规格ID)不是同一套数据来源。改为只保留全量快照同步。

- 前端店铺商品页:去掉「按商品ID拉取」按钮与弹窗,删除 pullExternalPrintShopProducts
  及 PullShopProducts* 类型
- 后端:删除 controller/externalPrintAccount.pullShopProducts + findSavedShopProducts、
  MAX_PULL_PRODUCT_ITEMS、路由 POST …/shops/:shopId/pull-products
- 平台层:删除 dgj.listProductsByIds 与 base.listProductsByIds 约定
- contract:删除 pullShopProducts* / externalPrintShopProductPull* 定义
- 文档 §4.2.5 补移除原因与替代做法(同步商品后自动重匹配,接口返回 rematched)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-07 21:45:50 +08:00
..