Browse Source

[CI SKIP]状态更新修改

master
学 赵 1 year ago
parent
commit
a4cc85a169
  1. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/HBPO_CAN_SA_MNG.cs
  2. 5
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_CAN_SA_MNG.cs

2
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/HBPO_CAN_SA_MNG.cs

@ -190,7 +190,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
break;
}
await _repository.UpdateAsync(p_entiy).ConfigureAwait(false);
await _repository.DbContext.BulkUpdateAsync(new List<HBPO_CAN_SA> { p_entiy }).ConfigureAwait(false);
return true;
}
return false;

5
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_CAN_SA_MNG.cs

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EFCore.BulkExtensions;
using Microsoft.EntityFrameworkCore;
using SettleAccount.Domain.BQ;
using Volo.Abp;
@ -48,7 +49,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
/// <exception cref="BusinessException"></exception>
public virtual async Task<bool> SetForwardState(string p_billNum, SettleBillState state)
{
var ls = _repository.Where(p => p.InvGroupNum == p_billNum).ToList();
if (ls == null && ls.Count == 0)
{
@ -109,7 +109,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
break;
}
await _repository.UpdateAsync(p_entiy).ConfigureAwait(false);
await _repository.DbContext.BulkUpdateAsync(new List<PUB_CAN_SA> { p_entiy }).ConfigureAwait(false);
// await _repository.UpdateAsync(p_entiy).ConfigureAwait(false);
return true;
}
return false;

Loading…
Cancel
Save