|
|
@ -17,6 +17,7 @@ using Win.Sfs.SettleAccount.Constant; |
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
|
using Win.Sfs.SettleAccount.ExcelImporter; |
|
|
|
using Win.Sfs.SettleAccount.ExportReports; |
|
|
|
using Win.Sfs.Shared.Filter; |
|
|
|
using Win.Sfs.Shared.RepositoryBase; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
@ -201,6 +202,23 @@ namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
|
[HttpPost] |
|
|
|
public async Task<PagedResultDto<PriceListYinDuDto>> GetListAsync(RequestDto input) |
|
|
|
{ |
|
|
|
var ls = input.Filters.Where(p => p.Column == "codeType").ToList(); |
|
|
|
if (ls.Count > 0) |
|
|
|
{ |
|
|
|
var entiy = input.Filters.Where(p => p.Column == "codeType").FirstOrDefault(); |
|
|
|
var value = entiy.Value; |
|
|
|
if (value == "03") |
|
|
|
{ |
|
|
|
input.Filters.Add(new Shared.Filter.FilterCondition() { Column = "iscancel", Action = EnumFilterAction.Equal, Logic = EnumFilterLogic.And, Value = "true" }); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
input.Filters.Add(new Shared.Filter.FilterCondition() { Column = "iscancel", Action = EnumFilterAction.Equal, Logic = EnumFilterLogic.And, Value = "false" }); |
|
|
|
} |
|
|
|
input.Filters.Remove(entiy); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true).ConfigureAwait(false); |
|
|
|
var totalCount = await _repository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false); |
|
|
|
var dtos = ObjectMapper.Map<List<PriceListYinDu>, List<PriceListYinDuDto>>(entities); |
|
|
|