|
|
@ -160,40 +160,19 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
var invoiceHbpoGrps = invoiceGrps.Where(p => p.BusinessType == EnumBusinessType.JisHBPO); |
|
|
|
if (invoiceBBACGrps.Any()) |
|
|
|
{ |
|
|
|
|
|
|
|
var invlist = await invoiceBBACGrps.ToListAsync().ConfigureAwait(false); |
|
|
|
//foreach (var itm in invlist)
|
|
|
|
//{
|
|
|
|
// itm.State = SettleBillState.发票同步中;
|
|
|
|
//}
|
|
|
|
//await _settleAccountDbContext.BulkUpdateAsync(invlist).ConfigureAwait(false);
|
|
|
|
|
|
|
|
var billinvs=invlist.Select(p => p.InvbillNum).ToList(); |
|
|
|
|
|
|
|
await CreateBBACTaskAsync(billinvs).ConfigureAwait(false); |
|
|
|
} |
|
|
|
if (invoicePubGrps.Any()) |
|
|
|
{ |
|
|
|
var invlist = await invoicePubGrps.ToListAsync().ConfigureAwait(false); |
|
|
|
//foreach (var itm in invlist)
|
|
|
|
//{
|
|
|
|
// itm.State = SettleBillState.发票同步中;
|
|
|
|
//}
|
|
|
|
//await _settleAccountDbContext.BulkUpdateAsync(invlist).ConfigureAwait(false);
|
|
|
|
|
|
|
|
var billinvs = invlist.Select(p => p.InvbillNum).ToList(); |
|
|
|
|
|
|
|
await CreatePubTaskAsync(billinvs).ConfigureAwait(false); |
|
|
|
} |
|
|
|
if (invoiceHbpoGrps.Any()) |
|
|
|
{ |
|
|
|
var invlist = await invoiceHbpoGrps.ToListAsync().ConfigureAwait(false); |
|
|
|
//foreach (var itm in invlist)
|
|
|
|
//{
|
|
|
|
// itm.State = SettleBillState.发票同步中;
|
|
|
|
//}
|
|
|
|
//await _settleAccountDbContext.BulkUpdateAsync(invlist).ConfigureAwait(false);
|
|
|
|
|
|
|
|
var billinvs = invlist.Select(p => p.InvbillNum).ToList(); |
|
|
|
await CreateHBPOTaskAsync(billinvs).ConfigureAwait(false); |
|
|
|
} |
|
|
|