Browse Source

添加类型赛选

master
学 赵 12 months ago
parent
commit
15b31633e6
  1. 15
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
  2. 1
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

15
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs

@ -287,13 +287,28 @@ namespace Win.Sfs.SettleAccount.Bases
//[Route("mainquery")]
public virtual async Task<PagedResultDto<TEntityDto>> MainQueryAsync(TRequestMainInput input)
{
var invs= await _invRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount).ConfigureAwait(false);
var invbills = invs.Select(p => p.InvbillNum).ToList();
var entitys = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount).ConfigureAwait(false);
entitys=entitys.Where(p => invbills.Contains(p.BillNum)).ToList();
var totalCount = await _repository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false);
var dtos = ObjectMapper.Map<List<TEntity>, List<TEntityDto>>(entitys);
dtos = dtos.Where(p => invbills.Contains(p.BillNum)).ToList();
var entity= entitys.FirstOrDefault();
var invoices =entitys.Select(p => p.BillNum);
var entities=_invRepository.Where(p => invoices.Contains(p.InvbillNum)).ToList();
foreach (var itm in dtos)
{
var pd = entities.FirstOrDefault(p => p.InvbillNum == itm.BillNum);

1
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

@ -350,7 +350,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
}
foreach (var item in bbacinvList)
{
if (item.State == SettleBillState.QAD)
{
item.State = SettleBillState.;

Loading…
Cancel
Save