历史记录  
  1. 2025-01-12 18:01:01, 由 王小勤 创建。
  2. 2025-01-14 11:56:15, 由 王小勤 编辑。
    修改了 预计开始,旧值为 "2025-01-12",新值为 "2025-01-13"。
    修改了 截止日期,旧值为 "2025-01-13",新值为 "2025-01-14"。
    验证如下:

    同步刊登数:手动同步

    先同步生产的策略:100037(直发仓listing)+100038(虚拟仓listing),将其Status=success进行同步:

    策略id:100037(直发仓listing)

    策略id:100038(虚拟仓listing)

    同步出单数:通过服务:GetTpPublishEbayStrategyStatistics--dev  Ebay销单量统计【暂时存在问题,目前无任何数据产生】

  3. 2025-01-14 11:56:39, 由 王小勤 记录工时,消耗 1 小时。
  4. 2025-01-14 11:56:39, 由 王小勤 记录工时,消耗 1 小时。
    修改了 总计消耗,旧值为 "0",新值为 "2"。
    修改了 预计剩余,旧值为 "6",新值为 "4"。
    修改了 任务状态,旧值为 "wait",新值为 "doing"。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2025-01-12"。
  5. 2025-01-15 14:52:43, 由 王小勤 添加备注。
    继续验证:

    同步出单数流程:手动同步

    1、获取到队列表成功的店铺,再通过销量表(数据范围:20241201)获取到销量(Sales)>0的数据,查询对应sub表数据范围:20241201)的平台listing(productID)

    ##---从出单店铺在sub表中筛选对应的平台ID,唯一的平台ID可对应多个渠道SKU
    SQL参考:select DISTINCT ProductId from m_ebay_listing_sub where   sellersku in (select  sellersku from  m_ebay_sale_day_summary where ordersourceID in 
    (队列成功的店铺)  and  Date >='20250101' and Date <='20250114'); 

    2、获取到sub表中的唯一ProductId,listing主表和明细表(数据范围:2024101月 至今 )

    SQL参考:
    select * from  m_ebay_listing_sub where ProductId in  (平台ID)

    select * from  m_ebay_listing where ProductId in  (平台ID)


    3、获取以上数据后,导入测试环境,并按照需求要求获取7天、15天、30天出单数:
    2025年1月15日导入队列+销量+listing相关表最新数据:
    SQL参考:


    策略ID:100037
    7天出单数:
    select count(distinct productid) from m_ebay_listing_sub where sellersku in (select  sellersku from  m_ebay_sale_day_summary where sales >0 and ordersourceID in 
    (select  t1.ordersourceID from  tp_publish_ebay_strategy_ordersource t1 left join sys_ordersource_api_authorization  t2 on t1.OrderSourceId = t2.OrderSourceId where StrategyId in ('100037')) 
    and  Date>='2025-01-08 00:00:00.000' and Date < '2025-01-15 00:00:00.000'); 
     ##20250108  ---5149


    15天出单数:
    select count(distinct productid) from m_ebay_listing_sub where sellersku in (select  sellersku from  m_ebay_sale_day_summary where sales >0 and ordersourceID in 
    (select  t1.ordersourceID from  tp_publish_ebay_strategy_ordersource t1 left join sys_ordersource_api_authorization  t2 on t1.OrderSourceId = t2.OrderSourceId where StrategyId in ('100037')) 
    and  Date>='2024-12-31 00:00:00.000' and Date < '2025-01-15 00:00:00.000'); 
     ##20241231   ---7785


    30天出单数:
    select count(distinct productid) from m_ebay_listing_sub where sellersku in (select  sellersku from  m_ebay_sale_day_summary where sales >0 and ordersourceID in 
    (select  t1.ordersourceID from  tp_publish_ebay_strategy_ordersource t1 left join sys_ordersource_api_authorization  t2 on t1.OrderSourceId = t2.OrderSourceId where StrategyId in ('100037')) 
    and  Date>='2024-12-16 00:00:00.000' and Date < '2025-01-15 00:00:00.000'); 
     ##20241216   ---7793

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    策略ID:100038
    7天出单数:
    select count(distinct productid) from m_ebay_listing_sub where sellersku in (select  sellersku from  m_ebay_sale_day_summary where sales >0 and ordersourceID in 
    (select  t1.ordersourceID from  tp_publish_ebay_strategy_ordersource t1 left join sys_ordersource_api_authorization  t2 on t1.OrderSourceId = t2.OrderSourceId where StrategyId in ('100038')) 
    and  Date>='2025-01-08 00:00:00.000' and Date < '2025-01-15 00:00:00.000'); 
     ##20250108  ---5062


    15天出单数:
    select count(distinct productid) from m_ebay_listing_sub where sellersku in (select  sellersku from  m_ebay_sale_day_summary where sales >0 and ordersourceID in 
    (select  t1.ordersourceID from  tp_publish_ebay_strategy_ordersource t1 left join sys_ordersource_api_authorization  t2 on t1.OrderSourceId = t2.OrderSourceId where StrategyId in ('100038')) 
    and  Date>='2024-12-31 00:00:00.000' and Date < '2025-01-15 00:00:00.000'); 
     ##20241231   ---7667


    30天出单数:
    select count(distinct productid) from m_ebay_listing_sub where sellersku in (select  sellersku from  m_ebay_sale_day_summary where sales >0 and ordersourceID in 
    (select  t1.ordersourceID from  tp_publish_ebay_strategy_ordersource t1 left join sys_ordersource_api_authorization  t2 on t1.OrderSourceId = t2.OrderSourceId where StrategyId in ('100038')) 
    and  Date>='2024-12-16 00:00:00.000' and Date < '2025-01-15 00:00:00.000'); 
     ##20241216   ---7674

    4、获取以上数据后,导入测试环境,并按照需求要求获取 7天、15天、30天 刊登数:(获取当前时间距离X天(X+1天)前那一天的数据 )

    2025年1月15日刊登数据:
    SQL参考:
    7天刊登数:20250107
    策略id:100037  模板ID:100024   ====直发listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100037' and date ='20250107';  
    ##---成功刊登数:2520

    策略id:100038  模板ID:100028   ===虚拟listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100038' and date ='20250107';  
    ##---成功刊登数:1259

    15天刊登数:20241230
    策略id:100037  模板ID:100024   ====直发listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100037' and date ='20241230';  
    ##---成功刊登数:2668

    策略id:100038  模板ID:100028   ===虚拟listing
    select count(1)  from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100038' and date ='20241230';  
    ##---成功刊登数:1079
    30天刊登数:20241215
    策略id:100037  模板ID:100024   ====直发listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100037' and date ='20241215';  
    ##---成功刊登数:1309

    策略id:100038  模板ID:100028   ===虚拟listing
    select count(1)  from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100038' and date ='20241215';  
    ##---成功刊登数:282


    5、获取以上正确数据,并通过平均出单率公式计算:X 天的sum(X天出单数)/sum(X天刊登数)*100%

    预期计算结果:

    实际结果:聚合表获取结果:与预期一致

  6. 2025-01-15 14:53:16, 由 王小勤 记录工时,消耗 2 小时。
  7. 2025-01-15 14:53:16, 由 王小勤 记录工时,消耗 1 小时。
    修改了 总计消耗,旧值为 "2",新值为 "5"。
    修改了 预计剩余,旧值为 "4",新值为 "1"。
  8. 2025-01-15 14:58:56, 由 王小勤 添加备注。
    补充【出单数】第4点:刊登数的获取结果:

    2025年1月15日刊登数据:
    SQL参考:
    7天刊登数:20250107
    策略id:100037  模板ID:100024   ====直发listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100037' and date ='20250107';  
    ##---成功刊登数:2520

    策略id:100038  模板ID:100028   ===虚拟listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100038' and date ='20250107';  
    ##---成功刊登数:1259

    15天刊登数:20241230
    策略id:100037  模板ID:100024   ====直发listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100037' and date ='20241230';  
    ##---成功刊登数:2668

    策略id:100038  模板ID:100028   ===虚拟listing
    select count(1)  from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100038' and date ='20241230';  
    ##---成功刊登数:1079


    30天刊登数:20241215
    策略id:100037  模板ID:100024   ====直发listing
    select count(1) from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100037' and date ='20241215';  
    ##---成功刊登数:1309

    策略id:100038  模板ID:100028   ===虚拟listing
    select count(1)  from  Ap_AutoPublish_Ebay_Queue ap where  ap.`CustomerId`=1 and MarketId =2 and ap.`status`='success' and   ap.StrategyId = '100038' and date ='20241215';  
    ##---成功刊登数:282

  9. 2025-01-16 21:25:27, 由 王小勤 编辑。
    修改了 截止日期,旧值为 "2025-01-14",新值为 "2025-01-15"。
    存在问题,开发已修复,先行关闭,1月17日补充验证截图。

  10. 2025-01-16 21:25:46, 由 王小勤 编辑工时。
    修改了 总计消耗,旧值为 "5",新值为 "6"。
    修改了 预计剩余,旧值为 "1",新值为 "0"。
    修改了 任务状态,旧值为 "doing",新值为 "done"。
  11. 2025-01-21 10:04:27, 由 王小勤 添加备注。
    问题修复后,通过7天销量(测试环境,刊登数从生产迁移,出单数通过日销量表自己造数,,插入4条出单)执行获取值验证:


所属迭代 智能中心-EBAY直发迭代
所属模块 智能中心-需求池  战略独立项目   EBAY直发
相关需求 刊登策略数据追踪
指派给 王小勤 于 2025-01-21 10:04:27
任务类型 测试
任务标签 初始
开发组
任务状态 已完成
进度 100%
优先级 P0
关键词
抄送给
由谁创建 王小勤 于 2025-01-12 18:01:01
由谁完成 王小勤 于 2025-01-16 21:25:46
由谁取消 暂无
由谁关闭 暂无
关闭原因 暂无
最后编辑 王小勤 于 2025-01-21 10:04:27
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 6工时
总计消耗 6工时
预计剩余 0工时
预计开始 2025-01-13
实际开始 2025-01-12
截止日期 2025-01-15