分拣进度技术方案
分拣进度技术方案
DB新增
tbl_sorting_collect
字段 | 备注 |
---|---|
id | 主键id |
time_config_id | 时间配置 |
start_date | 周期开始日期 |
total | 总任务数 |
finished | 已完成数 |
out_of_stock | 缺货数 |
weight_count | 计重任务 |
category_count | 商品种类数 |
address_count | 商户数 |
category_ids | 已有一级分类 |
addresses | 已统计商户 |
tbl_sorting_category_collect
字段 | 说明 |
---|---|
collect_id | collect id |
category_id | 分类id |
finished | 已完成 |
out_of_stock | 缺货 |
total | 总数 |
新增模块
website/weight/dals/weigh_collect
接口
# 订单改为分拣中
def on_order_sorting(orders):
...
# 批量缺货
def on_out_of_stock(skus)
# 批量称重
def on_weigh(skus)
接口改动
修改订单
station/order/set_status, station/order/update/status/preconfig, station/order/update/status/child_station
修改点:增加同步到分拣任务数的逻辑
称重
weight/sku/set_weight
修改点:同步到整体进度,分类进度
缺货
weight/sku/out_of_stock
修改点:同步到整体进度,分类进度
取消缺货
weight/sku/un_out_of_stock
修改点:同步到整体进度,分类进度
接口新增
分拣明细
station/sorting/task/list
请求方法:GET
请求参数:
参数名 | 必选M/可选O | 类型 | 说明 |
---|---|---|---|
time_config_id | M | str | 运营配置id |
target_date | M | str | 运营日期 |
search | O | str | 搜索 |
category_id_1 | O | str | 一级分类 |
category_id_2 | O | str | 二级分类 |
spu_id | O | str | 品类id |
remark | O | str | 分拣备注 |
is_weigh | O | bool | 是否称重商品 |
has_weighed | O | bool | 是否已称重 |
printed | O | bool | 是否已打印 |
route | O | str | 路线 |