9 Commits

Author SHA1 Message Date
liufumingren
2e95fb19d4 perf(query): 运单定位优先序列表直查,减少三表循环扫描 2026-08-15 20:12:26 +08:00
liufumingren
19c3fe09a7 refactor(weight): 重量字段统一为 INTEGER(g),取代 DECIMAL(kg)
- 8 个 model 重量字段类型 DECIMAL→INTEGER,注释 kg→g

- order_express 称重校验改为正整数(g)

- delivery_order 手动单查 StockStore + warehouse 称重毛重

- openapi.json 毛重/净重描述 kg→g

- 迁移: 20260725120000-unify-weight-fields-to-int-g

- 脚本: update-stock-warehouse-weight.cjs
2026-07-27 03:46:07 +08:00
liufumingren
391ab87112 fix(order_express): 包材批量绑定适配 current+dispatch 双表查询
修复波次团购包材批量绑定只查 current 表导致 dispatch 表订单遗漏的问题:
- bindExpressPackageMaterialByWaybill: 波次检测改为 current→dispatch 双表遍历
- _bindWavePackageMaterialByBusinessKey: 波次订单查询改为双表合并去重
- _getStoreName / _getWaveSysLogisticsName: 货主/物流名查询改为双表遍历
- _upsertPackageMaterialItemRelation: items_hash 查询改为双表遍历
- _updateSingleOrderWeight: items_weight 读取改为双表遍历
2026-07-16 20:19:03 +08:00
liufumingren
5d7964132e 1 2026-07-03 16:56:39 +08:00
liufumingren
77435aeb79 1 2026-06-23 18:48:33 +08:00
liufumingren
d743e67b9d 1 2026-06-17 01:18:55 +08:00
liufumingren
0b207a1c9c 1 2026-06-10 09:14:05 +08:00
liufumingren
43c60dd934 1 2026-06-09 14:12:02 +08:00
liufumingren
abf2c4d94a 1 2026-05-29 16:47:38 +08:00