任务描述

测试 sql

SELECT  a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime
FROM m_allegro_listing  a 
INNER JOIN (SELECT MAX(id) as id  FROM m_allegro_listing WHERE CustomerId=1  GROUP BY sku) t ON a.id=t.id
INNER JOIN  m_allegro_listing_attribute  b  ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693
INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku
LIMIT 1000

需求描述

业务背景

      (1)UPC每个星期的增量是固定的20W条,无法额外产生更多的数据

      (2)多平台2023年有刊登次数要求,同SKU会重复刊登多次,UPC若不支持复用,则无法达成刊登目标

      (3)同母体ID下的SKU+同组合关系下的SKU( a*N倍)UPC可复用,不需要额外绑定,可以提高数据复用率,大大节省UPC

业务价值

增加收益,不再因为UPC数量不够而限制刊登量,满足刊登覆盖率要求,进而刺激出单



需求内容:


https://alidocs.dingtalk.com/i/nodes/3KLw95QMzkb8g0y3XobzWAjrymPeEN2q

验收标准
  1. 操作流转正常
  2. 数据绑定正常,UPC复用信息按需求,可追踪,可定位
  3. 不影响刊登性能,可以正常刊登
历史记录  
  1. 2023-02-20 15:17:20, 由 闫峰 创建。
  2. 2023-02-20 15:18:56, 由 闫峰 编辑。
    修改了 截止日期,旧值为 "0000-00-00",新值为 "2023-02-27"。
  3. 2023-02-27 16:02:10, 由 闫峰 编辑。
    修改了 所属迭代,旧值为 "683",新值为 "687"。
    修改了 所属模块,旧值为 "1732",新值为 "0"。
    修改了 指派给 ,旧值为 "yanfeng",新值为 ""。
  4. 2023-02-27 16:39:22, 由 李乐同 编辑。
    修改了 指派给,旧值为 "",新值为 "yanfeng"。
  5. 2023-03-01 21:37:34, 由 闫峰 编辑。
    修改了 截止日期,旧值为 "2023-02-27",新值为 "2023-03-16"。
  6. 2023-03-02 10:25:37, 由 闫峰 编辑。
    修改了 任务描述,区别为:
    001-
    001+ 测试 sql
    002+ SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime FROM m_allegro_listing a INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693 INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku LIMIT 1000
    001-
    001+ <p>测试 sql</p>
    002+ <p><span> </span>SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime<br /><span> </span>FROM m_allegro_listing a<br /><span> </span>INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id<br /><span> </span>INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693<br /><span> </span>INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku<br /><span> </span>LIMIT 1000<br /></p>
  7. 2023-03-02 16:55:52, 由 闫峰 编辑。
    修改了 任务描述,区别为:
    002- SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime FROM m_allegro_listing a INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693 INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku LIMIT 1000
    002+ SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime FROM m_allegro_listing a INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693 INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku LIMIT 1000
    002- <p><span> </span>SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime<br /><span> </span>FROM m_allegro_listing a<br /><span> </span>INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id<br /><span> </span>INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693<br /><span> </span>INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku<br /><span> </span>LIMIT 1000<br /></p>
    002+ <p><span> </span>SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime<br /><span> </span>FROM m_allegro_listing a<br /><span> </span>INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id<br /><span> </span>INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693<br /><span> </span>INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku<br /><span> </span>LIMIT 1000</p>

    美可多 初始化验证 

     SELECT
    a.id,
    a.OrderSourceId,
    a.sku,
    a.ProductId,
    b.AttributeId,
    b.ValueName,
    a.LastModificationTime,
    b.LastModificationTime
    FROM
    m_mercadolibre_listing a
    JOIN (SELECT MAX(id) as id  FROM m_mercadolibre_listing WHERE CustomerId=1  AND OrderSourceId=10833 GROUP BY OrderSourceId,sku) t ON a.id=t.id
    JOIN m_mercadolibre_listing_attribute b ON a.CustomerId = b.CustomerId AND a.OrderSourceId = b.OrderSourceId AND a.ProductId = b.ProductId AND b.AttributeId = 'GTIN'
    WHERE a.CustomerId=1 AND a.OrderSourceId=10833 AND a.sku='7817613'

  8. 2023-03-13 16:02:30, 由 李乐同 启动。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2023-03-13 16:02:26"。
    修改了 总计消耗,旧值为 "0",新值为 "1"。
    修改了 预计剩余,旧值为 "0",新值为 "11"。
    修改了 任务状态,旧值为 "wait",新值为 "doing"。
  9. 2023-03-16 19:17:14, 由 李乐同 完成。
    修改了 总计消耗,旧值为 "1",新值为 "6"。
    修改了 实际完成,旧值为 "",新值为 "2023-03-16 19:17:07"。
    修改了 任务状态,旧值为 "doing",新值为 "done"。
    修改了 预计剩余,旧值为 "11",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "liletong"。
    线上跟进
  10. 2023-03-20 10:34:05, 由 闫峰 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "yanfeng",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "yanfeng"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2023-03-20 10:34:05"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
  11. 2023-03-21 16:29:17, 由 李乐同 添加备注。

    同一个母体下的SKU共用UPC

  12. 2023-03-21 16:44:58, 由 闫峰 添加备注。

    allegro 普通SKU  m_market_allegro_upc有记录


    刊登使用的UPC为   如下图 

  13. 2023-03-21 18:38:24, 由 闫峰 添加备注。

    变体SKU 变体本身没有记录 兄弟姐妹也没有记录

  14. 2023-03-21 18:39:20, 由 闫峰 添加备注。


     组合SKU 本身没有记录 孩子也没有

  15. 2023-03-22 16:20:31, 由 闫峰 添加备注。

    组合SKU 本身没有  根据子SKU绑定

所属迭代 技术研发中心 3月第1版本(2023年)
所属模块 /
相关需求 UPC支持同平台同账号同系统SKU重复使用
指派给 Closed 于 2023-03-20 10:34:05
任务类型 测试
任务标签 初始
开发组 百货开发组
任务状态 已关闭
进度 100%
优先级 P2
关键词
抄送给
由谁创建 闫峰 于 2023-02-20 15:17:20
由谁完成 李乐同 于 2023-03-16 19:17:07
由谁取消 暂无
由谁关闭 闫峰 于 2023-03-20 10:34:05
关闭原因 已完成
最后编辑 闫峰 于 2023-03-22 16:20:31
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 0工时
总计消耗 6工时
预计剩余 0工时
预计开始 0000-00-00
实际开始 2023-03-13
截止日期 2023-03-16