任务描述

功能同需求,本任务主要针对ERP做调整,如下:

1、ShopeeV2 product API 新库存字段切换,及关联功能字段的切换
2、ERP同步listing数据涉及的接口:

get_item_base_info

get_model_list

3、其它使用相关接口的功能同步修

需求描述

需求背景:

尊敬的开发者,请留意以下变动:

我们将要弃用旧库存字段(之前的相关公告请点击这里),请您在10月15号前完成新库存字段的切换,避免您调用接口出现报错


需求价值:

控制风险,第三方接口变更,按照平台要求调整,防止接口无法调用

需求内容:


http://product-doc-wan.zhcxkj.com:9000/%E4%BA%A7%E5%93%81%E4%BA%8C%E7%BB%84/%E6%99%BA%E6%B1%87%E5%88%9B%E6%83%B32022%E5%B9%B4%E8%BF%AD%E4%BB%A3%E9%9C%80%E6%B1%82/#g=1&p=shopeev2productapi________

验收标准
暂无
历史记录  
  1. 2022-09-16 17:05:07, 由 韦思成 创建。
  2. 2022-09-20 08:57:54, 由 王翔宇 指派给 huangtiekun。
    修改了 指派给,旧值为 "wangxiangyu",新值为 "huangtiekun"。
  3. 2022-09-21 14:31:27, 由 huangtiekun 完成。
    修改了 总计消耗,旧值为 "0",新值为 "8"。
    修改了 实际完成,旧值为 "",新值为 "2022-09-21 14:30:32"。
    修改了 任务状态,旧值为 "wait",新值为 "done"。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2022-09-21 14:31:27"。
    修改了 预计剩余,旧值为 "16",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "huangtiekun"。
  4. 2022-09-26 15:35:46, 由 zhengqiao 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "huangtiekun",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "zhengqiao"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2022-09-26 15:35:46"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
  5. 2022-09-28 18:15:16, 由 huangtiekun 添加备注。

    接口返回的JSON数据:

    【

    {
        "error": "",
        "message": "",
        "warning": "Normal_stock will be offline under Oct 15th, please switch to a new field seller_stock as soon as possible.;\nNormal_stock will be offline under Oct 15th, please switch to a new field seller_stock as soon as possible.",
        "request_id": "6655d4b77996356e2afefe5f5c23a69a",
        "response": {
            "tier_variation": [
                {
                    "name": "Color",
                    "option_list": [
                        {
                            "option": "Red",
                            "image": {
                                "image_id": "8d880c748eca47b17b0bf9e9fdb1be05",
                                "image_url": "https://cf.shopee.sg/file/8d880c748eca47b17b0bf9e9fdb1be05"
                            }
                        },
                        {
                            "option": "Wine Red",
                            "image": {
                                "image_id": "d8195a77af5eb676e598cf8f0ccfee21",
                                "image_url": "https://cf.shopee.sg/file/d8195a77af5eb676e598cf8f0ccfee21"
                            }
                        }
                    ]
                },
                {
                    "name": "Size",
                    "option_list": [
                        {
                            "option": "20*12cm"
                        }
                    ]
                }
            ],
            "model": [
                {
                    "model_id": 182400857239,
                    "promotion_id": 671624204574803,
                    "tier_index": [
                        0,
                        0
                    ],
                    "stock_info": [
                        {
                            "stock_type": 2,
                            "stock_location_id": "CNZ",
                            "current_stock": 100,
                            "normal_stock": 100
                        },
                        {
                            "stock_type": 1,
                            "current_stock": 0,
                            "normal_stock": 0,
                            "reserved_stock": 0
                        }
                    ],
                    "price_info": [
                        {
                            "current_price": 3.66,
                            "original_price": 5.62,
                            "inflated_price_of_current_price": 3.66,
                            "inflated_price_of_original_price": 5.62,
                            "currency": "SGD"
                        }
                    ],
                    "model_sku": "113752TLT8R14150",
                    "pre_order": {
                        "is_pre_order": false,
                        "days_to_ship": 3
                    },
                    "stock_info_v2": {
                        "summary_info": {
                            "total_reserved_stock": 0,
                            "total_available_stock": 100
                        },
                        "seller_stock": [
                            {
                                "location_id": "CNZ",
                                "stock": 100
                            }
                        ]
                    }
                },
                {
                    "model_id": 192400855024,
                    "promotion_id": 671624204574803,
                    "tier_index": [
                        1,
                        0
                    ],
                    "stock_info": [
                        {
                            "stock_type": 2,
                            "stock_location_id": "CNZ",
                            "current_stock": 0,
                            "normal_stock": 0
                        },
                        {
                            "stock_type": 1,
                            "current_stock": 0,
                            "normal_stock": 0,
                            "reserved_stock": 0
                        }
                    ],
                    "price_info": [
                        {
                            "current_price": 3.66,
                            "original_price": 5.62,
                            "inflated_price_of_current_price": 3.66,
                            "inflated_price_of_original_price": 5.62,
                            "currency": "SGD"
                        }
                    ],
                    "model_sku": "113753FOKB214150",
                    "pre_order": {
                        "is_pre_order": false,
                        "days_to_ship": 3
                    },
                    "stock_info_v2": {
                        "summary_info": {
                            "total_reserved_stock": 0,
                            "total_available_stock": 0
                        },
                        "seller_stock": [
                            {
                                "location_id": "CNZ",
                                "stock": 0
                            }
                        ]
                    }
                }
            ]
        }
    }

    】


    将Json反序列化到实体类中,OK:


所属迭代 技术研发中心 9月第2版本(2022年)
所属模块 /
相关需求 ShopeeV2productAPI 新库存字段切换(ERP+智能刊登)
指派给 Closed 于 2022-09-26 15:35:46
任务类型 后端
任务标签 初始
开发组
任务状态 已关闭
进度 100%
优先级 P2
关键词
抄送给
由谁创建 韦思成 于 2022-09-16 17:05:06
由谁完成 huangtiekun 于 2022-09-21 14:30:32
由谁取消 暂无
由谁关闭 zhengqiao 于 2022-09-26 15:35:46
关闭原因 已完成
最后编辑 huangtiekun 于 2022-09-28 18:15:16
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 16工时
总计消耗 8工时
预计剩余 0工时
预计开始 2022-09-19
实际开始 2022-09-21
截止日期 2022-09-21