From b5df3aa6a4ecfc7f355310049b6f7b8d3b5aef87 Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 10 May 2022 11:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Report/UnSettledSumService.cs | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs b/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs index 145168b3..b6a2a311 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs @@ -84,22 +84,25 @@ namespace SettleAccount.Job.Services.Report var _lsExport= GetReport(id,exportName,p_list); var _lsleft = GetLeftReport(id, exportName, p_list); - var _first = exportName.FirstOrDefault(); + - ExcelExporter _exporter = new ExcelExporter();//导出Excel - var result = _exporter.Append(_lsExport, "汇总核对表1") - //.SeparateBySheet() - //.Append(_lsleft, "汇总核对表2") - .ExportAppendDataAsByteArray(); - result.ShouldNotBeNull(); - _fileContainer.SaveAsync(String.Format("结算未结寄售核对表{0}.xlsx",Guid.NewGuid().ToString("N")), result.Result, true); + //ExcelExporter _exporter = new ExcelExporter();//导出Excel + //var result = _exporter.Append(_lsExport, "汇总核对表1") + ////.SeparateBySheet() + ////.Append(_lsleft, "汇总核对表2") + //.ExportAppendDataAsByteArray(); + //result.ShouldNotBeNull(); + //_fileContainer.SaveAsync(String.Format("结算未结寄售核对表{0}.xlsx",Guid.NewGuid().ToString("N")), result.Result, true); - - + var _first = exportName.FirstOrDefault(); + _outputService.Export(id, _first, _lsExport); + return id.ToString(); + + return id.ToString();