From 9b1a6034af214ba28c5936a8a2aab18ae7200648 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Tue, 4 Aug 2026 08:22:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- methods/changes/system.json | 139 ++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) diff --git a/methods/changes/system.json b/methods/changes/system.json index 31505a0..44abf26 100644 --- a/methods/changes/system.json +++ b/methods/changes/system.json @@ -5160,5 +5160,144 @@ "新增 express 子对象文档(code/name/polyapi_code/polyapi_extra_info/pdd_code/ks_code/dyxd_code)", "保留 quantity/recycled_quantity/cancel_quantity/allocated_quantity 四个扁平面单数量字段" ] + }, + { + "version": "2026.08.03-system-04", + "date": "2026-08-03", + "type": "added", + "summary": "新增店铺-快递绑定策略模块 storeExpressBindingPolicy,支持仓库维度的货主/店铺->快递绑定策略 CRUD,按优先级匹配,可附加商品/地区/重量/金额等条件", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "storeExpressBindingPolicy.list:分页查询策略列表,支持 where 条件筛选(id/custom_name/store_id/shop_id/express_code/priority/is_enabled/creator_id/quickWhere),按 priority DESC、updated_at DESC 排序。", + "storeExpressBindingPolicy.add:新增策略,必填 custom_name 和 express_code。express_code 须存在于 wms_express。同仓库下 custom_name 唯一。可选 store_id/shop_id/priority/is_enabled/match_condition/remark/creator_id。", + "storeExpressBindingPolicy.edit:编辑策略,必填 id。仅更新传入的非 undefined 字段。修改 custom_name 时校验同仓库唯一性。", + "storeExpressBindingPolicy.del:软删除策略(deleted_at + is_enabled=0),不物理删除。", + "仓库隔离:所有操作按 ctx.user.store_id → warehouse_id 自动过滤。", + "匹配条件 match_condition(JSON):支持 platform_codes/provinces/cities/item_codes/min_weight_g/max_weight_g/min_amount/max_amount。" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.03-system-05", + "date": "2026-08-03", + "type": "changed", + "summary": "精简 storeExpressBindingPolicy:移除 store_id/shop_id 冗余字段,custom_name 明确为纯自由文本标签(与系统 shops 无关)", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "移除 add/edit 入参中的 store_id/shop_id(含 camelCase 兼容)", + "list 响应不再返回 store_id/shop_id", + "custom_name 为纯自由文本标签,与系统 shops 表无关" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.04-system-01", + "date": "2026-08-04", + "type": "changed", + "summary": "storeExpressBindingPolicy 字段重构: match_condition JSON 拆分为独立字段 provinces/cities/min_weight_g/max_weight_g/weight_type,新增 prohibited_type_id", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "移除 match_condition JSON,拆分 provinces TEXT逗号分隔 + cities TEXT逗号分隔 + min_weight_g INT + max_weight_g INT + weight_type TINYINT 默认0", + "weight_type 枚举 0=常规 1=轻货 2=重货 3=冷链 必填默认0", + "新增 prohibited_type_id 关联 wms_prohibited_type.id" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.04-system-02", + "date": "2026-08-04", + "type": "changed", + "summary": "合并 provinces/cities 为单一 regions 字段 TEXT逗号分隔", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "移除 provinces/cities 两个字段,合并为 regions TEXT 逗号分隔" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.04-system-03", + "date": "2026-08-04", + "type": "added", + "summary": "新增 exclude_regions 排除地区字段", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "新增 exclude_regions 排除地区字段 TEXT逗号分隔" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.04-system-04", + "date": "2026-08-04", + "type": "changed", + "summary": "修正 API 文档风格,对齐项目 shops.list 等模块规范", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "list page/pageSize 描述对齐 shops.list 风格", + "add/edit 参数描述补充兼容性说明和详细格式" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.04-system-05", + "date": "2026-08-04", + "type": "added", + "summary": "新增 shop_name 字段,用于包含店铺名称匹配", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "新增 shop_name TEXT逗号分隔,与 custom_name区分:custom_name=策略名称,shop_name=包含店铺名称" + ], + "module": "storeExpressBindingPolicy" + }, + { + "version": "2026.08.04-system-06", + "date": "2026-08-04", + "type": "added", + "summary": "新增shop_name和store_ids字段", + "methods": [ + "storeExpressBindingPolicy.list", + "storeExpressBindingPolicy.add", + "storeExpressBindingPolicy.edit", + "storeExpressBindingPolicy.del" + ], + "notes": [ + "新增shop_name包含店铺名称", + "新增store_ids限定货主ID" + ], + "module": "storeExpressBindingPolicy" } ]