Commit 2b9fb359 by guotao

每个小时添加一波库存拉取任务

parent 4b0fb674
......@@ -714,6 +714,7 @@ namespace ResetOutofstock
}
});
Task.Factory.StartNew(() =>
{
while (true)
......@@ -757,6 +758,29 @@ namespace ResetOutofstock
try
{
Console.WriteLine($"开始 拉取亚马逊 fba实时库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_AFN_INVENTORY_DATA, 17);
Console.WriteLine($"结束 拉取亚马逊 fba实时库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
Thread.Sleep(1000 * 60 * 60);
}
catch (Exception ex)
{
Console.WriteLine(" 拉取亚马逊 fba实时库存:" + ex.Message);
Console.WriteLine(" 拉取亚马逊 fba实时库存 :" + ex.StackTrace);
}
}
});
Task.Factory.StartNew(() =>
{
while (true)
{
try
{
Console.WriteLine($"开始 解析亚马逊报表,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
new AmazonDataSynchroService().AnaReport();
new AmazonDataSynchroService().AnaReport(-1);
......@@ -806,6 +830,7 @@ namespace ResetOutofstock
new AmazonDataSynchroService().AnaFbaStorageFeeReportSubmit("GET_FBA_STORAGE_FEE_CHARGES_DATA", "aims:AnaFbaStorageFee:input");
new AmazonDataSynchroService().AnaFbaStorageFeeReportSubmit("GET_FBA_FULFILLMENT_LONGTERM_STORAGE_FEE_CHARGES_DATA", "aims:AnaFbaInventoryStorageFee:input");
new AmazonDataSynchroService().AnaFbaStorageFeeReportSubmit("GET_FBA_OVERAGE_FEE_CHARGES_DATA", "aims:AnaFbaOverageStorageFee:input");
new AmazonDataSynchroService().AnaFbaStorageFeeReportSubmit("GET_AFN_INVENTORY_DATA", "aims:AnaFbaInventory:input");
//new AmazonDataSynchroService().AnaFbaStorageFeeReport(-1);
Console.WriteLine($"结束 提交解析月度仓储费任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
Thread.Sleep(1000 * 60 * 30);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment