Browse Source

更新版本

master
zhaoxinyu 5 months ago
parent
commit
100a26b6a6
  1. 16
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

16
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -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())
{

Loading…
Cancel
Save