任务描述


需求描述

需求背景:目前映射分类不准确,需要研究一下全球同步的listing的分类映射是否准确,能否用于匹配


需求实现:

1.筛选美国站的渠道SKU,且存在相同渠道SKU非美国站的数据,查询参考:

SELECT OrderSourceSKU,COUNT(OrderSourceCountry) from aml_amazon_product_base  WHERE IsDelete=0 and IsOffShelf=0 and IsFBA=0
and OrderSourceSKU in (SELECT OrderSourceSKU from aml_amazon_product_base  WHERE IsDelete=0 and IsOffShelf=0 and IsFBA=0 and OrderSourceCountry='US')
GROUP BY OrderSourceSKU HAVING COUNT(OrderSourceCountry)>2


2.分别取美国站的listing和其他站点的listing,通过下载资料获取分类ID,保存记录,字段包括:渠道SKU,美国站类目ID(末节点ID),美国站类目名称(从共享库映射,取该站点有效的第一个), 映射站点,映射站点类目ID,映射站点类目名称


验收标准
暂无
历史记录  
  1. 2023-11-03 10:41:12, 由 罗友军 创建。
  2. 2023-11-04 09:24:51, 由 张家添 完成。
    修改了 总计消耗,旧值为 "0",新值为 "11"。
    修改了 指派给 ,旧值为 "zhangjiatian",新值为 "luoyoujun"。
    修改了 实际完成,旧值为 "",新值为 "2023-11-04 09:21:33"。
    修改了 任务状态,旧值为 "wait",新值为 "done"。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2023-11-04 09:24:51"。
    修改了 预计剩余,旧值为 "11",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "zhangjiatian"。
    1、项目:Zhcxkj.AutoChoose.Worker
    2、增加mysql,temp_listing_category_info
    3、核心代码

    4、数据

  3. 2023-11-04 09:28:05, 由 张家添 添加备注。

    bi库优化查询语句,用EXISTS,性能更好,很快就读出了数据源


    SELECT OrderSourceID,OrderSourceSKU,OrderSourceCountry,ASINorItemID from aml_amazon_product_base a
    WHERE IsDelete=0 and IsOffShelf=0 and IsFBA=0
    and EXISTS(SELECT OrderSourceSKU from aml_amazon_product_base b WHERE b.OrderSourceSKU=a.OrderSourceSKU and b.IsDelete=0 and b.IsOffShelf=0 and b.IsFBA=0 and b.OrderSourceCountry='US')
    and EXISTS(SELECT OrderSourceSKU from aml_amazon_product_base b WHERE b.OrderSourceSKU=a.OrderSourceSKU and b.IsDelete=0 and b.IsOffShelf=0 and b.IsFBA=0 GROUP BY OrderSourceSKU HAVING COUNT(OrderSourceCountry)>2)

    临时任务,在测试环境运行的,已跑完数据并且已提供


所属迭代 智能中心-智能刊登迭代
所属模块 智能中心-需求池  战略独立项目   智能刊登
相关需求 全球同步listing分类映射导出
指派给 罗友军 于 2023-11-04 09:24:51
任务类型 后端
任务标签 初始
开发组 仓储物流开发组
任务状态 已完成
进度 100%
优先级 P1
关键词
抄送给
由谁创建 罗友军 于 2023-11-03 10:41:12
由谁完成 张家添 于 2023-11-04 09:21:33
由谁取消 暂无
由谁关闭 暂无
关闭原因 暂无
最后编辑 张家添 于 2023-11-04 09:28:05
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 11工时
总计消耗 11工时
预计剩余 0工时
预计开始 2023-11-03
实际开始 2023-11-04
截止日期 2023-11-30