|
@ -104,10 +104,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
await _wmsRepository.GetDbContext().BulkInsertAsync(_lst); |
|
|
await _wmsRepository.GetDbContext().BulkInsertAsync(_lst); |
|
|
|
|
|
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -147,18 +144,13 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
|
|
|
|
|
virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input) |
|
|
virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, |
|
|
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, |
|
|
0, true); |
|
|
0, true); |
|
|
IExporter _excel = new ExcelExporter(); |
|
|
IExporter _excel = new ExcelExporter(); |
|
|
byte[] result = null; |
|
|
byte[] result = null; |
|
|
|
|
|
|
|
|
var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString()); |
|
|
var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString()); |
|
|
result = await _excel.ExportAsByteArray(entities); |
|
|
result = await _excel.ExportAsByteArray(entities); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.ShouldNotBeNull(); |
|
|
result.ShouldNotBeNull(); |
|
|
|
|
|
|
|
|
//保存导出文件到服务器存成二进制
|
|
|
//保存导出文件到服务器存成二进制
|
|
|
await _excelImportService.SaveBlobAsync( |
|
|
await _excelImportService.SaveBlobAsync( |
|
|
new SaveExcelImportInputDto |
|
|
new SaveExcelImportInputDto |
|
@ -168,9 +160,6 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
return _fileName; |
|
|
return _fileName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|