Commit 816baf4f by 泽锋 李

导出销量模板,如果没有带查询参数,则随便带一个上去

parent b2856223
......@@ -473,7 +473,7 @@ namespace AutoTurnOver.Services
table.Columns.Add("14日日均");
table.Columns.Add("30日日均");
var thisDate = DateTime.Now;
for (int i = 0; i < 13; i++)
for (int i = 0; i < 22; i++)
{
var btime = thisDate.GetWeekFirstDayMon();
var etime = btime.GetWeekLastDaySun();
......
......@@ -342,11 +342,12 @@ namespace AutoTurnOver.Services
/// </summary>
public async Task<string> DownloadExportSalesTemplate(string par_json, dc_task_download download_data)
{
Condition_AutoTurnOver search_data = par_json.ToObject<Condition_AutoTurnOver>();
if(string.IsNullOrWhiteSpace(download_data.parameter_show))
{
throw new Exception("数据过大,请带条件查询");
search_data.bailun_sku = "LM-EO-007";
}
Condition_AutoTurnOver search_data = par_json.ToObject<Condition_AutoTurnOver>();
Console.WriteLine("DownloadStock - 开始生成文件");
int rows = 0;
var memory = new SkuAutoTurnServices().ExportSalesTemplate(search_data,"","",out rows);
......
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