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