Browse Source

更新发票撤销记录功能

master
学 赵 1 year ago
parent
commit
91a157521c
  1. 17
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
  2. 10
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

17
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); return await InvokePD(p_list, _service);
} }
/// <summary> /// <summary>
/// 调用扣减 /// 调用扣减
/// </summary> /// </summary>
/// <param name="p_list"></param> /// <param name="p_list"></param>
/// <param name="p_service"></param> /// <param name="p_service"></param>
/// <param name="isback"></param> /// <param name="isback"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="UserFriendlyException"></exception> /// <exception cref="UserFriendlyException"></exception>
[UnitOfWork(false)]
protected async Task<string> InvokePD(List<string> p_list, TaskJobService p_service, bool isback=false) protected async Task<string> InvokePD(List<string> p_list, TaskJobService p_service, bool isback=false)
{ {
var invlist=_repository.Where(p=>p_list.Contains(p.BillNum)).ToList(); var invlist=_repository.Where(p=>p_list.Contains(p.BillNum)).ToList();

10
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; // return pageCount;
//} //}
[UnitOfWork(false)]
public void Sync<T>(List<T> p_ls, EnumDeliverBjBmpBillType bussinessType, string p_email, bool flag = true) where T : PD_BASE, new() public void Sync<T>(List<T> p_ls, EnumDeliverBjBmpBillType bussinessType, string p_email, bool flag = true) where T : PD_BASE, new()
{ {
var query = from itm in p_ls var query = from itm in p_ls
@ -285,16 +285,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
{ {
if (flag == true) if (flag == true)
{ {
foreach (var item in bbacList) foreach (var item in hbpoList)
{ {
item.State = SettleBillState.; item.State = SettleBillState.;
} }
foreach (var item in bbacinvList) foreach (var item in hbpoinvList)
{ {
item.State = SettleBillState.; item.State = SettleBillState.;
} }
_dbcontext.BulkUpdate(bbacList); _dbcontext.BulkUpdate(hbpoList);
_dbcontext.BulkUpdate(bbacinvList); _dbcontext.BulkUpdate(hbpoinvList);
} }
else else

Loading…
Cancel
Save