diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs
index cf31d603..1492bfe8 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs
@@ -269,6 +269,28 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
return fileName;
}
+ ///
+ /// 1.1库存余额导出
+ ///
+ [HttpPost]
+ public async Task 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>(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;
+ }
+
+
+
+
+
///
/// 1.2库存余额汇总查询
///