|
|
@ -60,8 +60,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
if (ls.Count > 0) |
|
|
|
{ |
|
|
|
var entiy = input.Filters.Where(p => p.Column == "businessType").FirstOrDefault(); |
|
|
|
var value = entiy.Value; |
|
|
|
//if (value == "JisBBAC")
|
|
|
|
var value = entiy.Value; |
|
|
|
//{
|
|
|
|
// input.Filters.Add(new Shared.Filter.FilterCondition() { Column = "businessType", Action = EnumFilterAction.Equal, Logic = EnumFilterLogic.Or, Value = "MaiDanJianBBAC" });
|
|
|
|
//}
|
|
|
@ -77,8 +76,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
var entitys = await _detailRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount).ConfigureAwait(false); |
|
|
|
var totalCount = await _detailRepository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false); |
|
|
|
var dtos = ObjectMapper.Map<List<TEntityDetail>, List<TEntityDetailDto>>(entitys); |
|
|
|
|
|
|
|
|
|
|
|
return new PagedResultDto<TEntityDetailDto>(totalCount, dtos); |
|
|
|
} |
|
|
|
|
|
|
@ -143,10 +140,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
IExporter _excel = new ExcelExporter(); |
|
|
|
Stopwatch sw = Stopwatch.StartNew(); |
|
|
|
var entities = await _detailRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true).ConfigureAwait(false); |
|
|
|
|
|
|
|
var dtoDetails = ObjectMapper.Map<List<TEntityDetail>, List<TEntityDetailExportDto>>(entities); |
|
|
|
|
|
|
|
|
|
|
|
var classDisplayName = typeof(TEntityDetailExportDto).GetCustomAttribute<DisplayAttribute>()?.Name ?? typeof(TEntityDetailExportDto).Name; |
|
|
|
string _fileName = $"{classDisplayName}_{Guid.NewGuid().ToString()}.xlsx"; |
|
|
|
byte[] result = null; |
|
|
|