From d7c8e33d7ca8a229feadb1bb2ce2504e53440a52 Mon Sep 17 00:00:00 2001 From: mahao Date: Mon, 9 Oct 2023 09:50:16 +0800 Subject: [PATCH] =?UTF-8?q?[177]=20=E4=B9=B0=E5=8D=95=E4=BB=B6=E6=AF=94?= =?UTF-8?q?=E5=AF=B9=E9=80=BB=E8=BE=91=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/BBAC_SA_SERVICE.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs index ba25744c..ef8db3ef 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs @@ -354,7 +354,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ /// private List GroupSaDetails(List bbacSaDetails) { - return bbacSaDetails.GroupBy(t => new { t.PN, t.LU, t.GroupNum, t.SettleDate }).Select(t => + return bbacSaDetails.GroupBy(t => new { t.PN, t.LU, t.GroupNum, t.SettleDate, t.BusinessType }).Select(t => { var bbacSaDetail = t.First(); bbacSaDetail.Qty = t.Sum(t => t.Qty); @@ -467,7 +467,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ bbacCanSaDetails.ForEach(bbacCanSaDetail => { bbacCanSaDetail.BillNum = bbacCanSaDetail.InvGroupNum = bbacCanSaBillNum; - bbacCanSaDetail.BusinessType = _businessType; }); await _bbacCanSaRepository.InsertAsync(bbacCanSa).ConfigureAwait(false); @@ -475,11 +474,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ } if (bbacNotSaDetails.Count > 0) { - bbacNotSaDetails.ForEach(bbacNotSaDetail => - { - bbacNotSaDetail.BusinessType = _businessType; - }); - await _bbacNotSaDetailRepository.DbContext.BulkInsertAsync(bbacNotSaDetails).ConfigureAwait(false); } if (materialRelationships.Count > 0)