Commit d20cc292 by 泽锋 李

新增库存销量报表的备份服务

parent 6f2e798b
using System;
using System.Collections.Generic;
using System.Text;
namespace AutoTurnOver.Models
{
public class dc_report_tag_stock_week
{
public int id { get; set; }
public string week_str { get; set; }
public DateTime date { get; set; }
public string tag { get; set; }
public string field { get; set; }
public decimal val { get; set; }
}
public class dc_report_tag_stock_week_search_dto
{
public string hq_type { get; set; }
public string area_name { get; set; }
public string product_type_desc { get; set; }
public string warehouse_code { get; set; }
public string tag { get; set; }
}
}
...@@ -17,8 +17,7 @@ namespace ResetOutofstock ...@@ -17,8 +17,7 @@ namespace ResetOutofstock
{ {
var now = DateTime.Now; var now = DateTime.Now;
report.GenerateWeekTagStockDatas();
} }
catch (Exception ex) catch (Exception ex)
{ {
......
...@@ -79,6 +79,12 @@ namespace ResetOutofstock ...@@ -79,6 +79,12 @@ namespace ResetOutofstock
report.PurchaseWeekBackUp(); report.PurchaseWeekBackUp();
Console.WriteLine($"结束 备份上周采购库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"结束 备份上周采购库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
} }
if (now.Hour == 4 && now.Minute == 15)
{
Console.WriteLine($"开始 备份上周库存销量报表,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
report.GenerateWeekTagStockDatas();
Console.WriteLine($"结束 备份上周库存销量报表,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
} }
if (now.Hour==8 && now.Minute == 10) if (now.Hour==8 && now.Minute == 10)
......
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