|
@ -162,7 +162,7 @@ public class VmiAppService : Controller, IApplicationService, IJobService, ITran |
|
|
public async Task<string> BalanceExport(RequestDto input) |
|
|
public async Task<string> BalanceExport(RequestDto input) |
|
|
{ |
|
|
{ |
|
|
var entities = await _balanceRepository.GetListByFilterAsync(input.Filters).ConfigureAwait(false); |
|
|
var entities = await _balanceRepository.GetListByFilterAsync(input.Filters).ConfigureAwait(false); |
|
|
var fileName = $"库存余额_{DateTime.Now.ToString("yyyy-MM-dd_HH:mm:ss")}.xlsx"; |
|
|
var fileName = $"库存余额_{DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}.xlsx"; |
|
|
var content = this.GetContent(entities, "库存备份"); |
|
|
var content = this.GetContent(entities, "库存备份"); |
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
return fileName; |
|
|
return fileName; |
|
@ -296,7 +296,7 @@ public class VmiAppService : Controller, IApplicationService, IJobService, ITran |
|
|
public async Task<string> LogExport(RequestDto input) |
|
|
public async Task<string> LogExport(RequestDto input) |
|
|
{ |
|
|
{ |
|
|
var entities = await _logRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount).ConfigureAwait(false); |
|
|
var entities = await _logRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount).ConfigureAwait(false); |
|
|
var fileName = $"库存事务_{DateTime.Now.ToString("yyyy-MM-dd_HH:mm:ss")}.xlsx"; |
|
|
var fileName = $"库存事务_{DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}.xlsx"; |
|
|
var content = this.GetContent(entities, "库存事务_"); |
|
|
var content = this.GetContent(entities, "库存事务_"); |
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
return fileName; |
|
|
return fileName; |
|
@ -310,7 +310,7 @@ public class VmiAppService : Controller, IApplicationService, IJobService, ITran |
|
|
{ |
|
|
{ |
|
|
var entities = await _logRepository.GetListByFilterAsync(input.Filters).ConfigureAwait(false); |
|
|
var entities = await _logRepository.GetListByFilterAsync(input.Filters).ConfigureAwait(false); |
|
|
//IQueryable<VmiLog> query = _logRepository.WhereIf(input.Filters?.Count != 0, input.Filters.ToLambda<VmiLog>());
|
|
|
//IQueryable<VmiLog> query = _logRepository.WhereIf(input.Filters?.Count != 0, input.Filters.ToLambda<VmiLog>());
|
|
|
var fileName = $"补货数据_{DateTime.Now.ToString("yyyy-MM-dd_HH:mm:ss")}.xlsx"; |
|
|
var fileName = $"补货数据_{DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}.xlsx"; |
|
|
var content = this.GetContent(entities, "补货数据_"); |
|
|
var content = this.GetContent(entities, "补货数据_"); |
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
return fileName; |
|
|
return fileName; |
|
|