|
@ -74,15 +74,17 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
string _fileName = $"{classDisplayName}_{Guid.NewGuid().ToString()}.xlsx"; |
|
|
string _fileName = $"{classDisplayName}_{Guid.NewGuid().ToString()}.xlsx"; |
|
|
byte[] result = null; |
|
|
byte[] result = null; |
|
|
|
|
|
|
|
|
switch (input.FileType) |
|
|
//switch (input.FileType)
|
|
|
{ |
|
|
//{
|
|
|
case 0: |
|
|
// case 0:
|
|
|
result = await _csv.ExportAsByteArray(dtoDetails).ConfigureAwait(false); |
|
|
// result = await _csv.ExportAsByteArray(dtoDetails).ConfigureAwait(false);
|
|
|
break; |
|
|
// break;
|
|
|
case 1: |
|
|
// case 1:
|
|
|
result = await _excel.ExportAsByteArray(dtoDetails).ConfigureAwait(false); |
|
|
// result = await _excel.ExportAsByteArray(dtoDetails).ConfigureAwait(false);
|
|
|
break; |
|
|
// break;
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
result = await _excel.ExportAsByteArray(dtoDetails).ConfigureAwait(false); |
|
|
result.ShouldNotBeNull(); |
|
|
result.ShouldNotBeNull(); |
|
|
|
|
|
|
|
|
//保存导出文件到服务器存成二进制
|
|
|
//保存导出文件到服务器存成二进制
|
|
|