任务描述

需求背景

由于目前归档的数据量过大,导致归档过慢,因此需采用快速归档方式进行归档


需求描述

1.ERP新建临时表,将人工刊登的以及智能刊登有销量的listingID存入到临时表中

2.表数据归档通过对应表与临时表比较,不在临时表中的listing则进行归档,对应表如下:

 RB_Ebay_Listing_Basic_V2
 RB_Ebay_Listing_Attribute_V2
 RB_Ebay_Listing_ShippingDetail_V2
 RB_Ebay_Listing_Payment_V2
 RB_Ebay_Listing_WarehouseList_V2
 RB_Ebay_Listing_Product_Sales_V2
 RB_Ebay_Listing_Product_V2
 RB_Ebay_Listing_Sale_Attach_V2
 RB_Ebay_Listing_Shipping_V2
 RB_Ebay_Listing_BuyerCondition_V2
 RB_Ebay_Listing_Other_V2
 RB_Ebay_Listing_ReturnPolicy_V2
 RB_Ebay_Listing_DispatchTimeMax_Log
 RB_Ebay_Listing_AutoSupplement_V2
 RB_Ebay_Listing_VariationAttribute_V2
 RB_Ebay_Listing_FitmentValue_V2
 RB_Ebay_Listing_Basic_Description_V2
 RB_Ebay_Listing_Marketing_Attach_V2
 RB_Ebay_Listing_ProductAttribute_V2
 RB_Ebay_ItemID_ShipStrategy_V2   
 RB_Ebay_ItemID_AutoSupplement_V2 
 RB_Collect_Ebay_NewListingShippingDetail   
 RB_Ebay_ItemID_Sync_V2 
 RB_Ebay_Listing_Image_V2  
3.以下表数据按添加时间保留半年即可,超过半年自动归档
RB_Ebay_ErrorMessage
RB_Ebay_Listing_Promotion_Log 


需求描述

需求背景

由于目前归档的数据量过大,导致归档过慢,因此需采用快速归档方式进行归档


需求描述

1.ERP新建临时表,将人工刊登的以及智能刊登有销量的listingID存入到临时表中

2.表数据归档通过对应表与临时表比较,不在临时表中的listing则进行归档,对应表如下:

 RB_Ebay_Listing_Basic_V2
 RB_Ebay_Listing_Attribute_V2
 RB_Ebay_Listing_ShippingDetail_V2
 RB_Ebay_Listing_Payment_V2
 RB_Ebay_Listing_WarehouseList_V2
 RB_Ebay_Listing_Product_Sales_V2
 RB_Ebay_Listing_Product_V2
 RB_Ebay_Listing_Sale_Attach_V2
 RB_Ebay_Listing_Shipping_V2
 RB_Ebay_Listing_BuyerCondition_V2
 RB_Ebay_Listing_Other_V2
 RB_Ebay_Listing_ReturnPolicy_V2
 RB_Ebay_Listing_DispatchTimeMax_Log
 RB_Ebay_Listing_AutoSupplement_V2
 RB_Ebay_Listing_VariationAttribute_V2
 RB_Ebay_Listing_FitmentValue_V2
 RB_Ebay_Listing_Basic_Description_V2
 RB_Ebay_Listing_Marketing_Attach_V2
 RB_Ebay_Listing_ProductAttribute_V2
 RB_Ebay_ItemID_ShipStrategy_V2   
 RB_Ebay_ItemID_AutoSupplement_V2 
 RB_Collect_Ebay_NewListingShippingDetail   
 RB_Ebay_ItemID_Sync_V2 
 RB_Ebay_Listing_Image_V2  
3.以下表数据按添加时间保留半年即可,超过半年自动归档
RB_Ebay_ErrorMessage
RB_Ebay_Listing_Promotion_Log 


验收标准
暂无
历史记录  
  1. 2023-09-20 09:22:22, 由 胡笑锋 创建。
  2. 2023-09-20 09:22:54, 由 胡笑锋 完成。
    修改了 总计消耗,旧值为 "0",新值为 "9"。
    修改了 实际完成,旧值为 "",新值为 "2023-09-20 09:22:32"。
    修改了 任务状态,旧值为 "wait",新值为 "done"。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2023-09-20 09:22:54"。
    修改了 预计剩余,旧值为 "9",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "huxiaofeng"。
    -- 将 ListingBasicID,ItemID 导入临时表
    select top 10 ListingBasicID,ItemID from RB_Ebay_Listing_Basic_V2 where QuantitySold>0 or AdminID !=0

    -- 第一步:以下表 根据 ListingBasicID 不在临时表可归档
    select top 10 * from RB_Ebay_Listing_Basic_V2
    select top 10 * from RB_Ebay_Listing_Product_Sales_V2
    select top 10 * from RB_Ebay_Listing_Attribute_V2
    select top 10 * from RB_Ebay_Listing_ShippingDetail_V2
    select top 10 * from RB_Ebay_Listing_Payment_V2
    select top 10 * from RB_Ebay_Listing_WarehouseList_V2
    select top 10 * from RB_Ebay_Listing_Product_Sales_V2
    select top 10 * from RB_Ebay_Listing_Product_V2
    select top 10 * from RB_Ebay_Listing_Sale_Attach_V2
    select top 10 * from RB_Ebay_Listing_Shipping_V2
    select top 10 * from RB_Ebay_Listing_BuyerCondition_V2
    select top 10 * from RB_Ebay_Listing_Other_V2
    select top 10 * from RB_Ebay_Listing_ReturnPolicy_V2
    select top 10 * from RB_Ebay_Listing_DispatchTimeMax_Log
    select top 10 * from RB_Ebay_Listing_AutoSupplement_V2
    select top 10 * from RB_Ebay_Listing_VariationAttribute_V2
    select top 10 * from RB_Ebay_Listing_FitmentValue_V2
    select top 10 * from RB_Ebay_Listing_Basic_Description_V2
    select top 10 * from RB_Ebay_Listing_Marketing_Attach_V2
    select top 10 * from RB_Ebay_Listing_ProductAttribute_V2

    -- 第二步:以下表 根据 ItemId 不在临时表 可归档
    select top 10 * from RB_Ebay_ItemID_ShipStrategy_V2
    select top 10 * from RB_Ebay_ItemID_AutoSupplement_V2
    select top 10 * from RB_Collect_Ebay_NewListingShippingDetail
    select top 10 * from RB_Ebay_ItemID_Sync_V2
    -- 第三步:以下表 根据 ListingProductID 不在RB_Ebay_Listing_Product_V2 表中 可归档
    select top 10 * from RB_Ebay_Listing_Image_V2
    -- 以下表 定时归档 保留 6个月
    select top 10 * from RB_Ebay_ErrorMessage
    select top 10 * from RB_Ebay_Listing_Promotion_Log
  3. 2023-10-31 16:45:43, 由 周杰 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "huxiaofeng",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "zhoujie"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2023-10-31 16:45:43"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
所属迭代 智能中心-EBAY直发迭代
所属模块 智能中心-需求池  战略独立项目   EBAY直发
相关需求 ERP ebay listing历史数据快速归档
指派给 Closed 于 2023-10-31 16:45:43
任务类型 后端
任务标签 初始
开发组 仓储物流开发组
任务状态 已关闭
进度 100%
优先级 P1
关键词
抄送给
由谁创建 胡笑锋 于 2023-09-20 09:22:22
由谁完成 胡笑锋 于 2023-09-20 09:22:32
由谁取消 暂无
由谁关闭 周杰 于 2023-10-31 16:45:43
关闭原因 已完成
最后编辑 周杰 于 2023-10-31 16:45:43
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 9工时
总计消耗 9工时
预计剩余 0工时
预计开始 2023-09-18
实际开始 2023-09-20
截止日期 2023-09-19