diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs index 2a055a01..96768461 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs @@ -197,7 +197,12 @@ namespace Win.Sfs.SettleAccount.Entities.WMS var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, 0, true); - entities = entities.Where(p => p.OutputQty != 0).ToList(); + entities = entities.Where(p => p.OutputQty != 0 && p.State==0).ToList(); + + + await _wmsRepository.GetDbContext().BulkUpdateAsync(entities); + + var count = entities.GroupBy(p => new { p.Type, p.ClientCode }).Count(); if (count > 1) diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs index 91ff89ee..8769dbfa 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs @@ -278,7 +278,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " , '{6}' \n" + " , '{7}' \n" + " , '{8}' \n" + - " , {9} )"; + " , '{9}' )"; sql = string.Format(sql, taskid