feat: 明确顺运宝复用 PDD 关联 (#183)

This commit is contained in:
chengma
2026-08-12 15:13:08 +08:00
parent e32041e794
commit 4c5f0610fd
8 changed files with 105 additions and 25 deletions
+4
View File
@@ -820,6 +820,10 @@ users(采购员)──1:N 当前归属──────────┘
- `shopee_products.pdd_goods_id`:PDD 商品下架换代时改
- `spec_mappings` 按 `(蝦皮商品, 顺运宝规格键, PDD商品)` 存:换了商品自然查不到旧映射
`syb_orders` 不保存 PDD 商品 ID。新货运单通过 `shopee_goods_id` 动态读取
`shopee_products.pdd_goods_id`;只要目标 `pdd_products` 未软删除,就自动复用当前
关联。这样换绑后所有货运单立即看到新关系,也不会留下需要同步更新的第二份 PDD 字段。
## 11. 与 Client 数据模型的关系
Admin 使用集中 MySQL 8.4,Client 仍使用各自的本地 SQLite;两者只通过接口交换数据。