From 1faef5b71ffd96edccd3d862d450300ff5fa0c63 Mon Sep 17 00:00:00 2001 From: zhaoxinyu <89237069@qq.com> Date: Thu, 25 Jan 2024 09:40:52 +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/BQ/Syncs/MakeCanSettlementService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs index 956e8f37..76ad8b84 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs @@ -278,6 +278,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs bbacquery = bbacquery.Where(filers.ToLambda()); } var p_list = bbacquery.ToList(); + if (p_list.Count == 0) + { + var flaglist = _dbcontext.Set().Where(p => p.IsReturn == true).ToList(); + foreach (var flag in flaglist) + { + flag.IsReturn = false; + } + _dbcontext.BulkUpdate(flaglist);//插入可结明细 + } + var jis1 = p_list.Where(p => p.Site == "104T").ToList(); if (jis1.Count > 0) {