任务描述

任务背景:

allegro 因系统问题导致的重刊下架成功,系统刊登失败数据,需恢复在线


任务内容:

执行如下的SQL,将数据插入AllegroBatchUpdateData ,并执行修复在线状态


-- 下架的lsting重新入队列上架 (重刊队列成功但无平台ID的)---数据执行时间,修改到当前时间
insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)
select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW()  from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date>20221115 and Date<=20221119 and time<'2022-11-19 22:00:00' and StrategyId>0 and StrategyType=2  and `Status`='success' and RePublishItemId is null;



-- 下架的lsting重新入队列上架(重刊队列失败1) 
insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)
select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW()  from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date>20221119 and Date<=20221120
and time<'2022-11-19 22:00:00'  and StrategyId>0 and StrategyType=2  and `Status`='failure' and FailureReason='下架原Listing失败:Command with the given id but with different content is already registered.,';



-- 下架的lsting重新入队列上架(重刊队列失败2) 
insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)
select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW()  from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date>20221115 and Date<=20221119
and time<'2022-11-19 22:00:00'  and StrategyId>0 and StrategyType=2  and `Status`='failure' and FailureReason='标题/描述过滤敏感词不通过';


历史记录  
  1. 2022-11-21 14:56:06, 由 刘瀚泽 创建。
  2. 2022-11-21 16:02:16, 由 韦思成 完成。
    修改了 总计消耗,旧值为 "0",新值为 "2"。
    修改了 指派给 ,旧值为 "weisicheng",新值为 "liuhanze"。
    修改了 实际完成,旧值为 "",新值为 "2022-11-21 16:02:08"。
    修改了 任务状态,旧值为 "wait",新值为 "done"。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2022-11-21 16:02:16"。
    修改了 预计剩余,旧值为 "2",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "weisicheng"。
    已处理
  3. 2022-11-24 13:43:23, 由 刘瀚泽 编辑。
    修改了 任务描述,区别为:
    006- -- 下架的lsting重新入队列上架 (重刊队列成功但无平台ID的)---数据执行时间,修改到当前时间insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime) select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119 and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='success' and RePublishItemId is null;-- 下架的lsting重新入队列上架(重刊队列失败1)insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221119 and Date&lt;=20221120and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='下架原Listing失败:Command with the given id but with different content is already registered.,';-- 下架的lsting重新入队列上架(重刊队列失败2)insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='标题/描述过滤敏感词不通过';
    006+ -- 下架的lsting重新入队列上架 (重刊队列成功但无平台ID的)---数据执行时间,修改到当前时间insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime) select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119 and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='success' and RePublishItemId is null;-- 下架的lsting重新入队列上架(重刊队列失败1)insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221119 and Date&lt;=20221120and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='下架原Listing失败:Command with the given id but with different content is already registered.,';-- 下架的lsting重新入队列上架(重刊队列失败2)insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='标题/描述过滤敏感词不通过';
    006- <p><br />-- 下架的lsting重新入队列上架 (重刊队列成功但无平台ID的<span style="color:#E53333;">)---</span><strong><span style="color:#E53333;">数据执行时间,修改到当前时间</span></strong><br />insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)<br /><span> </span>select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119 and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='success' and RePublishItemId is null;<br /><br /><br /><br />-- 下架的lsting重新入队列上架(重刊队列失败1)<br />insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)<br />select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221119 and Date&lt;=20221120<br />and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='下架原Listing失败:Command with the given id but with different content is already registered.,';<br /><br /><br /><br />-- 下架的lsting重新入队列上架(重刊队列失败2)<br />insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)<br />select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119<br />and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='标题/描述过滤敏感词不通过';<br /></p>
    006+ <p><br />-- 下架的lsting重新入队列上架 (重刊队列成功但无平台ID的<span style="color:#E53333;">)---</span><strong><span style="color:#E53333;">数据执行时间,修改到当前时间</span></strong><br />insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)<br /><span> </span>select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119 and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='success' and RePublishItemId is null;<br /><br /><br /><br />-- 下架的lsting重新入队列上架(重刊队列失败1)<br />insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)<br />select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221119 and Date&lt;=20221120<br />and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='下架原Listing失败:Command with the given id but with different content is already registered.,';<br /><br /><br /><br />-- 下架的lsting重新入队列上架(重刊队列失败2)<br />insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)<br />select CustomerId,OrderSourceId,ItemId,'','',0,20221119,0,'系统1119',NOW(),0,'系统1119',NOW() from pp_phoenixplan_allegro_queue where CustomerId=1 and MarketId=67 and Date&gt;20221115 and Date&lt;=20221119<br />and time&lt;'2022-11-19 22:00:00' and StrategyId&gt;0 and StrategyType=2 and `Status`='failure' and FailureReason='标题/描述过滤敏感词不通过';</p>

    增加处理--allegro重新刊登失败的产品,推送到中间表恢复已上架

    insert IGNORE into m_allegro_listing_update (CustomerId,OrderSourceId,OfferId,OrginalHandingTime,HandingTime,Status,Date,CreatorId,Creator,CreationTime,LastModifierId,LastModifier,LastModificationTime)

    select CustomerId,OrderSourceId,ItemId,'','',0,20221124,0,'系统1124',NOW(),0,'系统1124',NOW()  from ap_autopublish_allegro_queue where CustomerId=1 and MarketId=67 and Date>20221115 and Date<=20221124
    and time<'2022-11-24 10:00:00'  AND PublishType=3 and `Status`='failure' 
  4. 2022-11-28 14:59:29, 由 zhengqiao 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "liuhanze",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "zhengqiao"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2022-11-28 14:59:29"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
所属迭代 技术研发中心 11月运维事项(2022年)
所属模块 /
相关需求 暂无
指派给 Closed 于 2022-11-28 14:59:29
任务类型 运维
任务标签 初始
开发组 有品开发组
任务状态 已关闭
进度 100%
优先级 P2
关键词
抄送给
由谁创建 刘瀚泽 于 2022-11-21 14:56:06
由谁完成 韦思成 于 2022-11-21 16:02:08
由谁取消 暂无
由谁关闭 zhengqiao 于 2022-11-28 14:59:29
关闭原因 已完成
最后编辑 zhengqiao 于 2022-11-28 14:59:29
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 2工时
总计消耗 2工时
预计剩余 0工时
预计开始 2022-11-21
实际开始 2022-11-21
截止日期 2022-11-21