|
|
@ -17,6 +17,7 @@ using Win.Sfs.SettleAccount.Bases.DomainServices; |
|
|
|
using Win.Sfs.SettleAccount.CommonManagers; |
|
|
|
using Win.Sfs.SettleAccount.Entities.Prices; |
|
|
|
using Win.Sfs.SettleAccount.ExportReports; |
|
|
|
using Win.Sfs.Shared.Filter; |
|
|
|
using Win.Sfs.Shared.RepositoryBase; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount.Bases |
|
|
@ -52,6 +53,23 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
//[Route("detailquery")]
|
|
|
|
public virtual async Task<PagedResultDto<TEntityDetailDto>> DetailQueryAsync(TRequestDetailInput input) |
|
|
|
{ |
|
|
|
var ls = input.Filters.Where(p => p.Column == "businessType").ToList(); |
|
|
|
if (ls.Count > 0) |
|
|
|
{ |
|
|
|
var entiy = input.Filters.Where(p => p.Column == "businessType").FirstOrDefault(); |
|
|
|
var value = entiy.Value; |
|
|
|
if (value == "JisBBAC") |
|
|
|
{ |
|
|
|
input.Filters.Add(new Shared.Filter.FilterCondition() { Column = "businessType", Action = EnumFilterAction.Equal, Logic = EnumFilterLogic.Or, Value = "MaiDanJianBBAC" }); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
input.Filters.Add(new Shared.Filter.FilterCondition() { Column = "businessType", Action = EnumFilterAction.Equal, Logic = EnumFilterLogic.Or, Value = "MaiDanJianHBPO" }); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
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); |
|
|
|