Commit 4c5ca1fe by 泽锋 李

fix

parent b0608934
...@@ -279,9 +279,9 @@ namespace AutoTurnOver.Services ...@@ -279,9 +279,9 @@ namespace AutoTurnOver.Services
return DB.dc_auto_turnover.SkuNewSupplierDeliveryList(); return DB.dc_auto_turnover.SkuNewSupplierDeliveryList();
} }
public string Export(UserData user, Condition_AutoTurnOver m,string order,string sort) public string Export( Condition_AutoTurnOver m,string order,string sort)
{ {
var fileName = AppContext.BaseDirectory + $@"Result\RealtimeStock\{user.UserAccount}周转表.csv"; var fileName = AppContext.BaseDirectory + $@"Result\RealtimeStock\周转表.csv";
......
...@@ -36,6 +36,9 @@ namespace AutoTurnOver.Services ...@@ -36,6 +36,9 @@ namespace AutoTurnOver.Services
{ {
case "实时库存": case "实时库存":
item.result_file_url = await DownloadStock(item.parameter, item); item.result_file_url = await DownloadStock(item.parameter, item);
break;
case "周转表":
item.result_file_url = await DownloadAuto(item.parameter, item);
break; break;
default: throw new Exception("无法识别的任务"); default: throw new Exception("无法识别的任务");
} }
...@@ -72,7 +75,7 @@ namespace AutoTurnOver.Services ...@@ -72,7 +75,7 @@ namespace AutoTurnOver.Services
public async Task<string> DownloadAuto(string par_json, dc_task_download download_data) public async Task<string> DownloadAuto(string par_json, dc_task_download download_data)
{ {
Condition_AutoTurnOver search_data = par_json.ToObject<Condition_AutoTurnOver>(); Condition_AutoTurnOver search_data = par_json.ToObject<Condition_AutoTurnOver>();
var memory = new SkuAutoTurnServices().Export(search_data); var memory = new SkuAutoTurnServices().Export(search_data,"","");
var fileData = await AutoTurnOver.Utility.QiNiuCloudHelper.UploadSectioningAsync(memory); var fileData = await AutoTurnOver.Utility.QiNiuCloudHelper.UploadSectioningAsync(memory);
return fileData; return fileData;
} }
......
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