1.数据准确2.页面展示无误。
1.数据准确2.页面展示无误。
同步出单数流程:手动同步
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)
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




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%
预期计算结果:

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

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




| 所属迭代 | 智能中心-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 |
同步刊登数:手动同步
先同步生产的策略:100037(直发仓listing)+100038(虚拟仓listing),将其Status=success进行同步:
策略id:100037(直发仓listing)

策略id:100038(虚拟仓listing)
同步出单数:通过服务:GetTpPublishEbayStrategyStatistics--dev Ebay销单量统计【暂时存在问题,目前无任何数据产生】
