From 91a157521cf3139856a456c1df1402c25689943a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Tue, 26 Sep 2023 17:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=91=E7=A5=A8=E6=92=A4?= =?UTF-8?q?=E9=94=80=E8=AE=B0=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Bases/PD_SERVICE.cs | 17 +++++++++-------- .../BQ/Syncs/PendingDeductionService.cs | 10 +++++----- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs index 0b9b319e..d2c3200d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs @@ -151,14 +151,15 @@ namespace Win.Sfs.SettleAccount.Bases return await InvokePD(p_list, _service); } -/// -/// 调用扣减 -/// -/// -/// -/// -/// -/// + /// + /// 调用扣减 + /// + /// + /// + /// + /// + /// + [UnitOfWork(false)] protected async Task InvokePD(List p_list, TaskJobService p_service, bool isback=false) { var invlist=_repository.Where(p=>p_list.Contains(p.BillNum)).ToList(); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs index 33a49f40..187a3e16 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs @@ -180,7 +180,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs // } // return pageCount; //} - + [UnitOfWork(false)] public void Sync(List p_ls, EnumDeliverBjBmpBillType bussinessType, string p_email, bool flag = true) where T : PD_BASE, new() { var query = from itm in p_ls @@ -285,16 +285,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs { if (flag == true) { - foreach (var item in bbacList) + foreach (var item in hbpoList) { item.State = SettleBillState.已扣减; } - foreach (var item in bbacinvList) + foreach (var item in hbpoinvList) { item.State = SettleBillState.已扣减; } - _dbcontext.BulkUpdate(bbacList); - _dbcontext.BulkUpdate(bbacinvList); + _dbcontext.BulkUpdate(hbpoList); + _dbcontext.BulkUpdate(hbpoinvList); } else