Commit d3b234c9 by 泽锋 李

fix

parent 42aba6cb
...@@ -95,6 +95,7 @@ namespace AutoTurnOver.Services ...@@ -95,6 +95,7 @@ namespace AutoTurnOver.Services
public string Export(dc_auto_purchase_advise_detailed_search_dto searchData) public string Export(dc_auto_purchase_advise_detailed_search_dto searchData)
{ {
var fileName = AppContext.BaseDirectory + $@"采购建议-{DateTime.Now.ToString("yyyyMMddHHmmss")}{Guid.NewGuid()}.csv";
var total = 0; var total = 0;
var list = PurchaseAdviseServices.DetailList(searchData, 0, int.MaxValue, ref total); var list = PurchaseAdviseServices.DetailList(searchData, 0, int.MaxValue, ref total);
...@@ -171,7 +172,7 @@ namespace AutoTurnOver.Services ...@@ -171,7 +172,7 @@ namespace AutoTurnOver.Services
table.Rows.Add(row); table.Rows.Add(row);
} }
var fileName = AppContext.BaseDirectory + @"Result\RealtimeStock\采购建议.csv";
CsvFileHelper.SaveCSV(table, fileName); CsvFileHelper.SaveCSV(table, fileName);
......
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