Commit 4c5ca1fe by 泽锋 李

fix

parent b0608934
......@@ -279,9 +279,9 @@ namespace AutoTurnOver.Services
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";
......
......@@ -37,6 +37,9 @@ namespace AutoTurnOver.Services
case "实时库存":
item.result_file_url = await DownloadStock(item.parameter, item);
break;
case "周转表":
item.result_file_url = await DownloadAuto(item.parameter, item);
break;
default: throw new Exception("无法识别的任务");
}
item.end_date = DateTime.Now;
......@@ -72,7 +75,7 @@ namespace AutoTurnOver.Services
public async Task<string> DownloadAuto(string par_json, dc_task_download download_data)
{
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);
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