|
|
@ -142,22 +142,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
|
_globalConfigOptions.IsSyncInvoiceQadState = true; |
|
|
|
|
|
|
|
var invoiceGrps = _settleAccountDbContext.Set<INVOICE_GRP>() |
|
|
|
var invoiceGrps1 = _settleAccountDbContext.Set<INVOICE_GRP>() |
|
|
|
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.已扣减); |
|
|
|
foreach (var itm in invoiceGrps) |
|
|
|
foreach (var itm in invoiceGrps1) |
|
|
|
{ |
|
|
|
itm.State = SettleBillState.发票同步中; |
|
|
|
} |
|
|
|
await _settleAccountDbContext.BulkUpdateAsync(invoiceGrps.ToList()).ConfigureAwait(false); |
|
|
|
|
|
|
|
await _settleAccountDbContext.BulkUpdateAsync(invoiceGrps1.ToList()).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
|
|
|
var invoiceGrps = _settleAccountDbContext.Set<INVOICE_GRP>() |
|
|
|
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.发票同步中); |
|
|
|
|
|
|
|
|
|
|
|
var invoiceBBACGrps = invoiceGrps.Where(p => p.BusinessType == EnumBusinessType.JisBBAC).Where(t => t.State == SettleBillState.发票同步中); |
|
|
|
var invoicePubGrps = invoiceGrps.Where(p => p.BusinessType != EnumBusinessType.JisBBAC && p.BusinessType != EnumBusinessType.JisHBPO) |
|
|
|
.Where(t => t.State == SettleBillState.发票同步中); |
|
|
|
var invoiceHbpoGrps = invoiceGrps.Where(p => p.BusinessType == EnumBusinessType.JisHBPO).Where(t => t.State == SettleBillState.发票同步中); |
|
|
|
var invoiceBBACGrps = invoiceGrps.Where(p => p.BusinessType == EnumBusinessType.JisBBAC); |
|
|
|
var invoicePubGrps = invoiceGrps.Where(p => p.BusinessType != EnumBusinessType.JisBBAC && p.BusinessType != EnumBusinessType.JisHBPO); |
|
|
|
var invoiceHbpoGrps = invoiceGrps.Where(p => p.BusinessType == EnumBusinessType.JisHBPO); |
|
|
|
if (invoiceBBACGrps.Any()) |
|
|
|
{ |
|
|
|
|
|
|
|