From 46e712a871fd98a1b17434beaea1270d4dfb0316 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 18 Mar 2022 13:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/WMS/WmsUnInterface.cs | 7 ++++++- .../Report/ErpSumOutputDapperRepository.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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