Browse Source

更新版本

master
学 赵 7 months ago
parent
commit
3648bda8b9
  1. 22
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

22
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

@ -269,6 +269,28 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
return fileName; return fileName;
} }
/// <summary>
/// 1.1库存余额导出
/// </summary>
[HttpPost]
public async Task<string> BalanceExportDiff()
{
var entities = await _vmiBalanceSumDetailRepository.Where(p=>p.SumQty!=p.ShippingQty).ToListAsync().ConfigureAwait(false);
// var entities = await _vmiBalanceSumDetailRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount, true).ConfigureAwait(false);
var dtos = _maper.Map<List<VmiBalanceSumDetail>, List<VmiBalanceSumDetailDto>>(entities);
dtos = dtos.OrderByDescending(p => p.BillTime).ToList();
var fileName = $"库存余额差异_{DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}.xlsx";
ExportImporter _exportImporter = new ExportImporter();
var result = await _exportImporter.ExcelExporter(dtos).ConfigureAwait(false);
result.ShouldNotBeNull();
await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }).ConfigureAwait(false);
return fileName;
}
/// <summary> /// <summary>
/// 1.2库存余额汇总查询 /// 1.2库存余额汇总查询
/// </summary> /// </summary>

Loading…
Cancel
Save