Commit c5831e5d by 泽锋 李

fix

parent 4c5ca1fe
...@@ -12,7 +12,7 @@ namespace AutoTurnOver.DownloadService ...@@ -12,7 +12,7 @@ namespace AutoTurnOver.DownloadService
{ {
try try
{ {
//await new TaskDownloadServices().Download(); await new TaskDownloadServices().Download();
} }
catch (Exception ex) catch (Exception ex)
{ {
......
...@@ -147,7 +147,7 @@ namespace AutoTurnOver.Services ...@@ -147,7 +147,7 @@ namespace AutoTurnOver.Services
{ {
export_count++; export_count++;
var services = new DailyServices(); var services = new DailyServices();
var fileName = AppContext.BaseDirectory + $@"Result\RealtimeStock\实时库存-{DateTime.Now.ToString("yyyyMMddHHmmss")}.csv"; var fileName = AppContext.BaseDirectory + $@"实时库存-{DateTime.Now.ToString("yyyyMMddHHmmss")}.csv";
int page = 1; int page = 1;
int rows = 50000; int rows = 50000;
if (export_count == 1) if (export_count == 1)
......
...@@ -64,9 +64,13 @@ namespace AutoTurnOver.Services ...@@ -64,9 +64,13 @@ namespace AutoTurnOver.Services
/// </summary> /// </summary>
public async Task<string> DownloadStock(string par_json, dc_task_download download_data) public async Task<string> DownloadStock(string par_json, dc_task_download download_data)
{ {
dc_base_stock_search_dto search_data = par_json.ToObject<dc_base_stock_search_dto>(); dc_base_stock_search_dto search_data = par_json.ToObject<dc_base_stock_search_dto>();
Console.WriteLine("DownloadStock - 开始生成文件");
var memory = new DailyServices().Export(search_data); var memory = new DailyServices().Export(search_data);
Console.WriteLine("DownloadStock - 开始生成上传文件");
var fileData = await AutoTurnOver.Utility.QiNiuCloudHelper.UploadSectioningAsync(memory); var fileData = await AutoTurnOver.Utility.QiNiuCloudHelper.UploadSectioningAsync(memory);
Console.WriteLine("DownloadStock - 上传完毕");
return fileData; return fileData;
} }
/// <summary> /// <summary>
......
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