Commit 0e0cd21e by lizefeng

加快亚马逊报表解释速度

parent 8af286c3
......@@ -1326,7 +1326,7 @@ namespace AutoTurnOver.Services
/// </summary>
public void SetMarketplaceName(DateTime nowDate)
{
var allSites = new List<string> { "Amazon.it", "Amazon.fr", "Amazon.nl", "Amazon.es", "Amazon.de" };
var allSites = new List<string> { "Amazon.it", "Amazon.fr", "Amazon.nl", "Amazon.es", "Amazon.de", "Amazon.com.be" };
// 查询没有找到站点的结算表
var datas = MyMySqlConnection._connection.Query<dc_base_amazon_settlement>(" select * from dc_base_amazon_settlement where marketplace_name_sys='' and currency='EUR' and _ts<@nowDate order by id desc limit 100 ", new {
nowDate = nowDate
......
......@@ -669,8 +669,9 @@ namespace ResetOutofstock
{
Console.WriteLine($"开始 解析亚马逊报表,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
new AmazonDataSynchroService().AnaReport();
new AmazonDataSynchroService().AnaReport(-1);
Console.WriteLine($"结束 解析亚马逊报表,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
Thread.Sleep(1000 * 3 );
Thread.Sleep(100 * 3 );
}
catch (Exception ex)
{
......
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