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