Skip to content

时价商品改动点

一、数据库变动

sku_product_new:增加时价商品字段,字段名为time_price;

二、Station接口变更

1.导出销售单商品接口:

URL:/product/sku_salemenu/list
改动:excel增加‘时价’字段,根据时间的值展示‘时价’和‘单价‘字段;

2.导入小手段商品接口:

URL:/station/skuproducts/import/<station_id>/<salemenu_id>/sku/
改动:
    1. 权限判断;
    2. 设置sku为时价商品;

3.商品库索引接口:

URL:/merchandise/spu/index
改动:SpuIndexGetView中的__get_sku_in_spu_ids方法的返回结构增加’time_price‘字段;

4.订单列表->按商品查看接口:

URL:/station/order/order_sku_list
改动:get_ordered_sku、stat_sku_orders返回结构增加’time_price‘字段;

5.订单详情->搜索sku接口:

URL:/station/skus/addr
改动:SkuQueryByAddrView返回的sku结构增加’time_price‘字段;

三、下单服务变更

在锁价之后调用设置时价函数,覆盖先前锁价;或者直接在设置锁价前设置时价;

四、Bshop接口变更

1.首页、商品列表页、常用、购物车

URL:/product/sku/everyday
改动:dals/product.py中的transform_product增加'time_price'字段;

2.搜索

URL:/product/sku/search
改动:dals/product.py中的format_sku增加'time_price'字段;