|
|
@ -423,10 +423,18 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran |
|
|
|
return fileName; |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
public void VmiLogInsertTest() |
|
|
|
/// <summary>
|
|
|
|
/// 补货数据导出
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost] |
|
|
|
public async Task<string> ReplenishedExportAsync(RequestDto input) |
|
|
|
{ |
|
|
|
new InfluxHelper(_cfg).Insert(new VmiLog(GuidGenerator.Create())); |
|
|
|
var entities = await _logRepository.WhereIf(input.Filters?.Count != 0, input.Filters.ToLambda<VmiLog>()) |
|
|
|
.ToListAsync().ConfigureAwait(false); |
|
|
|
var fileName = $"补货数据_{DateTime.Now.ToString("yyyy-MM-dd_HH:mm:ss")}.xlsx"; |
|
|
|
var content = this.GetContent(entities, "补货数据_"); |
|
|
|
await _fileContainer.SaveAsync(fileName, content, true).ConfigureAwait(false); |
|
|
|
return fileName; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|