|
|
@ -50,8 +50,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
public async Task<string> ExportAsync(PUB_SE_DETAIL_RequestDto input) |
|
|
|
{ |
|
|
|
input.Filters.Add(new FilterCondition("BusinessType", input.BusinessType.ToString(), EnumFilterAction.Equal, EnumFilterLogic.And)); |
|
|
|
var businessTypeDisplayName = input.BusinessType.GetDisplayName(); |
|
|
|
|
|
|
|
var businessTypeDisplayName = input.BusinessType.ToString(); |
|
|
|
DisplayAttribute attributeOfType = input.BusinessType.GetAttributeOfType<DisplayAttribute>(); |
|
|
|
if (attributeOfType != null) |
|
|
|
{ |
|
|
|
businessTypeDisplayName = attributeOfType.Name; |
|
|
|
} |
|
|
|
string fileName = $"{businessTypeDisplayName}发运数据_{Guid.NewGuid()}.xlsx"; |
|
|
|
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true); |
|
|
|
var dtos = ObjectMapper.Map<List<PUB_SE_DETAIL>, List<PUB_SE_DETAIL_EXPORT_DTO>>(entities); |
|
|
|